1. 06 Mar, 2012 24 commits
    • commit-queue@webkit.org's avatar
      Unreviewed, rolling out r109837. · cbcd594c
      commit-queue@webkit.org authored
      http://trac.webkit.org/changeset/109837
      https://bugs.webkit.org/show_bug.cgi?id=80399
      
      breaks Mac Productions builds, too late to try and fix it
      tonight (Requested by eseidel on #webkit).
      
      Patch by Sheriff Bot <webkit.review.bot@gmail.com> on 2012-03-06
      
      Source/JavaScriptCore:
      
      * API/tests/JSNode.c:
      * API/tests/JSNodeList.c:
      * Configurations/Base.xcconfig:
      * JavaScriptCore.vcproj/JavaScriptCore/copy-files.cmd:
      * JavaScriptCore.xcodeproj/project.pbxproj:
      * assembler/MacroAssemblerCodeRef.h:
      * bytecompiler/BytecodeGenerator.h:
      * dfg/DFGOperations.cpp:
      * heap/GCAssertions.h:
      * heap/HandleHeap.h:
      * heap/HandleStack.h:
      * heap/MarkedSpace.h:
      * heap/PassWeak.h:
      * heap/Strong.h:
      * heap/Weak.h:
      * jit/HostCallReturnValue.cpp:
      * jit/JIT.cpp:
      * jit/JITStubs.cpp:
      * jit/ThunkGenerators.cpp:
      * parser/Lexer.cpp:
      * runtime/Completion.cpp:
      * runtime/Executable.cpp:
      * runtime/Identifier.h:
      * runtime/InitializeThreading.cpp:
      * runtime/JSDateMath.cpp:
      * runtime/JSGlobalObjectFunctions.cpp:
      * runtime/JSStringBuilder.h:
      * runtime/JSVariableObject.h:
      * runtime/NumberPrototype.cpp:
      * runtime/WriteBarrier.h:
      * tools/CodeProfile.cpp:
      * tools/TieredMMapArray.h:
      * yarr/YarrJIT.cpp:
      
      Tools:
      
      * Scripts/build-webkit:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@109888 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      cbcd594c
    • vestbo@webkit.org's avatar
      [Qt] Use correct define names for HAVE(FOO) style optional dependencies · 03a27fc2
      vestbo@webkit.org authored
      Reviewed by Simon Hausmann.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@109887 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      03a27fc2
    • haraken@chromium.org's avatar
      Unreviewed, gardening. · 2b89b81e
      haraken@chromium.org authored
      * platform/chromium/test_expectations.txt:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@109886 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      2b89b81e
    • abarth@webkit.org's avatar
      Attempt to fix the Qt minimal build. · 545cd9ce
      abarth@webkit.org authored
      * Target.pri:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@109885 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      545cd9ce
    • rolandsteiner@chromium.org's avatar
      :scope should behave as :root outside scoped style sheet · 9220c6f3
      rolandsteiner@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=80389
      
      Source/WebCore:
      
      Fall through to :root implementation if no scope is used.
      
      Reviewed by Antti Koivisto.
      
      Test: fast/css/style-scoped/scope-pseudo.html
      
      * css/SelectorChecker.cpp:
      (WebCore::SelectorChecker::checkOneSelector):
      
      LayoutTests:
      
      Update test with :scope in global style sheet
      
      Reviewed by Antti Koivisto.
      
      * fast/css/style-scoped/scope-pseudo-expected.txt:
      * fast/css/style-scoped/scope-pseudo.html:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@109884 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      9220c6f3
    • ossy@webkit.org's avatar
      [Qt][ARM] Speculative buildfix after r109834. · dac63a09
      ossy@webkit.org authored
      Patch by Zoltan Herczeg <zherczeg@webkit.org> on 2012-03-06
      Reviewed by Csaba Osztrogonác.
      
      * assembler/MacroAssemblerARM.h:
      (JSC::MacroAssemblerARM::and32):
      (MacroAssemblerARM):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@109883 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      dac63a09
    • vsevik@chromium.org's avatar
      Web Inspector: [Regression] Message bubbles are not removed from scripts panel... · 3891f37d
      vsevik@chromium.org authored
      Web Inspector: [Regression] Message bubbles are not removed from scripts panel source frames after console was cleared.
      https://bugs.webkit.org/show_bug.cgi?id=80275
      
      Reviewed by Pavel Feldman.
      
      Source/WebCore:
      
      * inspector/front-end/ScriptsPanel.js:
      (WebInspector.ScriptsPanel.prototype._consoleMessagesCleared):
      * inspector/front-end/utilities.js:
      
      LayoutTests:
      
      * inspector/debugger/source-frame-expected.txt:
      * inspector/debugger/source-frame.html:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@109882 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      3891f37d
    • carlosgc@webkit.org's avatar
      [GTK] Fix several documentation issues in WebKit2 GTK+ API · e762ffc3
      carlosgc@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=80281
      
      Reviewed by Martin Robinson.
      
      * UIProcess/API/gtk/WebKitFindController.cpp:
      * UIProcess/API/gtk/WebKitNavigationPolicyDecision.cpp:
      (webkit_navigation_policy_decision_class_init):
      * UIProcess/API/gtk/WebKitPrintOperation.cpp:
      * UIProcess/API/gtk/WebKitWebView.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@109881 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e762ffc3
    • carlosgc@webkit.org's avatar
      [GTK] Use a single signal for script dialogs in WebKit2 GTK+ API · f4e231ea
      carlosgc@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=80271
      
      Reviewed by Martin Robinson.
      
      Add a new signal WebKitWebView::script-dialog that passes a
      WebKitScriptDialog boxed type that can be used to build the dialog
      and set the responses. It simplifies the API and makes it bindings
      friendly.
      
      * GNUmakefile.am:
      * UIProcess/API/gtk/WebKitScriptDialog.cpp: Added.
      (webkitScriptDialogCopy): Copy method for boxed type.
      (webkitScriptDialogFree): Free method for boxed type.
      (webkit_script_dialog_get_dialog_type): Return the type of dialog:
      alert, confirm or prompt.
      (webkit_script_dialog_get_message): Return the message of the dialog.
      (webkit_script_dialog_confirm_set_confirmed): Set whether user
      confirmed the dialog, for confirm dialogs.
      (webkit_script_dialog_prompt_get_default_text): Get the default
      text of prompt dialogs.
      (webkit_script_dialog_prompt_set_text): Set the text entered by
      the user, for prompt dialogs.
      * UIProcess/API/gtk/WebKitScriptDialog.h: Added.
      * UIProcess/API/gtk/WebKitScriptDialogPrivate.h: Added.
      * UIProcess/API/gtk/WebKitWebView.cpp:
      (webkitWebViewScriptDialog): Default implementation of
      WebKitWebView::script-dialog signal.
      (webkit_web_view_class_init): Add WebKitWebView::script-dialog and
      remove alert, confirm and propmpt.
      (webkitWebViewRunJavaScriptAlert): Create a WebKitScriptDialog and
      emit WebKitWebView::script-dialog signal.
      (webkitWebViewRunJavaScriptConfirm): Ditto.
      (webkitWebViewRunJavaScriptPrompt): Ditto.
      * UIProcess/API/gtk/WebKitWebView.h:
      * UIProcess/API/gtk/docs/webkit2gtk-sections.txt: Add new
      symbols.
      * UIProcess/API/gtk/docs/webkit2gtk.types: Add webkit_script_dialog_get_type().
      * UIProcess/API/gtk/tests/TestWebKitWebView.cpp:
      (testWebViewJavaScriptDialogs): Update javascript dialog test to
      use the new API.
      * UIProcess/API/gtk/webkit2marshal.list:
      * UIProcess/API/gtk/webkit2.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@109880 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f4e231ea
    • haraken@chromium.org's avatar
      Unreviewed, gardening. · 3df36c1c
      haraken@chromium.org authored
      * platform/chromium-mac-snowleopard/fast/repaint/transform-rotate-and-remove-expected.png: Added.
      * platform/chromium-win/fast/repaint/transform-rotate-and-remove-expected.png: Renamed from LayoutTests/platform/chromium-linux/fast/repaint/transform-rotate-and-remove-expected.png.
      * platform/chromium/fast/repaint/transform-rotate-and-remove-expected.txt: Renamed from LayoutTests/platform/chromium-linux/fast/repaint/transform-rotate-and-remove-expected.txt.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@109879 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      3df36c1c
    • kkristof@inf.u-szeged.hu's avatar
      [Qt] Create EWS to build WebKit2 · 4c2b6105
      kkristof@inf.u-szeged.hu authored
      https://bugs.webkit.org/show_bug.cgi?id=80277
      
      Reviewed by Csaba Osztrogonác.
      
      * QueueStatusServer/model/queues.py:
      (Queue):
      * Scripts/webkitpy/tool/commands/earlywarningsystem.py:
      (QtWK2EWS):
      * Scripts/webkitpy/tool/commands/earlywarningsystem_unittest.py:
      (EarlyWarningSytemTest.test_builder_ewses):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@109878 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      4c2b6105
    • abarth@webkit.org's avatar
      Move SQLDatabase code into Modules/webdatabase · 50344543
      abarth@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=80393
      
      Reviewed by Kentaro Hara.
      
      There are still a couple (minor) SQLDatabase references from WebCore
      proper, but we've gotten this code to the point where it makes sense to
      move it into the Modules directory.  (This patch just moves code---no
      behavior change.)
      
      * CMakeLists.txt:
      * DerivedSources.make:
      * DerivedSources.pri:
      * GNUmakefile.am:
      * GNUmakefile.list.am:
      * Modules/webdatabase: Added.
      * Modules/webdatabase/AbstractDatabase.cpp: Copied from Source/WebCore/storage/AbstractDatabase.cpp.
      * Modules/webdatabase/AbstractDatabase.h: Copied from Source/WebCore/storage/AbstractDatabase.h.
      * Modules/webdatabase/ChangeVersionWrapper.cpp: Copied from Source/WebCore/storage/ChangeVersionWrapper.cpp.
      * Modules/webdatabase/ChangeVersionWrapper.h: Copied from Source/WebCore/storage/ChangeVersionWrapper.h.
      * Modules/webdatabase/DOMWindowSQLDatabase.cpp: Copied from Source/WebCore/storage/DOMWindowSQLDatabase.cpp.
      * Modules/webdatabase/DOMWindowSQLDatabase.h: Copied from Source/WebCore/storage/DOMWindowSQLDatabase.h.
      * Modules/webdatabase/DOMWindowSQLDatabase.idl: Copied from Source/WebCore/storage/DOMWindowSQLDatabase.idl.
      * Modules/webdatabase/Database.cpp: Copied from Source/WebCore/storage/Database.cpp.
      * Modules/webdatabase/Database.h: Copied from Source/WebCore/storage/Database.h.
      * Modules/webdatabase/Database.idl: Copied from Source/WebCore/storage/Database.idl.
      * Modules/webdatabase/DatabaseAuthorizer.cpp: Copied from Source/WebCore/storage/DatabaseAuthorizer.cpp.
      * Modules/webdatabase/DatabaseAuthorizer.h: Copied from Source/WebCore/storage/DatabaseAuthorizer.h.
      * Modules/webdatabase/DatabaseCallback.h: Copied from Source/WebCore/storage/DatabaseCallback.h.
      * Modules/webdatabase/DatabaseCallback.idl: Copied from Source/WebCore/storage/DatabaseCallback.idl.
      * Modules/webdatabase/DatabaseContext.cpp: Copied from Source/WebCore/storage/DatabaseContext.cpp.
      * Modules/webdatabase/DatabaseContext.h: Copied from Source/WebCore/storage/DatabaseContext.h.
      * Modules/webdatabase/DatabaseDetails.h: Copied from Source/WebCore/storage/DatabaseDetails.h.
      * Modules/webdatabase/DatabaseSync.cpp: Copied from Source/WebCore/storage/DatabaseSync.cpp.
      * Modules/webdatabase/DatabaseSync.h: Copied from Source/WebCore/storage/DatabaseSync.h.
      * Modules/webdatabase/DatabaseSync.idl: Copied from Source/WebCore/storage/DatabaseSync.idl.
      * Modules/webdatabase/DatabaseTask.cpp: Copied from Source/WebCore/storage/DatabaseTask.cpp.
      * Modules/webdatabase/DatabaseTask.h: Copied from Source/WebCore/storage/DatabaseTask.h.
      * Modules/webdatabase/DatabaseThread.cpp: Copied from Source/WebCore/storage/DatabaseThread.cpp.
      * Modules/webdatabase/DatabaseThread.h: Copied from Source/WebCore/storage/DatabaseThread.h.
      * Modules/webdatabase/DatabaseTracker.cpp: Copied from Source/WebCore/storage/DatabaseTracker.cpp.
      * Modules/webdatabase/DatabaseTracker.h: Copied from Source/WebCore/storage/DatabaseTracker.h.
      * Modules/webdatabase/DatabaseTrackerClient.h: Copied from Source/WebCore/storage/DatabaseTrackerClient.h.
      * Modules/webdatabase/OriginQuotaManager.cpp: Copied from Source/WebCore/storage/OriginQuotaManager.cpp.
      * Modules/webdatabase/OriginQuotaManager.h: Copied from Source/WebCore/storage/OriginQuotaManager.h.
      * Modules/webdatabase/OriginUsageRecord.cpp: Copied from Source/WebCore/storage/OriginUsageRecord.cpp.
      * Modules/webdatabase/OriginUsageRecord.h: Copied from Source/WebCore/storage/OriginUsageRecord.h.
      * Modules/webdatabase/SQLCallbackWrapper.h: Copied from Source/WebCore/storage/SQLCallbackWrapper.h.
      * Modules/webdatabase/SQLError.h: Copied from Source/WebCore/storage/SQLError.h.
      * Modules/webdatabase/SQLError.idl: Copied from Source/WebCore/storage/SQLError.idl.
      * Modules/webdatabase/SQLException.cpp: Copied from Source/WebCore/storage/SQLException.cpp.
      * Modules/webdatabase/SQLException.h: Copied from Source/WebCore/storage/SQLException.h.
      * Modules/webdatabase/SQLException.idl: Copied from Source/WebCore/storage/SQLException.idl.
      * Modules/webdatabase/SQLResultSet.cpp: Copied from Source/WebCore/storage/SQLResultSet.cpp.
      * Modules/webdatabase/SQLResultSet.h: Copied from Source/WebCore/storage/SQLResultSet.h.
      * Modules/webdatabase/SQLResultSet.idl: Copied from Source/WebCore/storage/SQLResultSet.idl.
      * Modules/webdatabase/SQLResultSetRowList.cpp: Copied from Source/WebCore/storage/SQLResultSetRowList.cpp.
      * Modules/webdatabase/SQLResultSetRowList.h: Copied from Source/WebCore/storage/SQLResultSetRowList.h.
      * Modules/webdatabase/SQLResultSetRowList.idl: Copied from Source/WebCore/storage/SQLResultSetRowList.idl.
      * Modules/webdatabase/SQLStatement.cpp: Copied from Source/WebCore/storage/SQLStatement.cpp.
      * Modules/webdatabase/SQLStatement.h: Copied from Source/WebCore/storage/SQLStatement.h.
      * Modules/webdatabase/SQLStatementCallback.h: Copied from Source/WebCore/storage/SQLStatementCallback.h.
      * Modules/webdatabase/SQLStatementCallback.idl: Copied from Source/WebCore/storage/SQLStatementCallback.idl.
      * Modules/webdatabase/SQLStatementErrorCallback.h: Copied from Source/WebCore/storage/SQLStatementErrorCallback.h.
      * Modules/webdatabase/SQLStatementErrorCallback.idl: Copied from Source/WebCore/storage/SQLStatementErrorCallback.idl.
      * Modules/webdatabase/SQLStatementSync.cpp: Copied from Source/WebCore/storage/SQLStatementSync.cpp.
      * Modules/webdatabase/SQLStatementSync.h: Copied from Source/WebCore/storage/SQLStatementSync.h.
      * Modules/webdatabase/SQLTransaction.cpp: Copied from Source/WebCore/storage/SQLTransaction.cpp.
      * Modules/webdatabase/SQLTransaction.h: Copied from Source/WebCore/storage/SQLTransaction.h.
      * Modules/webdatabase/SQLTransaction.idl: Copied from Source/WebCore/storage/SQLTransaction.idl.
      * Modules/webdatabase/SQLTransactionCallback.h: Copied from Source/WebCore/storage/SQLTransactionCallback.h.
      * Modules/webdatabase/SQLTransactionCallback.idl: Copied from Source/WebCore/storage/SQLTransactionCallback.idl.
      * Modules/webdatabase/SQLTransactionClient.cpp: Copied from Source/WebCore/storage/SQLTransactionClient.cpp.
      * Modules/webdatabase/SQLTransactionClient.h: Copied from Source/WebCore/storage/SQLTransactionClient.h.
      * Modules/webdatabase/SQLTransactionCoordinator.cpp: Copied from Source/WebCore/storage/SQLTransactionCoordinator.cpp.
      * Modules/webdatabase/SQLTransactionCoordinator.h: Copied from Source/WebCore/storage/SQLTransactionCoordinator.h.
      * Modules/webdatabase/SQLTransactionErrorCallback.h: Copied from Source/WebCore/storage/SQLTransactionErrorCallback.h.
      * Modules/webdatabase/SQLTransactionErrorCallback.idl: Copied from Source/WebCore/storage/SQLTransactionErrorCallback.idl.
      * Modules/webdatabase/SQLTransactionSync.cpp: Copied from Source/WebCore/storage/SQLTransactionSync.cpp.
      * Modules/webdatabase/SQLTransactionSync.h: Copied from Source/WebCore/storage/SQLTransactionSync.h.
      * Modules/webdatabase/SQLTransactionSync.idl: Copied from Source/WebCore/storage/SQLTransactionSync.idl.
      * Modules/webdatabase/SQLTransactionSyncCallback.h: Copied from Source/WebCore/storage/SQLTransactionSyncCallback.h.
      * Modules/webdatabase/SQLTransactionSyncCallback.idl: Copied from Source/WebCore/storage/SQLTransactionSyncCallback.idl.
      * Modules/webdatabase/WorkerContextSQLDatabase.cpp: Copied from Source/WebCore/storage/WorkerContextSQLDatabase.cpp.
      * Modules/webdatabase/WorkerContextSQLDatabase.h: Copied from Source/WebCore/storage/WorkerContextSQLDatabase.h.
      * Modules/webdatabase/WorkerContextSQLDatabase.idl: Copied from Source/WebCore/storage/WorkerContextSQLDatabase.idl.
      * Modules/webdatabase/chromium: Added.
      * Modules/webdatabase/chromium/DatabaseObserver.h: Copied from Source/WebCore/storage/chromium/DatabaseObserver.h.
      * Modules/webdatabase/chromium/DatabaseTrackerChromium.cpp: Copied from Source/WebCore/storage/chromium/DatabaseTrackerChromium.cpp.
      * Modules/webdatabase/chromium/QuotaTracker.cpp: Copied from Source/WebCore/storage/chromium/QuotaTracker.cpp.
      * Modules/webdatabase/chromium/QuotaTracker.h: Copied from Source/WebCore/storage/chromium/QuotaTracker.h.
      * Modules/webdatabase/chromium/SQLTransactionClientChromium.cpp: Copied from Source/WebCore/storage/chromium/SQLTransactionClientChromium.cpp.
      * Target.pri:
      * WebCore.gyp/WebCore.gyp:
      * WebCore.gypi:
      * WebCore.pri:
      * WebCore.vcproj/WebCore.vcproj:
      * WebCore.vcproj/WebCoreCommon.vsprops:
      * WebCore.vcproj/copyForwardingHeaders.cmd:
      * WebCore.xcodeproj/project.pbxproj:
      * storage/AbstractDatabase.cpp: Removed.
      * storage/AbstractDatabase.h: Removed.
      * storage/ChangeVersionWrapper.cpp: Removed.
      * storage/ChangeVersionWrapper.h: Removed.
      * storage/DOMWindowSQLDatabase.cpp: Removed.
      * storage/DOMWindowSQLDatabase.h: Removed.
      * storage/DOMWindowSQLDatabase.idl: Removed.
      * storage/Database.cpp: Removed.
      * storage/Database.h: Removed.
      * storage/Database.idl: Removed.
      * storage/DatabaseAuthorizer.cpp: Removed.
      * storage/DatabaseAuthorizer.h: Removed.
      * storage/DatabaseCallback.h: Removed.
      * storage/DatabaseCallback.idl: Removed.
      * storage/DatabaseContext.cpp: Removed.
      * storage/DatabaseContext.h: Removed.
      * storage/DatabaseDetails.h: Removed.
      * storage/DatabaseSync.cpp: Removed.
      * storage/DatabaseSync.h: Removed.
      * storage/DatabaseSync.idl: Removed.
      * storage/DatabaseTask.cpp: Removed.
      * storage/DatabaseTask.h: Removed.
      * storage/DatabaseThread.cpp: Removed.
      * storage/DatabaseThread.h: Removed.
      * storage/DatabaseTracker.cpp: Removed.
      * storage/DatabaseTracker.h: Removed.
      * storage/DatabaseTrackerClient.h: Removed.
      * storage/OriginQuotaManager.cpp: Removed.
      * storage/OriginQuotaManager.h: Removed.
      * storage/OriginUsageRecord.cpp: Removed.
      * storage/OriginUsageRecord.h: Removed.
      * storage/SQLCallbackWrapper.h: Removed.
      * storage/SQLError.h: Removed.
      * storage/SQLError.idl: Removed.
      * storage/SQLException.cpp: Removed.
      * storage/SQLException.h: Removed.
      * storage/SQLException.idl: Removed.
      * storage/SQLResultSet.cpp: Removed.
      * storage/SQLResultSet.h: Removed.
      * storage/SQLResultSet.idl: Removed.
      * storage/SQLResultSetRowList.cpp: Removed.
      * storage/SQLResultSetRowList.h: Removed.
      * storage/SQLResultSetRowList.idl: Removed.
      * storage/SQLStatement.cpp: Removed.
      * storage/SQLStatement.h: Removed.
      * storage/SQLStatementCallback.h: Removed.
      * storage/SQLStatementCallback.idl: Removed.
      * storage/SQLStatementErrorCallback.h: Removed.
      * storage/SQLStatementErrorCallback.idl: Removed.
      * storage/SQLStatementSync.cpp: Removed.
      * storage/SQLStatementSync.h: Removed.
      * storage/SQLTransaction.cpp: Removed.
      * storage/SQLTransaction.h: Removed.
      * storage/SQLTransaction.idl: Removed.
      * storage/SQLTransactionCallback.h: Removed.
      * storage/SQLTransactionCallback.idl: Removed.
      * storage/SQLTransactionClient.cpp: Removed.
      * storage/SQLTransactionClient.h: Removed.
      * storage/SQLTransactionCoordinator.cpp: Removed.
      * storage/SQLTransactionCoordinator.h: Removed.
      * storage/SQLTransactionErrorCallback.h: Removed.
      * storage/SQLTransactionErrorCallback.idl: Removed.
      * storage/SQLTransactionSync.cpp: Removed.
      * storage/SQLTransactionSync.h: Removed.
      * storage/SQLTransactionSync.idl: Removed.
      * storage/SQLTransactionSyncCallback.h: Removed.
      * storage/SQLTransactionSyncCallback.idl: Removed.
      * storage/WorkerContextSQLDatabase.cpp: Removed.
      * storage/WorkerContextSQLDatabase.h: Removed.
      * storage/WorkerContextSQLDatabase.idl: Removed.
      * storage/chromium/DatabaseObserver.h: Removed.
      * storage/chromium/DatabaseTrackerChromium.cpp: Removed.
      * storage/chromium/QuotaTracker.cpp: Removed.
      * storage/chromium/QuotaTracker.h: Removed.
      * storage/chromium/SQLTransactionClientChromium.cpp: Removed.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@109877 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      50344543
    • tkent@chromium.org's avatar
      Do not reformat strings in <input type=number> on platforms using LocalizedNumberICU. · db5467a1
      tkent@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=78326
      
      Reviewed by Hajime Morita.
      
      Source/WebCore:
      
      We had bugs such as stripping leading zeros, dropping lower digits
      of large numbers because we parse a user-input string to a double
      value, and generate a string from the double value.
      
      In order to avoid such reformatting, we converts number strings by
      replacing standard digits to corresponding localized digits.
      
      * WebCore.gypi: Added LocalizedNumberICU.h
      * platform/text/LocalizedNumberICU.cpp:
      (WebCore::ICULocale::ICULocale): Added.
      (WebCore::ICULocale::create): A testing factory function.
      (WebCore::ICULocale::createForCurrentLocale): A practical factory function.
      (WebCore::ICULocale::setDecimalSymbol): Initialize a symbol table.
      (WebCore::ICULocale::initializeDecimalFormat): Initialize ICU DecimalFormat.
      (WebCore::ICULocale::convertToLocalizedNumber):
       Replace characters to corresponding localized characters.
      (WebCore::matches): A helper function for convertFromLocalizedNumber.
      (WebCore::endsWith): ditto.
      (WebCore::ICULocale::determineStartPosition): ditto.
      (WebCore::ICULocale::matchedDecimalSymbolIndex): ditto.
      (WebCore::ICULocale::convertFromLocalizedNumber):
       Replace characters to corresponding standard characters.
      (WebCore::currentLocale): Added.
      (WebCore::convertToLocalizedNumber): Uses ICULocale::convertToLocalizedNumber.
      (WebCore::convertFromLocalizedNumber): Uses ICULocale::convertFromLocalizedNumber.
      * platform/text/LocalizedNumberICU.h: Added.
      (ICULocale): Added. This is exposed to WebKit/chromium/tests/LocalizedNumberICUTest.cpp.
      
      Source/WebKit/chromium:
      
      Add a test for WebCore/platform/text/LocalizedNumberICU.
      
      * WebKit.gypi: Added LocalizedNumberICUTest.cpp
      * tests/LocalizedNumberICUTest.cpp: Added.
      
      LayoutTests:
      
      * platform/chromium/test_expectations.txt:
      Need to do rebaseline for
      fast/speech/input-appearance-numberandspeech.html because the
      number rounding issue is fixed.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@109876 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      db5467a1
    • abarth@webkit.org's avatar
      Attempt to fix the GTK minimal build · f48a5f63
      abarth@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=80390
      
      Reviewed by Csaba Osztrogonác.
      
      Add some missing ifdefs.
      
      * Modules/geolocation/NavigatorGeolocation.cpp:
      * Modules/geolocation/NavigatorGeolocation.h:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@109875 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f48a5f63
    • mikelawther@chromium.org's avatar
      CSS3 calc: rewrite margin test to use getComputedStyle · bf8dd422
      mikelawther@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=80379
      
      Note that parts of this test still fail, due to yet-to-be-landed CSS3 calc()
      functionality (see http://wkb.ug/16662)
      
      Reviewed by Kent Tamura.
      
      * css3/calc/margin-expected.txt:
      * css3/calc/margin.html:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@109874 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      bf8dd422
    • philn@webkit.org's avatar
      REGRESSION (r109461): broke fast/js/function-dot-arguments-and-caller.html on GTK · 20bfdf34
      philn@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=80117
      
      Unreviewed, unskip the fixed test.
      
      * platform/gtk/Skipped:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@109873 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      20bfdf34
    • podivilov@chromium.org's avatar
      Web Inspector: stop using RawSourceCode in BreakpointManager. · 306d5724
      podivilov@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=80286
      
      Reviewed by Vsevolod Vlasov.
      
      Source/WebCore:
      
      * WebCore.gypi:
      * WebCore.vcproj/WebCore.vcproj:
      * inspector/front-end/BreakpointManager.js:
      (WebInspector.BreakpointManager.prototype.uiSourceCodeAdded):
      (WebInspector.BreakpointManager.prototype.setBreakpoint):
      (WebInspector.BreakpointManager.prototype._materializeBreakpoint):
      (WebInspector.BreakpointManager.prototype._breakpointDebuggerLocationChanged):
      * inspector/front-end/DebuggerPresentationModel.js:
      (WebInspector.DebuggerPresentationModel):
      * inspector/front-end/ScriptMapping.js: Added.
      (WebInspector.ScriptMapping):
      (WebInspector.ScriptMapping.prototype.rawLocationToUILocation):
      (WebInspector.ScriptMapping.prototype.uiLocationToRawLocation):
      (WebInspector.ScriptMapping.prototype.createLiveLocation):
      (WebInspector.ScriptMapping.prototype.uiSourceCodeList):
      * inspector/front-end/WebKit.qrc:
      * inspector/front-end/inspector.html:
      
      LayoutTests:
      
      * inspector/debugger/breakpoint-manager.html:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@109872 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      306d5724
    • barraclough@apple.com's avatar
      Unreviewed windows build fix pt 2. · db68264e
      barraclough@apple.com authored
      * JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCore.def:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@109871 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      db68264e
    • philn@webkit.org's avatar
      WebAudio JSC-related fixes · ec764444
      philn@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=80299
      
      Reviewed by Adam Barth.
      
      * bindings/js/JSAudioContextCustom.cpp:
      (WebCore::JSAudioContextConstructor::constructJSAudioContext):
      Wrap the audio context in a DOM wrapper.
      * webaudio/AudioContext.idl: No need to protect EventTarget by V8
      guards, I think.
      * webaudio/JavaScriptAudioNode.idl: Ditto.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@109870 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ec764444
    • barraclough@apple.com's avatar
      Unreviewed windows build fix pt 1. · f7a790ec
      barraclough@apple.com authored
      * JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCore.def:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@109869 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f7a790ec
    • ossy@webkit.org's avatar
      [Qt] Unreviewed gardening. Skip new crashing tests, · 68e372f8
      ossy@webkit.org authored
      because crashes aren't bugs but features. :)
      
      * platform/qt-5.0-wk2/Skipped:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@109868 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      68e372f8
    • commit-queue@webkit.org's avatar
      Element not fully repainted after application and removal of transform · 46b653fb
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=61338
      
      Source/WebCore:
      
      Patch by Kishore Bolisetty <kbolisetty@innominds.com> on 2012-03-05
      Reviewed by Simon Fraser.
      RenderLayer is created and removed when a transform is applied and removed to element.
      To render the element properly after removal of transform on it, preferred widths and dimensions of
      the element and its containing block needs to be recalculated.
      
      Test: fast/repaint/transform-rotate-and-remove.html
      
      * rendering/RenderBoxModelObject.cpp:
      (WebCore):
      (WebCore::RenderBoxModelObject::styleWillChange):
      (WebCore::RenderBoxModelObject::styleDidChange):
      * rendering/RenderBoxModelObject.h:
      (RenderBoxModelObject):
      
      LayoutTests:
      
      Patch by Kishore Bolisetty <kbolisetty@innominds.com> on 2012-03-05
      Reviewed by Simon Fraser.
      Test to remove the transform property of an element upon onload event.
      
      * fast/repaint/transform-rotate-and-remove.html: Added.
      * platform/chromium-linux/fast/repaint/transform-rotate-and-remove-expected.png: Added.
      * platform/chromium-linux/fast/repaint/transform-rotate-and-remove-expected.txt: Added.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@109867 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      46b653fb
    • barraclough@apple.com's avatar
      putByIndex should throw in strict mode · b1db28d8
      barraclough@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=80335
      
      Reviewed by Filip Pizlo.
      
      Make the MethodTable PutByIndex trap take a boolean 'shouldThrow' parameter.
      
      Source/JavaScriptCore: 
      
      This is a largely mechanical change, simply adding an extra parameter to a number
      of functions. Some call sites need perform additional exception checks, and
      operationPutByValBeyondArrayBounds needs to know whether it is strict or not.
      
      This patch doesn't fix a missing throw from some cases of shift/unshift (this is
      an existing bug), I'll follow up with a third patch to handle that.
      
      * API/JSObjectRef.cpp:
      (JSObjectSetPropertyAtIndex):
      * JSCTypedArrayStubs.h:
      (JSC):
      * dfg/DFGOperations.cpp:
      (JSC::DFG::putByVal):
      * dfg/DFGOperations.h:
      * dfg/DFGSpeculativeJIT32_64.cpp:
      (JSC::DFG::SpeculativeJIT::compile):
      * dfg/DFGSpeculativeJIT64.cpp:
      (JSC::DFG::SpeculativeJIT::compile):
      * interpreter/Interpreter.cpp:
      (JSC::Interpreter::privateExecute):
      * jit/JITStubs.cpp:
      (JSC::DEFINE_STUB_FUNCTION):
      * jsc.cpp:
      (GlobalObject::finishCreation):
      * llint/LLIntSlowPaths.cpp:
      (JSC::LLInt::LLINT_SLOW_PATH_DECL):
      * runtime/Arguments.cpp:
      (JSC::Arguments::putByIndex):
      * runtime/Arguments.h:
      (Arguments):
      * runtime/ArrayPrototype.cpp:
      (JSC::arrayProtoFuncPush):
      (JSC::arrayProtoFuncReverse):
      (JSC::arrayProtoFuncShift):
      (JSC::arrayProtoFuncSort):
      (JSC::arrayProtoFuncSplice):
      (JSC::arrayProtoFuncUnShift):
      * runtime/ClassInfo.h:
      (MethodTable):
      * runtime/JSArray.cpp:
      (JSC::SparseArrayValueMap::put):
      (JSC::JSArray::put):
      (JSC::JSArray::putByIndex):
      (JSC::JSArray::putByIndexBeyondVectorLength):
      (JSC::JSArray::push):
      (JSC::JSArray::shiftCount):
      (JSC::JSArray::unshiftCount):
      * runtime/JSArray.h:
      (SparseArrayValueMap):
      (JSArray):
      * runtime/JSByteArray.cpp:
      (JSC::JSByteArray::putByIndex):
      * runtime/JSByteArray.h:
      (JSByteArray):
      * runtime/JSCell.cpp:
      (JSC::JSCell::putByIndex):
      * runtime/JSCell.h:
      (JSCell):
      * runtime/JSNotAnObject.cpp:
      (JSC::JSNotAnObject::putByIndex):
      * runtime/JSNotAnObject.h:
      (JSNotAnObject):
      * runtime/JSONObject.cpp:
      (JSC::Walker::walk):
      * runtime/JSObject.cpp:
      (JSC::JSObject::putByIndex):
      * runtime/JSObject.h:
      (JSC::JSValue::putByIndex):
      * runtime/RegExpConstructor.cpp:
      (JSC::RegExpMatchesArray::fillArrayInstance):
      * runtime/RegExpMatchesArray.h:
      (JSC::RegExpMatchesArray::putByIndex):
      * runtime/StringPrototype.cpp:
      (JSC::stringProtoFuncSplit):
      
      Source/WebCore: 
      
      * bindings/js/SerializedScriptValue.cpp:
      (WebCore::CloneDeserializer::putProperty):
      * bindings/objc/WebScriptObject.mm:
      (-[WebScriptObject setWebScriptValueAtIndex:value:]):
      * bindings/scripts/CodeGeneratorJS.pm:
      (GenerateHeader):
      (GenerateImplementation):
      * bridge/NP_jsobject.cpp:
      (_NPN_SetProperty):
      * bridge/jni/jni_jsobject.mm:
      (JavaJSObject::setSlot):
      * bridge/runtime_array.cpp:
      (JSC::RuntimeArray::putByIndex):
      * bridge/runtime_array.h:
      (RuntimeArray):
      
      Source/WebKit/mac: 
      
      * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
      (WebKit::NetscapePluginInstanceProxy::setProperty):
      
      Source/WebKit2: 
      
      * WebProcess/Plugins/Netscape/NPJSObject.cpp:
      (WebKit::NPJSObject::setProperty):
      
      LayoutTests: 
      
      * fast/js/Object-defineProperty-expected.txt:
      * fast/js/mozilla/strict/15.4.4.12-expected.txt:
      * fast/js/mozilla/strict/15.4.4.13-expected.txt:
      * fast/js/mozilla/strict/15.4.4.8-expected.txt:
      * fast/js/mozilla/strict/15.4.4.9-expected.txt:
      * fast/js/mozilla/strict/15.5.5.2-expected.txt:
      * fast/js/mozilla/strict/8.12.5-expected.txt:
      * fast/js/preventExtensions-expected.txt:
      * fast/js/primitive-property-access-edge-cases-expected.txt:
          - Checking in passing test results.
      * fast/js/script-tests/Object-defineProperty.js:
          - Added test cases for putting to numeric properties where property is read-only,
            length is read-only, or property is accessor with missing set function.
      * fast/js/script-tests/preventExtensions.js:
          - Added test case, putting numeric property to non-extensible array.
      * fast/js/script-tests/primitive-property-access-edge-cases.js:
          - Enabled test cases for putting numeric properties to primitive strings.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@109866 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b1db28d8
    • yuqiang.xian@intel.com's avatar
      PredictNone is incorrectly treated as isDoublePrediction · ca4ea14f
      yuqiang.xian@intel.com authored
      https://bugs.webkit.org/show_bug.cgi?id=80365
      
      Reviewed by Filip Pizlo.
      
      Also it is incorrectly treated as isFixedIndexedStorageObjectPrediction.
      
      * bytecode/PredictedType.h:
      (JSC::isFixedIndexedStorageObjectPrediction):
      (JSC::isDoublePrediction):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@109865 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ca4ea14f
  2. 05 Mar, 2012 16 commits
    • shinyak@chromium.org's avatar
      InsertionPoint::attach should be consistent with Element. · 61359f38
      shinyak@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=80373
      
      Reviewed by Hajime Morita.
      
      This patch is preparation for coming <shadow> patches.
      
      InsertionPoint used to attach fallback elements before attaching distributed elements.
      To be consistent with Element::attach behavior, attaching distributed elements first is
      natural, because Element attaches a shadow tree first.
      
      Also, this patch extracts a few methods form InsretionPoint::attach() and detach()
      to keep code clean. They will become messy without this refactoring when adding
      <shadow> patch.
      
      No new tests. Should be covered by existing tests.
      
      * html/shadow/InsertionPoint.cpp:
      (WebCore::InsertionPoint::attach):
      (WebCore::InsertionPoint::detach):
      (WebCore::InsertionPoint::distributeHostChildren):
      (WebCore):
      (WebCore::InsertionPoint::clearDistribution):
      (WebCore::InsertionPoint::attachDistributedNode):
      * html/shadow/InsertionPoint.h:
      (InsertionPoint):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@109864 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      61359f38
    • fpizlo@apple.com's avatar
      The LLInt should work even when the JIT is disabled · e6e29a6f
      fpizlo@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=80340
      <rdar://problem/10922235>
      
      Reviewed by Gavin Barraclough.
      
      * assembler/MacroAssemblerCodeRef.h:
      (JSC::MacroAssemblerCodePtr::createLLIntCodePtr):
      (MacroAssemblerCodeRef):
      (JSC::MacroAssemblerCodeRef::createLLIntCodeRef):
      * interpreter/Interpreter.cpp:
      (JSC::Interpreter::initialize):
      (JSC::Interpreter::execute):
      (JSC::Interpreter::executeCall):
      (JSC::Interpreter::executeConstruct):
      * jit/JIT.h:
      (JSC::JIT::compileCTINativeCall):
      * jit/JITStubs.h:
      (JSC::JITThunks::ctiNativeCall):
      (JSC::JITThunks::ctiNativeConstruct):
      * llint/LLIntEntrypoints.cpp:
      (JSC::LLInt::getFunctionEntrypoint):
      (JSC::LLInt::getEvalEntrypoint):
      (JSC::LLInt::getProgramEntrypoint):
      * llint/LLIntSlowPaths.cpp:
      (JSC::LLInt::LLINT_SLOW_PATH_DECL):
      (LLInt):
      * llint/LLIntSlowPaths.h:
      (LLInt):
      * llint/LowLevelInterpreter.h:
      * llint/LowLevelInterpreter32_64.asm:
      * runtime/Executable.h:
      (NativeExecutable):
      (JSC::NativeExecutable::create):
      (JSC::NativeExecutable::finishCreation):
      * runtime/JSGlobalData.cpp:
      (JSC::JSGlobalData::JSGlobalData):
      * runtime/JSGlobalData.h:
      (JSGlobalData):
      * runtime/Options.cpp:
      (Options):
      (JSC::Options::parse):
      (JSC::Options::initializeOptions):
      * runtime/Options.h:
      (Options):
      * wtf/Platform.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@109863 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e6e29a6f
    • ossy@webkit.org's avatar
      Unreviewed, rolling out r109733. · c2fa8a9b
      ossy@webkit.org authored
      http://trac.webkit.org/changeset/109733
      https://bugs.webkit.org/show_bug.cgi?id=80378
      
      It broke Qt5 build system (Requested by Ossy on #webkit).
      
      Patch by Sheriff Bot <webkit.review.bot@gmail.com> on 2012-03-05
      
      * Tools.pro:
      * qmake/config.tests/gccdepends/empty.cpp: Removed.
      * qmake/config.tests/gccdepends/gccdepends.pro: Removed.
      * qmake/mkspecs/features/default_pre.prf:
      * qmake/mkspecs/features/features.prf:
      * qmake/mkspecs/features/unix/default_pre.prf:
      * qmake/sync.profile:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@109862 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c2fa8a9b
    • abarth@webkit.org's avatar
      Attempt to fix a number of GTK tests. · 9ddb9a80
      abarth@webkit.org authored
      * GNUmakefile.list.am:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@109861 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      9ddb9a80
    • joepeck@webkit.org's avatar
      Unreviewed rollout of r109858 for restructuring. · bfb9f5a5
      joepeck@webkit.org authored
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@109860 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      bfb9f5a5
    • yuqiang.xian@intel.com's avatar
      Checks for dead variables are not sufficient when fixing the expected · d7f59e20
      yuqiang.xian@intel.com authored
      values in DFG OSR entry
      https://bugs.webkit.org/show_bug.cgi?id=80371
      
      Reviewed by Filip Pizlo.
      
      A dead variable should be identified when there's no node referencing it.
      But we currently failed to catch the case where there are some nodes
      referencing a variable but those nodes are actually not referenced by
      others so will be ignored in code generation. In such case we should
      also consider that variable to be a dead variable in the block and fix
      the expected values.
      This is performance neutral on SunSpider, V8 and Kraken.
      
      * dfg/DFGJITCompiler.h:
      (JSC::DFG::JITCompiler::noticeOSREntry):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@109859 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d7f59e20
    • joepeck@webkit.org's avatar
      <http://webkit.org/b/78575> Web Inspector: Hide dock button when not allowed to dock · 8a541ea1
      joepeck@webkit.org authored
      Source/WebCore:
      
      There are times when an undocked inspector frontend is not allowed to
      attach to the main window. We can remove the dock button in those cases.
      
      Reviewed by Timothy Hatcher.
      
      No new tests. This functionality is port specific right now.
      
      * page/FrameView.cpp:
      (WebCore::FrameView::performPostLayoutTasks):
      When the main frame is resized we let the inspector frontend client
      update its docked availability.
      
      * WebCore.exp.in:
      * inspector/InspectorInstrumentation.h:
      * inspector/InspectorInstrumentation.cpp:
      (WebCore::InspectorInstrumentation::didResizeMainFrameImpl):
      (WebCore::InspectorInstrumentation::didResizeMainFrame):
      * inspector/InspectorClient.h:
      (WebCore::InspectorClient::updateDockingAvailability):
      * inspector/InspectorController.h:
      * inspector/InspectorController.cpp:
      (WebCore::InspectorController::resume):
      (WebCore::InspectorController::updateDockingAvailability):
      When the main frame is resized call up to the InspectorClient to let
      it update docking availability of the inspector frontend.
      
      * inspector/InspectorFrontendClient.h:
      * inspector/InspectorFrontendClientLocal.h:
      * inspector/InspectorFrontendClientLocal.cpp:
      (WebCore::InspectorFrontendClientLocal::frontendLoaded):
      (WebCore::InspectorFrontendClientLocal::setDockingUnavailable):
      On ports where the inspector frontend client is local, provide a
      setDockingUnavailable InspectorFrontendAPI to update the docking state.
      Automatically update availablity when the frontend completes loading.
      
      * inspector/front-end/InspectorFrontendAPI.js:
      (InspectorFrontendAPI.setDockingUnavailable):
      * inspector/front-end/inspector.js:
      (WebInspector._createGlobalStatusBarItems):
      (WebInspector.setAttachedWindow):
      (WebInspector.setDockingUnavailable):
      (WebInspector.updateDockToggleButtonVisibility):
      Update the dock button's visibility when its created, when the attached
      state changes, when get a frontend API notification that we cannot attach.
      
      Source/WebKit/mac:
      
      * WebCoreSupport/WebInspectorClient.h:
      (WebInspectorClient):
      * WebCoreSupport/WebInspectorClient.mm:
      (WebInspectorClient::updateDockingAvailability):
      
      Source/WebKit2:
      
      * WebProcess/WebCoreSupport/WebInspectorClient.cpp:
      (WebKit::WebInspectorClient::updateDockingAvailability):
      * WebProcess/WebCoreSupport/WebInspectorClient.h:
      * WebProcess/WebPage/WebInspector.cpp:
      (WebKit::WebInspector::updateDockingAvailability):
      * WebProcess/WebPage/WebInspector.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@109858 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      8a541ea1
    • enne@google.com's avatar
      Compositing overlap testing can throw layers into compositing when they should not be. · d77b4334
      enne@google.com authored
      https://bugs.webkit.org/show_bug.cgi?id=50192
      
      Reviewed by Simon Fraser.
      
      Source/WebCore:
      
      The previous overlap map behavior was that a non-composited query
      layer would become composited due to overlap if and only if the query
      layer's absolute bounds overlapped the absolute bounds of some other
      layer which:
          - draws before the query layer
          - is or has a compositing ancestor
      
      This behavior, while correct, was too permissive in throwing layers
      into compositing, causing many layers to get their own backing when
      they could have just gone into their compositing ancestor's backing.
      
      The correct logic is that non-composited query layer needs to be
      composited due to overlap if and only if the query layer's absolute
      bounds overlap the absolute bounds of some other layer which:
          - draws before the query layer
          - has a different compositing ancestor than the query layer
          - is or has a compositing ancestor that is a descendent of the
            query layer's compositing ancestor
      
      This patch changes the semantics of the overlap map to enable this
      behavior.
      
      Rather than having one global overlap map, there is now a stack of
      overlap maps. New (empty) overlap maps are pushed onto the stack
      whenever a layer becomes a compositing ancestor and popped after all
      of the compositing requirements for that layer's children have been
      computed.
      
      The compositing ancestor and all of its non-composited children of a
      compositing ancestor do not get considered for overlap until their
      composited ancestor has been popped off the stack. If a compositing
      ancestor has a compositing subtree, then any descendents of that
      compositing ancestor that draw after that subtree will consider
      everything in the compositing subtree for overlap.
      
      Test: compositing/layer-creation/stacking-context-overlap.html
      
      * platform/graphics/Region.cpp:
      (WebCore::Region::intersects):
      (WebCore):
      * platform/graphics/Region.h:
      (Region):
      * rendering/RenderLayerCompositor.cpp:
      (RenderLayerCompositor::OverlapMap):
      (WebCore::RenderLayerCompositor::OverlapMap::OverlapMap):
      (WebCore::RenderLayerCompositor::OverlapMap::add):
      (WebCore::RenderLayerCompositor::OverlapMap::contains):
      (WebCore::RenderLayerCompositor::OverlapMap::overlapsLayers):
      (WebCore::RenderLayerCompositor::OverlapMap::isEmpty):
      (WebCore::RenderLayerCompositor::OverlapMap::popCompositingContainer):
      (WebCore::RenderLayerCompositor::OverlapMap::pushCompositingContainer):
      (WebCore::RenderLayerCompositor::addToOverlapMapRecursive):
      (WebCore::RenderLayerCompositor::computeCompositingRequirements):
      * rendering/RenderLayerCompositor.h:
      (RenderLayerCompositor):
      
      LayoutTests:
      
      * compositing/layer-creation/stacking-context-overlap-expected.txt: Added.
      * compositing/layer-creation/stacking-context-overlap.html: Added.
      * compositing/layer-creation/stacking-context-overlap-nested-expected.txt: Added.
      * compositing/layer-creation/stacking-context-overlap-nested.html: Added.
      * platform/chromium/test_expectations.txt:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@109851 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d77b4334
    • andersca@apple.com's avatar
      Address review comments from https://bugs.webkit.org/show_bug.cgi?id=80368 · db0f27bc
      andersca@apple.com authored
      * platform/graphics/ca/mac/TileCache.mm:
      (WebCore::TileCache::setNeedsDisplayInRect):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@109847 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      db0f27bc
    • commit-queue@webkit.org's avatar
      [Forms] HTMLFieldSetForms.idl doesn't have type attribute. · 67dfa9b6
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=80109
      
      Patch by Yoshifumi Inoue <yosin@chromium.org> on 2012-03-05
      Reviewed by Hajime Morita.
      
      Source/WebCore:
      
      Test: fast/forms/fieldset/fieldset-type.html
      
      * html/HTMLFieldSetElement.idl: Add attribute "type"
      
      LayoutTests:
      
      * fast/forms/fieldset/fieldset-type-expected.txt: Added.
      * fast/forms/fieldset/fieldset-type.html: Added.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@109846 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      67dfa9b6
    • oliver@apple.com's avatar
      Fix Qt build. · 378963fd
      oliver@apple.com authored
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@109845 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      378963fd
    • andersca@apple.com's avatar
      Fix build. · b171d3a2
      andersca@apple.com authored
      * platform/graphics/ca/mac/TileCache.mm:
      (WebCore::TileCache::setScale):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@109844 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b171d3a2
    • andersca@apple.com's avatar
      pinch-to-zoom and double-tap flicker when using the new scrolling model · 4bfd0702
      andersca@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=80368
      <rdar://problem/10866221>
      
      Reviewed by Sam Weinig.
      
      Source/WebCore:
      
      In order to work better with zooming, make the tile cache undo the scale transformation
      and handle the scaling manually. This avoids creating huge tile backing stores when zoomed in.
      
      * platform/graphics/ca/mac/TileCache.mm:
      (WebCore::TileCache::TileCache):
      Initialize m_scale to 1.
      
      (WebCore::TileCache::setNeedsDisplayInRect):
      Scale the given rect appropriately.
      
      (WebCore::TileCache::drawLayer):
      Apply a scale context transform.
      
      (WebCore::TileCache::setScale):
      No longer set the contents scale. Instead, update the scale and revalidate the tiles.
      
      (WebCore::TileCache::revalidateTiles):
      Return early if the bounds are empty. This avoids showing a single tile if that happens due to a race condition.
      
      (WebCore::TileCache::getTileIndexRangeForRect):
      Apply the scale to the bounds.
      
      (WebCore::TileCache::createTileLayer):
      Don't set the contents scale.
      
      * platform/graphics/ca/mac/WebTileCacheLayer.mm:
      (-[WebTileCacheLayer setContentsScale:]):
      Call TileCache::setScale.
      
      * rendering/RenderLayerBacking.cpp:
      (WebCore::RenderLayerBacking::updateCompositedBounds):
      Make sure to give the tile cache layer sane composited bounds, even if the page has absolutely positioned
      elements that are outside of the page.
      
      Source/WebKit2:
      
      Add a way for drawing areas to respond to callback based force repaint requests asynchronously.
      This is currently needed for the tiled drawing area when there might be outstanding scroll updates
      that are sent from the scrolling thread to the main thread and we need to ensure that they're processed
      before sending a message back.
      
      * WebProcess/WebPage/DrawingArea.h:
      (WebKit::DrawingArea::forceRepaintAsync):
      Add new member function.
      
      * WebProcess/WebPage/WebPage.cpp:
      (WebKit::WebPage::forceRepaint):
      Try forceRepaintAsync first.
      
      * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm:
      (WebKit::forceRepaintAndSendMessage):
      Force the repaint and send the message.
      
      (WebKit::dispatchBackToMainThread):
      Dispatch a call to forceRepaintAndSendMessage to the main thread.
      
      (WebKit::TiledCoreAnimationDrawingArea::forceRepaintAsync):
      Dispatch a function on the scrolling thread. Its sole purpose is to dispatch a function back to the
      main thread, ensuring that all previously dispatched functions have been executed.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@109843 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      4bfd0702
    • leo.yang@torchmobile.com.cn's avatar
      GraphicsContext3D.h should include RefCounted.h explicitly · 5b3e2fa3
      leo.yang@torchmobile.com.cn authored
      https://bugs.webkit.org/show_bug.cgi?id=80251
      
      Reviewed by Rob Buis.
      
      GraphicsContext3D.h was using RefCounted but including RefCounted.h indirectly
      through GraphicsLayer.h through Animation.h. However Animation.h is included
      by GraphicsLayer.h only when ACCELERATED_COMPOSITING is on. For some configurations
      that don't use ACCELERATED_COMPOSITING but use GraphicsContext3D, like the
      BlackBerry x86 configuration, the indirect inclusion will fail.
      
      This patch is adding explicit inclusion of RefCounted.h to avoid that kind of
      problem.
      
      * platform/graphics/GraphicsContext3D.h:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@109841 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      5b3e2fa3
    • bashi@chromium.org's avatar
      [WebSocket] Should raise SYNTAX_ERR when message contains unpaired surrogates · 781b810d
      bashi@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=80103
      
      Reviewed by Kent Tamura.
      
      Source/WebCore:
      
      Add UTF8 validation checks for WebSocket message and close reason.
      
      Tests: http/tests/websocket/tests/hybi/unpaired-surrogates-in-close-reason.html
             http/tests/websocket/tests/hybi/unpaired-surrogates-in-message.html
      
      * Modules/websockets/WebSocket.cpp:
      (WebCore::WebSocket::send): Raise SYNTAX_ERR if the message is invalid.
      (WebCore::WebSocket::close):Raise SYNTAX_ERR if the reason is invalid.
      * Modules/websockets/WebSocketChannel.cpp:
      (WebCore::WebSocketChannel::send): Check whether message is a valid UTF8 string.
      
      LayoutTests:
      
      Added tests for unpaired surrogates check for WebSocket message and close reason.
      Updated two expectations for close() tests because further error message is added.
      
      * http/tests/websocket/tests/hybi/close-expected.txt: Updated.
      * http/tests/websocket/tests/hybi/unpaired-surrogates-in-close-reason-expected.txt: Added.
      * http/tests/websocket/tests/hybi/unpaired-surrogates-in-close-reason.html: Added.
      * http/tests/websocket/tests/hybi/unpaired-surrogates-in-message-expected.txt: Added.
      * http/tests/websocket/tests/hybi/unpaired-surrogates-in-message.html: Added.
      * http/tests/websocket/tests/hybi/workers/close-expected.txt: Updated.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@109840 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      781b810d
    • kbr@google.com's avatar
      [chromium] Notify CCLayerImpl tree of context loss and restoration · 9d93396e
      kbr@google.com authored
      https://bugs.webkit.org/show_bug.cgi?id=80339
      
      Reviewed by James Robinson.
      
      Source/WebCore:
      
      Tested by manually killing GPU process while playing Flash video.
      Video continues to play after compositor restores its context.
      
      * platform/graphics/chromium/cc/CCLayerImpl.cpp:
      (WebCore::CCLayerImpl::didLoseAndRecreateGraphicsContext):
      (WebCore):
      * platform/graphics/chromium/cc/CCLayerImpl.h:
      (CCLayerImpl):
      * platform/graphics/chromium/cc/CCLayerTreeHostImpl.cpp:
      (WebCore::CCLayerTreeHostImpl::sendContextLostAndRestoredNotification):
      (WebCore):
      (WebCore::CCLayerTreeHostImpl::sendContextLostAndRestoredNotificationRecursive):
      * platform/graphics/chromium/cc/CCLayerTreeHostImpl.h:
      (CCLayerTreeHostImpl):
      * platform/graphics/chromium/cc/CCPluginLayerImpl.cpp:
      (WebCore::CCPluginLayerImpl::didLoseAndRecreateGraphicsContext):
      (WebCore):
      * platform/graphics/chromium/cc/CCPluginLayerImpl.h:
      (CCPluginLayerImpl):
      * platform/graphics/chromium/cc/CCSingleThreadProxy.cpp:
      (WebCore::CCSingleThreadProxy::recreateContext):
      
      Source/WebKit/chromium:
      
      Unit test for notification of context loss and restoration.
      
      * tests/CCLayerTreeHostImplTest.cpp:
      (WebKit):
      (ContextLostNotificationCheckLayer):
      (WebKit::ContextLostNotificationCheckLayer::create):
      (WebKit::ContextLostNotificationCheckLayer::didLoseAndRecreateGraphicsContext):
      (WebKit::ContextLostNotificationCheckLayer::didLoseAndRecreateGraphicsContextCalled):
      (WebKit::ContextLostNotificationCheckLayer::ContextLostNotificationCheckLayer):
      (WebKit::TEST_F):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@109839 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      9d93396e