WebKit-https.git
9 years ago2010-08-06 Jessie Berlin <jberlin@apple.com>
jberlin@webkit.org [Fri, 6 Aug 2010 16:09:49 +0000 (16:09 +0000)]
2010-08-06  Jessie Berlin  <jberlin@apple.com>

        Windows Build Fix. Unreviewed.

        * JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCore.vcproj:
        Add GCHandle.h and GCHandle.cpp.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@64854 268f45cc-cd09-0410-ab3c-d52691b4dbfc

9 years ago2010-08-06 ryuan choi <ryuan.choi@samsung.com>
commit-queue@webkit.org [Fri, 6 Aug 2010 16:02:23 +0000 (16:02 +0000)]
2010-08-06  ryuan choi  <ryuan.choi@samsung.com>

        Reviewed by Antonio Gomes.

        [EFL] Regression (64763) build fix for efl.
        https://bugs.webkit.org/show_bug.cgi?id=43597

        change ENABLE_BLOB_SLICE to ENABLE_BLOB for fixing build break

        * cmake/OptionsEfl.cmake:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@64853 268f45cc-cd09-0410-ab3c-d52691b4dbfc

9 years ago2010-08-06 Martin Robinson <mrobinson@igalia.com>
mrobinson@webkit.org [Fri, 6 Aug 2010 15:59:55 +0000 (15:59 +0000)]
2010-08-06  Martin Robinson  <mrobinson@igalia.com>

        Reviewed by Gustavo Noronha Silva.

        [GTK] Support for image drags
        https://bugs.webkit.org/show_bug.cgi?id=40788

        Unskip and add baselines for tests that are now passing with image drag support.

        * platform/gtk/Skipped:
        * platform/gtk/editing/pasteboard/drag-image-to-contenteditable-in-iframe-expected.txt: Added.
        * platform/gtk/editing/pasteboard/drag-selected-image-to-contenteditable-expected.txt: Added.
        * platform/gtk/editing/selection/drag-to-contenteditable-iframe-expected.txt: Added.
        * platform/gtk/fast/events/standalone-image-drag-to-editable-expected.txt: Added.
2010-08-06  Martin Robinson  <mrobinson@igalia.com>

        Reviewed by Gustavo Noronha Silva.

        [GTK] Support for image drags
        https://bugs.webkit.org/show_bug.cgi?id=40788

        Add image drag-and-drop support for WebKit GTK+.

        * platform/gtk/ClipboardGtk.cpp:
        (WebCore::ClipboardGtk::setDragImage): Filled this stub.
        (WebCore::ClipboardGtk::setDragImageElement): Filled this stub.
        (WebCore::ClipboardGtk::createDragImage): Filled this stub.
        (WebCore::ClipboardGtk::declareAndWriteDragImage): Write the image URL, markup, and image itself to the data object member.
        * platform/gtk/ClipboardGtk.h: Brought method declarations into line with the parent class.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@64852 268f45cc-cd09-0410-ab3c-d52691b4dbfc

9 years ago2010-08-06 Pavel Feldman <pfeldman@chromium.org>
pfeldman@chromium.org [Fri, 6 Aug 2010 15:30:59 +0000 (15:30 +0000)]
2010-08-06  Pavel Feldman  <pfeldman@chromium.org>

        Reviewed by Yury Semikhatsky.

        Chromium: disable device motion by default.

        https://bugs.webkit.org/show_bug.cgi?id=43623

        * public/WebRuntimeFeatures.h:
        * src/WebRuntimeFeatures.cpp:
        (WebKit::WebRuntimeFeatures::enableDeviceMotion):
        (WebKit::WebRuntimeFeatures::isDeviceMotionEnabled):
        (WebKit::WebRuntimeFeatures::enableDeviceOrientation):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@64851 268f45cc-cd09-0410-ab3c-d52691b4dbfc

9 years ago2010-08-06 Nikolas Zimmermann <nzimmermann@rim.com>
zimmermann@webkit.org [Fri, 6 Aug 2010 14:59:17 +0000 (14:59 +0000)]
2010-08-06  Nikolas Zimmermann  <nzimmermann@rim.com>

        Not reviewed. Rebaseline win specific getComputedStyle* results, after r64832.

        * platform/win/fast/css/getComputedStyle/computed-style-expected.txt:
        * platform/win/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@64850 268f45cc-cd09-0410-ab3c-d52691b4dbfc

9 years ago2010-08-06 Nathan Lawrence <nlawrence@apple.com>
commit-queue@webkit.org [Fri, 6 Aug 2010 14:55:54 +0000 (14:55 +0000)]
2010-08-06  Nathan Lawrence  <nlawrence@apple.com>

        Reviewed by Geoffrey Garen.

        https://bugs.webkit.org/show_bug.cgi?id=43207

        WeakGCPtr's should instead of directly pointing to the GC'd object
        should be directed to an array of pointers that can be updated for
        movable objects.

        * Android.mk:
        * GNUmakefile.am:
        * JavaScriptCore.exp:
        * JavaScriptCore.gypi:
        * JavaScriptCore.pro:
        * JavaScriptCore.xcodeproj/project.pbxproj:
        * runtime/Collector.cpp:
        (JSC::Heap::destroy):
        (JSC::Heap::allocateBlock):
        (JSC::Heap::freeBlock):
        (JSC::Heap::updateWeakGCHandles):
        (JSC::WeakGCHandlePool::update):
        (JSC::Heap::addWeakGCHandle):
        (JSC::Heap::markRoots):
        * runtime/Collector.h:
        (JSC::Heap::weakGCHandlePool):
        * runtime/GCHandle.cpp: Added.
        (JSC::WeakGCHandle::pool):
        (JSC::WeakGCHandlePool::WeakGCHandlePool):
        (JSC::WeakGCHandlePool::allocate):
        (JSC::WeakGCHandlePool::free):
        (JSC::WeakGCHandlePool::operator new):
        * runtime/GCHandle.h: Added.
        (JSC::WeakGCHandle::isValidPtr):
        (JSC::WeakGCHandle::isPtr):
        (JSC::WeakGCHandle::isNext):
        (JSC::WeakGCHandle::invalidate):
        (JSC::WeakGCHandle::get):
        (JSC::WeakGCHandle::set):
        (JSC::WeakGCHandle::getNextInFreeList):
        (JSC::WeakGCHandle::setNextInFreeList):
        (JSC::WeakGCHandlePool::isFull):
        * runtime/WeakGCPtr.h:
        (JSC::WeakGCPtr::WeakGCPtr):
        (JSC::WeakGCPtr::~WeakGCPtr):
        (JSC::WeakGCPtr::get):
        (JSC::WeakGCPtr::clear):
        (JSC::WeakGCPtr::assign):
        (JSC::get):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@64849 268f45cc-cd09-0410-ab3c-d52691b4dbfc

9 years ago2010-08-06 Nikolas Zimmermann <nzimmermann@rim.com>
zimmermann@webkit.org [Fri, 6 Aug 2010 14:44:52 +0000 (14:44 +0000)]
2010-08-06  Nikolas Zimmermann  <nzimmermann@rim.com>

        Not reviewed. Rebaseline gtk specific getComputedStyle-basic.html result, after r64832.

        * platform/gtk/svg/css/getComputedStyle-basic-expected.txt:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@64848 268f45cc-cd09-0410-ab3c-d52691b4dbfc

9 years ago2010-08-06 Yury Semikhatsky <yurys@chromium.org>
yurys@chromium.org [Fri, 6 Aug 2010 14:00:41 +0000 (14:00 +0000)]
2010-08-06  Yury Semikhatsky  <yurys@chromium.org>

        Reviewed by Pavel Feldman.

        Web Inspector: extract debugger implementation into InspectorDebuggerAgent
        https://bugs.webkit.org/show_bug.cgi?id=42340

        * CMakeLists.txt:
        * GNUmakefile.am:
        * WebCore.gypi:
        * WebCore.pro:
        * WebCore.vcproj/WebCore.vcproj:
        * WebCore.xcodeproj/project.pbxproj:
        * inspector/CodeGeneratorInspector.pm:
        * inspector/Inspector.idl:
        * inspector/InspectorController.cpp:
        (WebCore::InspectorController::InspectorController):
        (WebCore::InspectorController::connectFrontend):
        (WebCore::InspectorController::didCommitLoad):
        (WebCore::InspectorController::enableDebuggerFromFrontend):
        (WebCore::InspectorController::disableDebugger):
        (WebCore::InspectorController::resume):
        (WebCore::InspectorController::loadBreakpoints):
        (WebCore::InspectorController::saveBreakpoints):
        * inspector/InspectorController.h:
        (WebCore::InspectorController::debuggerAgent):
        * inspector/InspectorDebuggerAgent.cpp: Added.
        (WebCore::md5Base16):
        (WebCore::formatBreakpointId):
        (WebCore::InspectorDebuggerAgent::create):
        (WebCore::InspectorDebuggerAgent::InspectorDebuggerAgent):
        (WebCore::InspectorDebuggerAgent::~InspectorDebuggerAgent):
        (WebCore::InspectorDebuggerAgent::isDebuggerAlwaysEnabled):
        (WebCore::InspectorDebuggerAgent::activateBreakpoints):
        (WebCore::InspectorDebuggerAgent::deactivateBreakpoints):
        (WebCore::InspectorDebuggerAgent::setBreakpoint):
        (WebCore::InspectorDebuggerAgent::removeBreakpoint):
        (WebCore::InspectorDebuggerAgent::editScriptSource):
        (WebCore::InspectorDebuggerAgent::getScriptSource):
        (WebCore::InspectorDebuggerAgent::pause):
        (WebCore::InspectorDebuggerAgent::resume):
        (WebCore::InspectorDebuggerAgent::stepOverStatement):
        (WebCore::InspectorDebuggerAgent::stepIntoStatement):
        (WebCore::InspectorDebuggerAgent::stepOutOfFunction):
        (WebCore::InspectorDebuggerAgent::setPauseOnExceptionsState):
        (WebCore::InspectorDebuggerAgent::clearForPageNavigation):
        (WebCore::InspectorDebuggerAgent::currentCallFrames):
        (WebCore::InspectorDebuggerAgent::loadBreakpoints):
        (WebCore::InspectorDebuggerAgent::saveBreakpoints):
        (WebCore::InspectorDebuggerAgent::didParseSource):
        (WebCore::InspectorDebuggerAgent::failedToParseSource):
        (WebCore::InspectorDebuggerAgent::didPause):
        (WebCore::InspectorDebuggerAgent::didContinue):
        (WebCore::InspectorDebuggerAgent::remoteFrontend):
        * inspector/InspectorDebuggerAgent.h: Added.
        * inspector/InspectorFrontend.cpp:
        * inspector/InspectorFrontend.h:
        * inspector/front-end/ScriptsPanel.js:
        (WebInspector.ScriptsPanel):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@64846 268f45cc-cd09-0410-ab3c-d52691b4dbfc

9 years ago2010-08-06 Dean Jackson <dino@apple.com>
dino@apple.com [Fri, 6 Aug 2010 13:38:04 +0000 (13:38 +0000)]
2010-08-06  Dean Jackson  <dino@apple.com>

        Reviewed by Simon Fraser and Steve Block.

        https://bugs.webkit.org/show_bug.cgi?id=42865
        Implement DeviceMotionEvent

        Implement the DeviceMotionEvent interface as defined
        in http://dev.w3.org/geo/api/spec-source-orientation.html
        This is currently an empty implementation, in that there is
        no motion client connected - the platform implementations
        will need to do that.

        Tests: fast/dom/DeviceMotion/create-event.html
               fast/dom/DeviceMotion/optional-event-properties.html
               fast/dom/DeviceMotion/window-property.html

        * Android.derived.jscbindings.mk:
        * Android.derived.v8bindings.mk:
        * Android.jscbindings.mk:
        * Android.mk:
        * Android.v8bindings.mk:
        * CMakeLists.txt:
        * Configurations/FeatureDefines.xcconfig:
        * DerivedSources.make:
        * GNUmakefile.am:
        * WebCore.gypi:
        * WebCore.pro:
        * WebCore.vcproj/WebCore.vcproj:
        * WebCore.xcodeproj/project.pbxproj:
          - Add new files for DeviceMotionEvent build support
        * bindings/generic/RuntimeEnabledFeatures.cpp:
        * bindings/generic/RuntimeEnabledFeatures.h:
          - new runtime flags for device motion
        * bindings/js/JSDeviceMotionEventCustom.cpp: Added.
        * bindings/v8/custom/V8DeviceMotionEventCustom.cpp: Added.
          - Custom JS binding to translate property access through
            to the DeviceMotionData object that the Event holds
        * bindings/js/JSEventCustom.cpp:
          - Include the custom code for DeviceMotionEvent
        * dom/DeviceMotionClient.h: Added.
          - Pure virtual client for DeviceMotion access
        * dom/DeviceMotionController.cpp: Added.
        * dom/DeviceMotionController.h: Added.
          - Controller class that manages event dispatch
        * dom/DeviceMotionData.cpp: Added.
        * dom/DeviceMotionData.h: Added.
          - Representation of the data that comes from a device motion
            client that is then used within the event.
        * dom/DeviceMotionEvent.cpp: Added.
        * dom/DeviceMotionEvent.h: Added.
        * dom/DeviceMotionEvent.idl: Added.
          - The actual event implementation
        * dom/Document.cpp:
        (WebCore::Document::createEvent):
          - Update createEvent to allow "devicemotion" events
        * dom/Event.cpp:
        * dom/Event.h:
          - isDeviceMotionEvent virtual method
        * dom/EventNames.h:
          - new "devicemotion" event type
        * page/DOMWindow.cpp:
        (WebCore::DOMWindow::addEventListener):
        * page/DOMWindow.h:
        * page/DOMWindow.idl:
          - allow creation of "devicemotion" events and pass registration
            through to the Page's deviceMotionController object
        * page/Page.cpp:
        * page/Page.h:
          - new PageClient for deviceMotionController

          Layout Tests:

          * fast/dom/Window/window-properties-device-orientation-expected.txt:
          * fast/dom/Window/window-properties-device-orientation.html:
          * fast/dom/Window/window-properties.html:

          Add some tests for the DeviceMotionEvent interface.

          * fast/dom/DeviceMotion/create-event-expected.txt: Added.
          * fast/dom/DeviceMotion/create-event.html: Added.
          * fast/dom/DeviceMotion/optional-event-properties-expected.txt: Added.
          * fast/dom/DeviceMotion/optional-event-properties.html: Added.
          * fast/dom/DeviceMotion/script-tests/TEMPLATE.html: Added.
          * fast/dom/DeviceMotion/script-tests/create-event.js: Added.
          * fast/dom/DeviceMotion/script-tests/optional-event-properties.js: Added.
          * fast/dom/DeviceMotion/script-tests/window-property.js: Added.
          * fast/dom/DeviceMotion/window-property-expected.txt: Added.
          * fast/dom/DeviceMotion/window-property.html: Added.

          Make sure these are skipped on Mac, Win, GTK and QT.

          * platform/gtk/Skipped:
          * platform/mac/Skipped:
          * platform/qt/Skipped:
          * platform/win/Skipped:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@64845 268f45cc-cd09-0410-ab3c-d52691b4dbfc

9 years ago2010-08-06 Kavita Kanetkar <kkanetkar@chromium.org>
commit-queue@webkit.org [Fri, 6 Aug 2010 13:29:40 +0000 (13:29 +0000)]
2010-08-06  Kavita Kanetkar  <kkanetkar@chromium.org>

        Reviewed by Joseph Pecoraro.

        Web Inspector: Remove "Online/Offline" icon for Chrome's appcache devtools UI.
        https://bugs.webkit.org/show_bug.cgi?id=43450

        * inspector/front-end/ApplicationCacheItemsView.js:
        (WebInspector.ApplicationCacheItemsView):
        (WebInspector.ApplicationCacheItemsView.prototype.get statusBarItems):
        (WebInspector.ApplicationCacheItemsView.prototype.updateNetworkState):
        * inspector/front-end/Settings.js:
2010-08-06  Kavita Kanetkar  <kkanetkar@chromium.org>

        Reviewed by Joseph Pecoraro.

        Web Inspector: Remove "Online/Offline" icon for Chrome's appcache devtools UI.
        https://bugs.webkit.org/show_bug.cgi?id=43450

        * src/js/DevTools.js:
        (WebInspector.loaded):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@64844 268f45cc-cd09-0410-ab3c-d52691b4dbfc

9 years ago2010-08-06 Kent Tamura <tkent@chromium.org>
tkent@chromium.org [Fri, 6 Aug 2010 13:22:31 +0000 (13:22 +0000)]
2010-08-06  Kent Tamura  <tkent@chromium.org>

        Reviewed by Dimitri Glazkov.

        [DRT/Chromium] Should revoke scheduled tasks
        https://bugs.webkit.org/show_bug.cgi?id=43560

        * DumpRenderTree/chromium/DRTDevToolsAgent.cpp:
        (DRTDevToolsAgent::reset): Calls RevokeAll().
        * DumpRenderTree/chromium/DRTDevToolsAgent.h:
        * DumpRenderTree/chromium/DRTDevToolsClient.cpp:
        (DRTDevToolsClient::reset): Calls RevokeAll().
        * DumpRenderTree/chromium/DRTDevToolsClient.h:
        * DumpRenderTree/chromium/EventSender.cpp:
        (EventSender::reset): Calls RevokeAll().
        * DumpRenderTree/chromium/LayoutTestController.cpp:
        (LayoutTestController::reset): Calls RevokeAll().
        * DumpRenderTree/chromium/TestShell.cpp:
        (TestShell::resetTestController): Calls DRTDevToolsAgent::reset() and DRTDevToolsClient::reset().

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@64843 268f45cc-cd09-0410-ab3c-d52691b4dbfc

9 years ago[Qt] Fix warnings about difference in symbol visiblity on Mac OS X
vestbo@webkit.org [Fri, 6 Aug 2010 13:07:39 +0000 (13:07 +0000)]
[Qt] Fix warnings about difference in symbol visiblity on Mac OS X

Reviewed by Antonio Gomes.

* jsc.pro:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@64842 268f45cc-cd09-0410-ab3c-d52691b4dbfc

9 years ago[Qt] Fix the DRT build on Mac OS X
vestbo@webkit.org [Fri, 6 Aug 2010 13:07:21 +0000 (13:07 +0000)]
[Qt] Fix the DRT build on Mac OS X

Reviewed by Antonio Gomes.

* DumpRenderTree/qt/DumpRenderTree.pro:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@64841 268f45cc-cd09-0410-ab3c-d52691b4dbfc

9 years ago2010-08-06 Pavel Feldman <pfeldman@chromium.org>
pfeldman@chromium.org [Fri, 6 Aug 2010 12:59:31 +0000 (12:59 +0000)]
2010-08-06  Pavel Feldman  <pfeldman@chromium.org>

        Not reviewed. Rolling out 64835, 64836 and 64839.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@64840 268f45cc-cd09-0410-ab3c-d52691b4dbfc

9 years agoUnreviewed, fix the "GTK Linux 64-bit Debug" bot.
dumi@chromium.org [Fri, 6 Aug 2010 12:25:50 +0000 (12:25 +0000)]
Unreviewed, fix the "GTK Linux 64-bit Debug" bot.

CodeGeneratorGObject.pm doesn't know yet how to auto-generate
callbacks, so we should not auto-generate functions that take
callbacks as parameters. This shouldn't break anything, because
all these functions were marked as ["Custom"] until now, and this
code generator skipped those functions anyway.

* bindings/scripts/CodeGeneratorGObject.pm:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@64839 268f45cc-cd09-0410-ab3c-d52691b4dbfc

9 years ago2010-08-06 Adam Barth <abarth@webkit.org>
abarth@webkit.org [Fri, 6 Aug 2010 12:13:28 +0000 (12:13 +0000)]
2010-08-06  Adam Barth  <abarth@webkit.org>

        Reviewed by Darin Adler.

        <noscript> is not allowed inside <p>
        https://bugs.webkit.org/show_bug.cgi?id=43440

        Add a test that we now we parse this example correctly.

        * html5lib/resources/webkit02.dat:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@64838 268f45cc-cd09-0410-ab3c-d52691b4dbfc

9 years ago2010-08-06 Nikolas Zimmermann <nzimmermann@rim.com>
zimmermann@webkit.org [Fri, 6 Aug 2010 12:04:29 +0000 (12:04 +0000)]
2010-08-06  Nikolas Zimmermann  <nzimmermann@rim.com>

        Not reviewed, forgot to land these new results in my last commit.

        SVG - stroke-width:0 bug with stroke other than "none"
        https://bugs.webkit.org/show_bug.cgi?id=42387

        * platform/mac/fast/css/getComputedStyle/computed-style-expected.txt:
        * platform/mac/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@64837 268f45cc-cd09-0410-ab3c-d52691b4dbfc

9 years agoUnreviewed, "Qt Linux Realese minimal" build fix.
dumi@chromium.org [Fri, 6 Aug 2010 12:00:27 +0000 (12:00 +0000)]
Unreviewed, "Qt Linux Realese minimal" build fix.

* bindings/scripts/CodeGeneratorJS.pm:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@64836 268f45cc-cd09-0410-ab3c-d52691b4dbfc

9 years agoWebCore: Auto-generate all HTML5 DB bindings.
dumi@chromium.org [Fri, 6 Aug 2010 11:47:10 +0000 (11:47 +0000)]
WebCore: Auto-generate all HTML5 DB bindings.
https://bugs.webkit.org/show_bug.cgi?id=43382

Reviewed by Adam Barth.

* Android.jscbindings.mk: Remove {JS|V8}Database{Sync}Custom.cpp
and the custom implementations of openDatabas{Sync}().
* Android.v8bindings.mk:
* CMakeLists.txt:
* GNUmakefile.am:
* WebCore.gypi:
* WebCore.pro:
* WebCore.vcproj/WebCore.vcproj:
* WebCore.xcodeproj/project.pbxproj:
* bindings/js/JSBindingsAllInOne.cpp:
* bindings/js/JSDOMWindowCustom.cpp:
* bindings/js/JSDatabaseCustom.cpp: Removed.
* bindings/js/JSDatabaseSyncCustom.cpp: Removed.
* bindings/js/JSWorkerContextCustom.cpp:
* bindings/v8/custom/V8DOMWindowCustom.cpp:
* bindings/v8/custom/V8DatabaseCustom.cpp: Removed.
* bindings/v8/custom/V8DatabaseSyncCustom.cpp: Removed.
* bindings/v8/custom/V8WorkerContextCustom.cpp:

* bindings/scripts/CodeGeneratorJS.pm: Change the code generators
to check that a value was passed for each non-optional argument,
and that the value can be converted to the argument type.
* bindings/scripts/CodeGeneratorV8.pm:
* bindings/scripts/test/JS/JSTestCallback.cpp:
(WebCore::JSTestCallback::~JSTestCallback):
* bindings/scripts/test/JS/JSTestObj.cpp:
(WebCore::jsTestObjPrototypeFunctionVoidMethodWithArgs):
(WebCore::jsTestObjPrototypeFunctionIntMethodWithArgs):
(WebCore::jsTestObjPrototypeFunctionObjMethodWithArgs):
(WebCore::jsTestObjPrototypeFunctionMethodThatRequiresAllArgs):
(WebCore::jsTestObjPrototypeFunctionMethodThatRequiresAllArgsAndThrows):
(WebCore::jsTestObjPrototypeFunctionSerializedValue):
(WebCore::jsTestObjPrototypeFunctionIdbKey):
(WebCore::jsTestObjPrototypeFunctionCustomArgsAndException):
(WebCore::jsTestObjPrototypeFunctionWithDynamicFrameAndArg):
(WebCore::jsTestObjPrototypeFunctionWithDynamicFrameAndOptionalArg):
(WebCore::jsTestObjPrototypeFunctionWithDynamicFrameAndUserGesture):
(WebCore::jsTestObjPrototypeFunctionWithDynamicFrameAndUserGestureASAD):
(WebCore::jsTestObjPrototypeFunctionMethodWithOptionalArg):
(WebCore::jsTestObjPrototypeFunctionMethodWithNonOptionalArgAndOptionalArg):
(WebCore::jsTestObjPrototypeFunctionMethodWithNonOptionalArgAndTwoOptionalArgs):
(WebCore::jsTestObjPrototypeFunctionMethodWithCallbackArg):
(WebCore::jsTestObjPrototypeFunctionMethodWithNonCallbackArgAndCallbackArg):
(WebCore::jsTestObjPrototypeFunctionMethodWithCallbackAndOptionalArg):
(WebCore::jsTestObjPrototypeFunctionOverloadedMethod1):
(WebCore::jsTestObjPrototypeFunctionOverloadedMethod2):
(WebCore::jsTestObjPrototypeFunctionOverloadedMethod3):
(WebCore::jsTestObjPrototypeFunctionOverloadedMethod4):
* bindings/scripts/test/TestObj.idl:
* bindings/scripts/test/V8/V8TestObj.cpp:
(WebCore::TestObjInternal::voidMethodWithArgsCallback):
(WebCore::TestObjInternal::intMethodWithArgsCallback):
(WebCore::TestObjInternal::objMethodWithArgsCallback):
(WebCore::TestObjInternal::methodThatRequiresAllArgsCallback):
(WebCore::TestObjInternal::methodThatRequiresAllArgsAndThrowsCallback):
(WebCore::TestObjInternal::serializedValueCallback):
(WebCore::TestObjInternal::idbKeyCallback):
(WebCore::TestObjInternal::customArgsAndExceptionCallback):
(WebCore::TestObjInternal::withDynamicFrameAndArgCallback):
(WebCore::TestObjInternal::withDynamicFrameAndOptionalArgCallback):
(WebCore::TestObjInternal::withDynamicFrameAndUserGestureCallback):
(WebCore::TestObjInternal::withDynamicFrameAndUserGestureASADCallback):
(WebCore::TestObjInternal::methodWithOptionalArgCallback):
(WebCore::TestObjInternal::methodWithNonOptionalArgAndOptionalArgCallback):
(WebCore::TestObjInternal::methodWithNonOptionalArgAndTwoOptionalArgsCallback):
(WebCore::TestObjInternal::methodWithCallbackArgCallback):
(WebCore::TestObjInternal::methodWithNonCallbackArgAndCallbackArgCallback):
(WebCore::TestObjInternal::methodWithCallbackAndOptionalArgCallback):
(WebCore::TestObjInternal::overloadedMethod1Callback):
(WebCore::TestObjInternal::overloadedMethod2Callback):
(WebCore::TestObjInternal::overloadedMethod3Callback):
(WebCore::TestObjInternal::overloadedMethod4Callback):
(WebCore::):
(WebCore::ConfigureV8TestObjTemplate):
* bindings/v8/V8Binding.h:
(WebCore::String):
(WebCore::AtomicString):

* page/DOMWindow.idl: Minor changes required by the auto-generated
bindings.
* storage/Database.cpp:
(WebCore::Database::transaction):
(WebCore::Database::readTransaction):
(WebCore::Database::runTransaction):
* storage/Database.h:
* storage/Database.idl:
* storage/DatabaseSync.cpp:
(WebCore::DatabaseSync::transaction):
(WebCore::DatabaseSync::readTransaction):
(WebCore::DatabaseSync::runTransaction):
* storage/DatabaseSync.h:
* storage/DatabaseSync.idl:
* workers/WorkerContext.idl:

LayoutTests: Cosmetic changes to two tests.
https://bugs.webkit.org/show_bug.cgi?id=43382

Reviewed by Adam Barth.

* fast/workers/storage/open-database-inputs-sync-expected.txt:
* fast/workers/storage/resources/open-database-inputs-sync.js:
* storage/null-callbacks.html:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@64835 268f45cc-cd09-0410-ab3c-d52691b4dbfc

9 years ago2010-08-06 Nikolas Zimmermann <nzimmermann@rim.com>
zimmermann@webkit.org [Fri, 6 Aug 2010 11:43:42 +0000 (11:43 +0000)]
2010-08-06  Nikolas Zimmermann  <nzimmermann@rim.com>

        Not reviewed. Sort XCode project file.

        * WebCore.xcodeproj/project.pbxproj:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@64834 268f45cc-cd09-0410-ab3c-d52691b4dbfc

9 years ago2010-08-06 Nikolas Zimmermann <nzimmermann@rim.com>
zimmermann@webkit.org [Fri, 6 Aug 2010 11:41:41 +0000 (11:41 +0000)]
2010-08-06  Nikolas Zimmermann  <nzimmermann@rim.com>

        Not reviewed. Skip another hyphens* test to turn Leopard green again.

        fast/text/hyphen* tests have different results on Leopard
        https://bugs.webkit.org/show_bug.cgi?id=43296

        * platform/mac-leopard/Skipped:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@64833 268f45cc-cd09-0410-ab3c-d52691b4dbfc

9 years ago2010-08-06 Nikolas Zimmermann <nzimmermann@rim.com>
zimmermann@webkit.org [Fri, 6 Aug 2010 11:30:49 +0000 (11:30 +0000)]
2010-08-06  Nikolas Zimmermann  <nzimmermann@rim.com>

        Not reviewed. Fix warning, breaking win build.

        * svg/SVGLength.cpp:
        (WebCore::SVGLength::toCSSPrimitiveValue):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@64832 268f45cc-cd09-0410-ab3c-d52691b4dbfc

9 years ago Fix crashing Leopard and Gtk bots.
ap@apple.com [Fri, 6 Aug 2010 11:23:29 +0000 (11:23 +0000)]
    Fix crashing Leopard and Gtk bots.

        * platform/text/TextCodecICU.cpp: (WebCore::TextCodecICU::registerExtendedEncodingNames):
        Don't register ISO8859-16, because older versions of ICU don't support ISO-8859-16, causing
        crashes when we try to register an alias. Also, we don't need it, because Firefox doesn't
        support this particular alias (it supports ISO8859-1 to ISO8859-15, but only supports the
        main name for ISO-8859-16).

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@64831 268f45cc-cd09-0410-ab3c-d52691b4dbfc

9 years ago2010-08-06 Nikolas Zimmermann <nzimmermann@rim.com>
zimmermann@webkit.org [Fri, 6 Aug 2010 11:21:20 +0000 (11:21 +0000)]
2010-08-06  Nikolas Zimmermann  <nzimmermann@rim.com>

        Reviewed by Dirk Schulze.

        SVG - stroke-width:0 bug with stroke other than "none"
        https://bugs.webkit.org/show_bug.cgi?id=42387

        Stop storing refcounted CSSValue/CSSValueList objects in SVGRenderStyle, replacing them with SVGLength types.
        Allows us to directly specify default values for stroke-dashoffset/width in the SVGRenderStyle, fixing a problem
        with stroke-width animations when resetting to the original stored baseVal, exposed in svg/W3C-1.1/animate-elem-40-t.svg
        Originally discovered by Fady Samuel.

        Test: svg/custom/path-zero-strokewidth.svg

        * css/SVGCSSComputedStyleDeclaration.cpp:
        (WebCore::strokeDashArrayToCSSValueList): New helper function converting from Vector<SVGLength> to CSSValueList.
        (WebCore::CSSComputedStyleDeclaration::getSVGPropertyCSSValue): Convert SVGLength values to CSSPrimitiveValues.
        * css/SVGCSSStyleSelector.cpp:
        (WebCore::CSSStyleSelector::applySVGProperty): Convert CSSPrimitiveValues to SVGLength objects, for SVGRenderStyle storage.
        * rendering/RenderPath.cpp:
        (WebCore::RenderPath::calculateMarkerBoundsIfNeeded): Just grab strokeWidth SVGLength value from SVGRenderSTyle, no need to call cssPrimitiveToLength anymore.
        * rendering/RenderSVGText.cpp:
        (WebCore::RenderSVGText::strokeBoundingBox): Ditto.
        * rendering/SVGCharacterLayoutInfo.cpp:
        (WebCore::calculateBaselineShift): Ditto (for baseline-shift).
        * rendering/SVGInlineTextBox.cpp:
        (WebCore::SVGInlineTextBox::buildLayoutInformation): Ditto (for kerning).
        * rendering/SVGRenderSupport.cpp:
        (WebCore::SVGRenderSupport::applyStrokeStyleToContext): Ditto (for stroke-width/stroke-dashoffset/stroke-dasharray).
        * rendering/SVGRenderSupport.h:
        * rendering/SVGRenderTreeAsText.cpp:
        (WebCore::writeStyle): Ditto.
        * rendering/SVGTextLayoutUtilities.cpp:
        (WebCore::calculateCSSKerning): Ditto.
        * rendering/SVGTextLayoutUtilities.h:
        * rendering/style/SVGRenderStyle.cpp: Remove no longer needed cssPrimitiveToLength function.
        * rendering/style/SVGRenderStyle.h: Stop storing RefPtr<CSSValue> / RefPtr<CSSValueList> but use SVGLength/Vector<SVGLength>.
        (WebCore::SVGRenderStyle::initialStrokeDashArray): Allows us to specify correct default values, instead of null pointers.
        (WebCore::SVGRenderStyle::initialBaselineShiftValue): Specify 0px default value.
        (WebCore::SVGRenderStyle::initialKerning): Ditto.
        (WebCore::SVGRenderStyle::initialStrokeDashOffset): Ditto.
        (WebCore::SVGRenderStyle::initialStrokeWidth): Specify 1px default value.
        (WebCore::SVGRenderStyle::setStrokeDashArray): Takes a Vector<SVGLength> now, not a PassRefPtr<CSSValueList>.
        (WebCore::SVGRenderStyle::setStrokeWidth): Takes a SVGLength now, not a PassRefPtr<CSSValue>.
        (WebCore::SVGRenderStyle::setStrokeDashOffset): Ditto.
        (WebCore::SVGRenderStyle::setKerning): Ditto.
        (WebCore::SVGRenderStyle::setStopColor): Pass Color as const-reference.
        (WebCore::SVGRenderStyle::setFloodColor): Ditto.
        (WebCore::SVGRenderStyle::setLightingColor): Ditto.
        (WebCore::SVGRenderStyle::setBaselineShiftValue): Takes a SVGLength now, not a PassRefPtr<CSSValue>.
        (WebCore::SVGRenderStyle::setShadow): Reformat, had wrong style.
        (WebCore::SVGRenderStyle::setClipperResource): Pass String as const-reference.
        (WebCore::SVGRenderStyle::setFilterResource): Ditto.
        (WebCore::SVGRenderStyle::setMaskerResource): Ditto.
        (WebCore::SVGRenderStyle::setMarkerStartResource): Ditto.
        (WebCore::SVGRenderStyle::setMarkerMidResource): Ditto.
        (WebCore::SVGRenderStyle::setMarkerEndResource): Ditto.
        (WebCore::SVGRenderStyle::strokeDashArray): Return Vector<SVGLength>.
        (WebCore::SVGRenderStyle::strokeWidth): Return SVGLength.
        (WebCore::SVGRenderStyle::strokeDashOffset): Ditto.
        (WebCore::SVGRenderStyle::kerning): Ditto.
        (WebCore::SVGRenderStyle::baselineShiftValue): Ditto.
        * rendering/style/SVGRenderStyleDefs.cpp:
        (WebCore::StyleStrokeData::StyleStrokeData): Changed initialization order, to group stroke properties.
        * rendering/style/SVGRenderStyleDefs.h: Store SVGLength values instead of reference counted CSS objects.
        * svg/SVGLength.cpp:
        (WebCore::SVGLength::SVGLength): Add copy constructor.
        (WebCore::SVGLength::operator==): Add comparision operator.
        (WebCore::SVGLength::operator!=): Ditto.
        (WebCore::SVGLength::fromCSSPrimitiveValue): New static helper function to convert from a CSSPrimitiveValue.
        (WebCore::SVGLength::toCSSPrimitiveValue): New static helper function to convert to a CSSPrimitiveValue.
        * svg/SVGLength.h: Reindent.

2010-08-06  Nikolas Zimmermann  <nzimmermann@rim.com>

        Reviewed by Dirk Schulze.

        SVG - stroke-width:0 bug with stroke other than "none"
        https://bugs.webkit.org/show_bug.cgi?id=42387

        * platform/mac-leopard/svg/W3C-SVG-1.1/animate-elem-40-t-expected.checksum: Updated result, as fill="freeze" and stroke-width now works as expected.
        * platform/mac-leopard/svg/W3C-SVG-1.1/animate-elem-40-t-expected.png: Ditto.
        * platform/mac/fast/css/getComputedStyle/computed-style-expected.txt: kerning reports 0, stroke-dashoffset 0, stroke-width 1 instead of empty values.
        * platform/mac/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: Ditto.
        * platform/mac/svg/W3C-SVG-1.1/animate-elem-40-t-expected.txt: Updated result, as fill="freeze" and stroke-width now works as expected.
        * platform/mac/svg/custom/path-zero-strokewidth-expected.checksum: Added.
        * platform/mac/svg/custom/path-zero-strokewidth-expected.png: Added.
        * platform/mac/svg/custom/path-zero-strokewidth-expected.txt: Added.
        * svg/css/getComputedStyle-basic-expected.txt: An empty stroke-dasharray reports "none", as defined in the spec now.
        * svg/custom/path-zero-strokewidth.svg: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@64830 268f45cc-cd09-0410-ab3c-d52691b4dbfc

9 years ago2010-08-06 Luiz Agostini <luiz.agostini@openbossa.org>
commit-queue@webkit.org [Fri, 6 Aug 2010 11:15:40 +0000 (11:15 +0000)]
2010-08-06  Luiz Agostini  <luiz.agostini@openbossa.org>

        Reviewed by Kenneth Rohde Christiansen.

        [Qt] Move Qt's popup menu implementation from WebCore to WebKit layer
        https://bugs.webkit.org/show_bug.cgi?id=43427

        After PopupMenu changes in bug 42592 class QtAbstractWebPopup became unecessary and
        there is no need to keep any Qt specific code for popup menus in WebCore/platform/qt.

        PopupMenuQt has been moved from WebCore/platform/qt to WebKit/qt/WebCoreSupport and
        assumed the responsibilities of QtAbstractWebPopup. SearchPopupMenuQt has been moved
        to WebKit/qt/WebCoreSupport as well.

        All classes that previously inherited from QtAbstractWebPopup now inherit from
        QWebSelectMethod and QtPlatformPlugin's method createSelectInputMethod now returns an
        instance of class QWebSelectMethod instead of QtAbstractWebPopup.

        * WebCore.pro:
        * platform/qt/PopupMenuQt.cpp: Removed.
        * platform/qt/PopupMenuQt.h: Removed.
        * platform/qt/QtAbstractWebPopup.cpp: Removed.
        * platform/qt/QtAbstractWebPopup.h: Removed.
        * platform/qt/SearchPopupMenuQt.cpp: Removed.
        * platform/qt/SearchPopupMenuQt.h: Removed.
2010-08-06  Luiz Agostini  <luiz.agostini@openbossa.org>

        Reviewed by Kenneth Rohde Christiansen.

        [Qt] Move Qt's popup menu implementation from WebCore to WebKit layer
        https://bugs.webkit.org/show_bug.cgi?id=43427

        After PopupMenu changes in bug 42592 class QtAbstractWebPopup became unecessary and
        there is no need to keep any Qt specific code for popup menus in WebCore/platform/qt.

        PopupMenuQt has been moved from WebCore/platform/qt to WebKit/qt/WebCoreSupport and
        assumed the responsibilities of QtAbstractWebPopup. SearchPopupMenuQt has been moved
        to WebKit/qt/WebCoreSupport as well.

        All classes that previously inherited from QtAbstractWebPopup now inherit from
        QWebSelectMethod and QtPlatformPlugin's method createSelectInputMethod now returns an
        instance of class QWebSelectMethod instead of QtAbstractWebPopup.

        * WebCoreSupport/ChromeClientQt.cpp:
        (WebCore::ChromeClientQt::createSelectPopup):
        (WebCore::ChromeClientQt::createPopupMenu):
        (WebCore::ChromeClientQt::createSearchPopupMenu):
        * WebCoreSupport/ChromeClientQt.h:
        * WebCoreSupport/PopupMenuQt.cpp: Added.
        (SelectData::SelectData):
        (SelectData::itemText):
        (SelectData::itemToolTip):
        (SelectData::itemIsEnabled):
        (SelectData::itemCount):
        (SelectData::itemIsSelected):
        (SelectData::multiple):
        (SelectData::itemType):
        (WebCore::PopupMenuQt::PopupMenuQt):
        (WebCore::PopupMenuQt::~PopupMenuQt):
        (WebCore::PopupMenuQt::disconnectClient):
        (WebCore::PopupMenuQt::show):
        (WebCore::PopupMenuQt::didHide):
        (WebCore::PopupMenuQt::hide):
        (WebCore::PopupMenuQt::updateFromElement):
        (WebCore::PopupMenuQt::selectItem):
        * WebCoreSupport/PopupMenuQt.h: Added.
        * WebCoreSupport/QtFallbackWebPopup.cpp:
        (WebCore::QtFallbackWebPopupCombo::hidePopup):
        (WebCore::QtFallbackWebPopup::QtFallbackWebPopup):
        (WebCore::QtFallbackWebPopup::show):
        (WebCore::QtFallbackWebPopup::populate):
        (WebCore::QtFallbackWebPopup::activeChanged):
        (WebCore::QtFallbackWebPopup::pageClient):
        * WebCoreSupport/QtFallbackWebPopup.h:
        (WebCore::QtFallbackWebPopup::setGeometry):
        (WebCore::QtFallbackWebPopup::geometry):
        (WebCore::QtFallbackWebPopup::setFont):
        (WebCore::QtFallbackWebPopup::font):
        * WebCoreSupport/QtMaemoWebPopup.cpp:
        (WebCore::Maemo5Popup::populateList):
        (WebCore::QtMaemoWebPopup::QtMaemoWebPopup):
        (WebCore::QtMaemoWebPopup::createSingleSelectionPopup):
        (WebCore::QtMaemoWebPopup::createMultipleSelectionPopup):
        (WebCore::QtMaemoWebPopup::createPopup):
        (WebCore::QtMaemoWebPopup::show):
        (WebCore::QtMaemoWebPopup::popupClosed):
        (WebCore::QtMaemoWebPopup::itemClicked):
        (WebCore::Maemo5SingleSelectionPopup::Maemo5SingleSelectionPopup):
        (WebCore::Maemo5MultipleSelectionPopup::Maemo5MultipleSelectionPopup):
        * WebCoreSupport/QtMaemoWebPopup.h:
        (WebCore::Maemo5Popup::Maemo5Popup):
        * WebCoreSupport/QtPlatformPlugin.cpp:
        (WebCore::QtPlatformPlugin::createSelectInputMethod):
        * WebCoreSupport/QtPlatformPlugin.h:
        * WebCoreSupport/SearchPopupMenuQt.cpp: Added.
        (WebCore::SearchPopupMenuQt::SearchPopupMenuQt):
        (WebCore::SearchPopupMenuQt::popupMenu):
        (WebCore::SearchPopupMenuQt::saveRecentSearches):
        (WebCore::SearchPopupMenuQt::loadRecentSearches):
        (WebCore::SearchPopupMenuQt::enabled):
        * WebCoreSupport/SearchPopupMenuQt.h: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@64829 268f45cc-cd09-0410-ab3c-d52691b4dbfc

9 years ago2010-08-05 Marcus Bulach <bulach@chromium.org>
bulach@chromium.org [Fri, 6 Aug 2010 10:37:41 +0000 (10:37 +0000)]
2010-08-05  Marcus Bulach  <bulach@chromium.org>

        Reviewed by Jeremy Orlow.

        Initial bindings and plumbing for IDBCursor.
        https://bugs.webkit.org/show_bug.cgi?id=41888

        Test: storage/indexeddb/idb-opencursor.html

        * storage/indexeddb/open-cursor-expected.txt: Added.
        * storage/indexeddb/open-cursor.html: Added.
        * storage/indexeddb/script-tests/open-cursor.js: Added.
        (cursorSuccess):
        (openCursor):
        (populateObjectStore):
        (createObjectStoreSuccess):
        (openSuccess):
        (test):
2010-08-05  Marcus Bulach  <bulach@chromium.org>

        Reviewed by Jeremy Orlow.

        Initial bindings and plumbing for IDBCursor.
        https://bugs.webkit.org/show_bug.cgi?id=41888

        Test: storage/indexeddb/idb-opencursor.html

        * Android.derived.jscbindings.mk:
        * Android.derived.v8bindings.mk:
        * Android.mk:
        * CMakeLists.txt:
        * DerivedSources.cpp:
        * DerivedSources.make:
        * GNUmakefile.am:
        * WebCore.gypi:
        * WebCore.pri:
        * WebCore.pro:
        * WebCore.vcproj/WebCore.vcproj:
        * WebCore.xcodeproj/project.pbxproj:
        * bindings/v8/custom/V8IDBAnyCustom.cpp:
        (WebCore::toV8):
        * storage/IDBAny.cpp:
        (WebCore::IDBAny::idbCursor):
        (WebCore::IDBAny::set):
        * storage/IDBAny.h:
        (WebCore::IDBAny::):
        * storage/IDBCallbacks.h:
        * storage/IDBCursor.cpp: Added.
        (WebCore::IDBCursor::IDBCursor):
        (WebCore::IDBCursor::~IDBCursor):
        (WebCore::IDBCursor::direction):
        (WebCore::IDBCursor::key):
        (WebCore::IDBCursor::value):
        (WebCore::IDBCursor::update):
        (WebCore::IDBCursor::continueFunction):
        (WebCore::IDBCursor::remove):
        * storage/IDBCursor.h: Added.
        (WebCore::IDBCursor::):
        (WebCore::IDBCursor::create):
        * storage/IDBCursor.idl: Added.
        * storage/IDBCursorBackendImpl.cpp: Added.
        (WebCore::IDBCursorBackendImpl::IDBCursorBackendImpl):
        (WebCore::IDBCursorBackendImpl::~IDBCursorBackendImpl):
        (WebCore::IDBCursorBackendImpl::direction):
        (WebCore::IDBCursorBackendImpl::key):
        (WebCore::IDBCursorBackendImpl::value):
        (WebCore::IDBCursorBackendImpl::update):
        (WebCore::IDBCursorBackendImpl::continueFunction):
        (WebCore::IDBCursorBackendImpl::remove):
        * storage/IDBCursorBackendImpl.h: Added.
        (WebCore::IDBCursorBackendImpl::create):
        * storage/IDBCursorBackendInterface.h: Added.
        (WebCore::IDBCursorBackendInterface::~IDBCursorBackendInterface):
        * storage/IDBObjectStore.cpp:
        (WebCore::IDBObjectStore::openCursor):
        * storage/IDBObjectStore.h:
        * storage/IDBObjectStore.idl:
        * storage/IDBObjectStoreBackendImpl.cpp:
        (WebCore::IDBObjectStoreBackendImpl::openCursor):
        * storage/IDBObjectStoreBackendImpl.h:
        * storage/IDBObjectStoreBackendInterface.h:
        * storage/IDBRequest.cpp:
        (WebCore::IDBRequest::onSuccess):
        (WebCore::IDBRequest::timerFired):
        * storage/IDBRequest.h:
2010-08-05  Marcus Bulach  <bulach@chromium.org>

        Reviewed by Jeremy Orlow.

        Initial bindings and plumbing for IDBCursor.
        https://bugs.webkit.org/show_bug.cgi?id=41888

        Test: storage/indexeddb/idb-opencursor.html

        * WebKit.gyp:
        * public/WebIDBCallbacks.h:
        (WebKit::WebIDBCallbacks::onSuccess):
        * public/WebIDBCursor.h: Added.
        (WebKit::WebIDBCursor::~WebIDBCursor):
        (WebKit::WebIDBCursor::direction):
        (WebKit::WebIDBCursor::key):
        (WebKit::WebIDBCursor::value):
        (WebKit::WebIDBCursor::update):
        (WebKit::WebIDBCursor::continueFunction):
        (WebKit::WebIDBCursor::remove):
        * public/WebIDBKeyRange.h: Added.
        (WebKit::WebIDBKeyRange::~WebIDBKeyRange):
        (WebKit::WebIDBKeyRange::WebIDBKeyRange):
        * public/WebIDBObjectStore.h:
        (WebKit::WebIDBObjectStore::openCursor):
        * src/IDBCallbacksProxy.cpp:
        (WebCore::IDBCallbacksProxy::onSuccess):
        * src/IDBCallbacksProxy.h:
        * src/IDBCursorBackendProxy.cpp: Added.
        (WebCore::IDBCursorBackendProxy::create):
        (WebCore::IDBCursorBackendProxy::IDBCursorBackendProxy):
        (WebCore::IDBCursorBackendProxy::~IDBCursorBackendProxy):
        (WebCore::IDBCursorBackendProxy::direction):
        (WebCore::IDBCursorBackendProxy::key):
        (WebCore::IDBCursorBackendProxy::value):
        (WebCore::IDBCursorBackendProxy::update):
        (WebCore::IDBCursorBackendProxy::continueFunction):
        (WebCore::IDBCursorBackendProxy::remove):
        * src/IDBCursorBackendProxy.h: Added.
        * src/IDBObjectStoreProxy.cpp:
        (WebCore::IDBObjectStoreProxy::openCursor):
        * src/IDBObjectStoreProxy.h:
        * src/WebIDBCallbacksImpl.cpp:
        (WebCore::WebIDBCallbacksImpl::onSuccess):
        * src/WebIDBCallbacksImpl.h:
        * src/WebIDBCursorImpl.cpp: Added.
        (WebKit::WebIDBCursorImpl::WebIDBCursorImpl):
        (WebKit::WebIDBCursorImpl::~WebIDBCursorImpl):
        (WebKit::WebIDBCursorImpl::direction):
        (WebKit::WebIDBCursorImpl::key):
        (WebKit::WebIDBCursorImpl::value):
        (WebKit::WebIDBCursorImpl::update):
        (WebKit::WebIDBCursorImpl::continueFunction):
        (WebKit::WebIDBCursorImpl::remove):
        * src/WebIDBCursorImpl.h: Added.
        * src/WebIDBKeyRange.cpp: Added.
        (WebKit::WebIDBKeyRange::WebIDBKeyRange):
        (WebKit::WebIDBKeyRange::assign):
        (WebKit::WebIDBKeyRange::reset):
        (WebKit::WebIDBKeyRange::left):
        (WebKit::WebIDBKeyRange::right):
        (WebKit::WebIDBKeyRange::flags):
        * src/WebIDBObjectStoreImpl.cpp:
        (WebKit::WebIDBObjectStoreImpl::openCursor):
        * src/WebIDBObjectStoreImpl.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@64828 268f45cc-cd09-0410-ab3c-d52691b4dbfc

9 years agoRefactor identifier parsing in lexer
zherczeg@webkit.org [Fri, 6 Aug 2010 10:33:10 +0000 (10:33 +0000)]
Refactor identifier parsing in lexer
https://bugs.webkit.org/show_bug.cgi?id=41845

Reviewed by Darin Adler.

The code is refactored to avoid gotos. The new code
has the same performance as the old one.

SunSpider --parse-only: no change (from 34.0ms to 33.6ms)
SunSpider: no change (from 523.2ms to 523.5ms)

* parser/Lexer.cpp:
(JSC::Lexer::parseIdent):
(JSC::Lexer::lex):
* parser/Lexer.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@64827 268f45cc-cd09-0410-ab3c-d52691b4dbfc

9 years ago2010-08-06 Andrei Popescu <andreip@google.com>
andreip@google.com [Fri, 6 Aug 2010 10:16:41 +0000 (10:16 +0000)]
2010-08-06  Andrei Popescu  <andreip@google.com>

        Unreviewed, release build fix.

        Leopard relase build is broken due to absolute path to JSIDBTransaction.cpp file present in XCode project file.
        https://bugs.webkit.org/show_bug.cgi?id=43616

        * WebCore.xcodeproj/project.pbxproj:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@64826 268f45cc-cd09-0410-ab3c-d52691b4dbfc

9 years ago2010-08-06 Kenneth Rohde Christiansen <kenneth@webkit.org>
kenneth@webkit.org [Fri, 6 Aug 2010 10:00:10 +0000 (10:00 +0000)]
2010-08-06  Kenneth Rohde Christiansen  <kenneth@webkit.org>

        Reviewed by Antonio Gomes.

        [Qt] Add support for the Android viewport meta tag extensions.
        http://webkit.org/b/43567

        * Api/qwebpage.h:
        * WebCoreSupport/ChromeClientQt.cpp:
        (WebCore::ChromeClientQt::didReceiveViewportArguments):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@64825 268f45cc-cd09-0410-ab3c-d52691b4dbfc

9 years ago2010-08-05 Andrei Popescu <andreip@dhcp-172-16-14-12.lon.corp.google.com>
andreip@google.com [Fri, 6 Aug 2010 09:42:22 +0000 (09:42 +0000)]
2010-08-05  Andrei Popescu  <andreip@dhcp-172-16-14-12.lon.corp.google.com>

        Reviewed by Jeremy Orlow.

        [IndexedDB] IndexedDB is missing the Transaction interface.
        https://bugs.webkit.org/show_bug.cgi?id=42970

        Add IDBTransaction boilerplate.

        No new tests, not functional yet.

        * Android.derived.jscbindings.mk:
        * Android.derived.v8bindings.mk:
        * Android.mk:
        * CMakeLists.txt:
        * DerivedSources.cpp:
        * DerivedSources.make:
        * GNUmakefile.am:
        * WebCore.gypi:
        * WebCore.pri:
        * WebCore.pro:
        * WebCore.vcproj/WebCore.vcproj:
        * WebCore.xcodeproj/project.pbxproj:
        * dom/EventNames.h:
        * storage/IDBDatabase.cpp:
        (WebCore::IDBDatabase::transaction):
        * storage/IDBDatabase.h:
        * storage/IDBDatabase.idl:
        * storage/IDBDatabaseBackendImpl.cpp:
        (WebCore::IDBDatabaseBackendImpl::transaction):
        * storage/IDBDatabaseBackendImpl.h:
        * storage/IDBDatabaseBackendInterface.h:
        * storage/IDBRequest.cpp:
        (WebCore::IDBRequest::IDBRequest):
        (WebCore::IDBRequest::canSuspend):
        (WebCore::IDBRequest::timerFired):
        (WebCore::IDBRequest::onEventCommon):
        * storage/IDBRequest.h:
        * storage/IDBTransaction.cpp: Added.
        (WebCore::IDBTransaction::IDBTransaction):
        (WebCore::IDBTransaction::~IDBTransaction):
        (WebCore::IDBTransaction::mode):
        (WebCore::IDBTransaction::db):
        (WebCore::IDBTransaction::objectStore):
        (WebCore::IDBTransaction::abort):
        (WebCore::IDBTransaction::scriptExecutionContext):
        (WebCore::IDBTransaction::canSuspend):
        (WebCore::IDBTransaction::eventTargetData):
        (WebCore::IDBTransaction::ensureEventTargetData):
        * storage/IDBTransaction.h: Added.
        (WebCore::IDBTransaction::create):
        (WebCore::IDBTransaction::):
        (WebCore::IDBTransaction::toIDBTransaction):
        (WebCore::IDBTransaction::refEventTarget):
        (WebCore::IDBTransaction::derefEventTarget):
        * storage/IDBTransaction.idl: Added.
        * storage/IDBTransactionBackendInterface.h: Added.
        (WebCore::IDBTransactionBackendInterface::~IDBTransactionBackendInterface):
2010-08-05  Andrei Popescu  <andreip@dhcp-172-16-14-12.lon.corp.google.com>

        Reviewed by Jeremy Orlow.

        [IndexedDB] IndexedDB is missing the Transaction interface.
        https://bugs.webkit.org/show_bug.cgi?id=42970

        Add IDBTransaction boilerplate.

        * src/IDBDatabaseProxy.cpp:
        (WebCore::IDBDatabaseProxy::transaction):
        * src/IDBDatabaseProxy.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@64824 268f45cc-cd09-0410-ab3c-d52691b4dbfc

9 years ago2010-08-06 Rafael Antognolli <antognolli@profusion.mobi>
commit-queue@webkit.org [Fri, 6 Aug 2010 08:45:03 +0000 (08:45 +0000)]
2010-08-06  Rafael Antognolli  <antognolli@profusion.mobi>

        Unreviewed build fix.

        [EFL] Regression (64735) build fix for efl.
        https://bugs.webkit.org/show_bug.cgi?id=43564

        Removing bindings/js/ScriptArray.cpp from the WebCore_SOURCES.
        No new features, so no new tests.

        * CMakeLists.txt:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@64823 268f45cc-cd09-0410-ab3c-d52691b4dbfc

9 years ago2010-08-06 Jochen Eisinger <jochen@chromium.org>
jochen@chromium.org [Fri, 6 Aug 2010 08:42:43 +0000 (08:42 +0000)]
2010-08-06  Jochen Eisinger  <jochen@chromium.org>

        Reviewed by Pavel Feldman.

        Rietvield's upload.py moved to a different location.
        https://bugs.webkit.org/show_bug.cgi?id=43613

        * Scripts/webkitpy/thirdparty/__init__.py:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@64822 268f45cc-cd09-0410-ab3c-d52691b4dbfc

9 years ago2010-08-06 Pavel Feldman <pfeldman@chromium.org>
pfeldman@chromium.org [Fri, 6 Aug 2010 08:15:13 +0000 (08:15 +0000)]
2010-08-06  Pavel Feldman  <pfeldman@chromium.org>

        Not reviewed: Chromium test expectations rebaseline.

        * platform/chromium-linux/fast/text/stripNullFromText-expected.checksum:
        * platform/chromium-linux/fast/text/stripNullFromText-expected.png: Added.
        * platform/chromium-linux/fast/text/stripNullFromText-expected.txt:
        * platform/chromium-linux/websocket/tests/bad-sub-protocol-control-chars-expected.txt: Added.
        * platform/chromium-mac/fast/text/stripNullFromText-expected.checksum:
        * platform/chromium-mac/fast/text/stripNullFromText-expected.png:
        * platform/chromium-mac/websocket/tests/bad-sub-protocol-control-chars-expected.txt:
        * platform/chromium-win/fast/text/stripNullFromText-expected.checksum:
        * platform/chromium-win/fast/text/stripNullFromText-expected.png:
        * platform/chromium-win/fast/text/stripNullFromText-expected.txt:
        * platform/chromium-win/websocket/tests/bad-sub-protocol-control-chars-expected.txt:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@64821 268f45cc-cd09-0410-ab3c-d52691b4dbfc

9 years ago Fix http/tests/webarchive/test-css-url-encoding-shift-jis.html
ap@apple.com [Fri, 6 Aug 2010 06:50:41 +0000 (06:50 +0000)]
    Fix http/tests/webarchive/test-css-url-encoding-shift-jis.html

        For some reason, I didn't see the failure locally, but bots complain.

        * platform/text/TextCodecICU.cpp: (WebCore::TextCodecICU::registerExtendedEncodingNames):
        Register "shift-jis" (with dash instead of underscore). At least Firefox supports it.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@64820 268f45cc-cd09-0410-ab3c-d52691b4dbfc

9 years ago2010-08-05 Ben Murdoch <benm@google.com>
benm@google.com [Fri, 6 Aug 2010 05:57:08 +0000 (05:57 +0000)]
2010-08-05  Ben Murdoch  <benm@google.com>

        Reviewed by Simon Fraser.

        Form button input elements lacking text in some cases after switching from visibility:collapse to visibility:visible
        https://bugs.webkit.org/show_bug.cgi?id=38050

        * fast/css/visibility-collapse-form-buttons-expected.txt: Added.
        * fast/css/visibility-collapse-form-buttons.html: Added.
2010-08-05  Ben Murdoch  <benm@google.com>

        Reviewed by Simon Fraser.

        Form button input elements lacking text in some cases after switching from
        visibility:collapse to visibility:visible
        https://bugs.webkit.org/show_bug.cgi?id=38050

        A relayout is required after toggling visibility from collapse to another value.

        Test: fast/css/visibility-collapse-form-buttons.html

        * rendering/style/RenderStyle.cpp:
        (WebCore::RenderStyle::diff): If we're toggling from visibility:collapse to another
            visibility value (or vice versa) then we need to trigger a relayout.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@64819 268f45cc-cd09-0410-ab3c-d52691b4dbfc

9 years agoThe ARM JIT does not support JSValue32_64 with RVCT
loki@webkit.org [Fri, 6 Aug 2010 05:50:51 +0000 (05:50 +0000)]
The ARM JIT does not support JSValue32_64 with RVCT
https://bugs.webkit.org/show_bug.cgi?id=43411

Reviewed by Gavin Barraclough.

JSValue32_64 is enabled for RVCT by default.

* create_jit_stubs:
* jit/JITStubs.cpp:
(JSC::ctiTrampoline):
(JSC::ctiVMThrowTrampoline):
(JSC::ctiOpThrowNotCaught):
* wtf/Platform.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@64818 268f45cc-cd09-0410-ab3c-d52691b4dbfc

9 years ago Reviewed by Darin Adler.
ap@apple.com [Fri, 6 Aug 2010 05:36:28 +0000 (05:36 +0000)]
    Reviewed by Darin Adler.

        https://bugs.webkit.org/show_bug.cgi?id=43554
        Way too many encoding aliases are treated as valid

        <rdar://problem/7863399> Garbage characters displayed in some yesky.com pages.

        <rdar://problem/7859068> Garbage characters displayed for most text at ceping.zhaopin.com

        Test: http/tests/misc/bad-charset-alias.html

        * loader/TextResourceDecoder.cpp: (WebCore::TextResourceDecoder::checkForCSSCharset):
        Fix encoding name length computation. Previously, a trailing quote was ignored by
        TextEncodingRegistry.

        * platform/text/TextCodecICU.cpp: (WebCore::TextCodecICU::registerExtendedEncodingNames):
        Added dashes to alias names that didn't have them. Added aliases prompted by regression tests.

        * platform/text/TextCodecLatin1.cpp: (WebCore::TextCodecLatin1::registerEncodingNames):
        Don't register 8859-1, other browsers do not support this encoding name.

        * platform/text/TextEncoding.cpp: (WebCore::Latin1Encoding):
        "Latin-1" is not a real encoding name, it's not known to Firefox or IE.

        * platform/text/TextEncodingRegistry.cpp:
        (WebCore::TextEncodingNameHash::equal): Changed to no longer ignore non-alphanumeric characters.
        There is a good chance that we'll be missing support for some necessary alias names, but other
        browsers don't ignore any characters when matching names.
        (WebCore::TextEncodingNameHash::hash): Ditto.
        (WebCore::checkExistingName): Re-formatted a line.
        (WebCore::isUndesiredAlias): Added a filter to reject "8859_1" and any names containing commas.
        (WebCore::addToTextEncodingNameMap): Used it.
        (WebCore::atomicCanonicalTextEncodingName): Changed to no longer ignore non-alphanumeric characters.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@64817 268f45cc-cd09-0410-ab3c-d52691b4dbfc

9 years ago2010-08-05 Simon Hausmann <simon.hausmann@nokia.com>
commit-queue@webkit.org [Fri, 6 Aug 2010 05:08:34 +0000 (05:08 +0000)]
2010-08-05  Simon Hausmann  <simon.hausmann@nokia.com>

        Reviewed by Laszlo Gombos.

        [Qt] Temporary files should not be created in the current directory
        https://bugs.webkit.org/show_bug.cgi?id=43562

        Don't create temporary files in the current directory, use QDir::tempPath()
        instead, as suggested by the QTemporaryFile documentation.

        * platform/qt/FileSystemQt.cpp:
        (WebCore::openTemporaryFile):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@64816 268f45cc-cd09-0410-ab3c-d52691b4dbfc

9 years ago2010-08-05 W. James MacLean <wjmaclean@chromium.org>
commit-queue@webkit.org [Fri, 6 Aug 2010 04:50:29 +0000 (04:50 +0000)]
2010-08-05  W. James MacLean  <wjmaclean@chromium.org>

        Reviewed by Nikolas Zimmermann.

        SVG - numeric overflow for very large elements
        https://bugs.webkit.org/show_bug.cgi?id=25645

        Rebaselining results for gtk/win platforms.
        Skip pattern-excessive-malloc.svg on GTK for now.

        * platform/gtk/svg/custom/pattern-excessive-malloc-expected.txt: Removed.
        * platform/gtk/Skipped: Modified.
        * platform/win/svg/custom/massive-coordinates-expected.txt: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@64815 268f45cc-cd09-0410-ab3c-d52691b4dbfc

9 years ago2010-08-05 François Sausset <sausset@gmail.com>
commit-queue@webkit.org [Fri, 6 Aug 2010 04:11:02 +0000 (04:11 +0000)]
2010-08-05  François Sausset  <sausset@gmail.com>

        Reviewed by Kenneth Rohde Christiansen.

        Make STIX font the default one to render MathML
        https://bugs.webkit.org/show_bug.cgi?id=41961

        * css/mathml.css:
        (math):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@64814 268f45cc-cd09-0410-ab3c-d52691b4dbfc

9 years ago2010-08-05 Cosmin Truta <ctruta@chromium.org>
commit-queue@webkit.org [Fri, 6 Aug 2010 03:47:41 +0000 (03:47 +0000)]
2010-08-05  Cosmin Truta  <ctruta@chromium.org>

        Reviewed by Eric Seidel.

        Apply a stylistic fix to the patch 62640.
        https://bug-41175-attachments.webkit.org/attachment.cgi?id=62640
        https://bugs.webkit.org/show_bug.cgi?id=41175

        * WebCore/platform/graphics/skia/ImageBufferSkia.cpp:
        (getImageData):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@64813 268f45cc-cd09-0410-ab3c-d52691b4dbfc

9 years ago2010-08-05 Patrick Gansterer <paroga@paroga.com>
commit-queue@webkit.org [Fri, 6 Aug 2010 02:51:19 +0000 (02:51 +0000)]
2010-08-05  Patrick Gansterer  <paroga@paroga.com>

        Reviewed by Adam Roben.

        Make SearchPopupMenuWin more portable
        https://bugs.webkit.org/show_bug.cgi?id=43527

        Add #if PLATFORM(CF) around CoreFoundation code.

        * platform/win/SearchPopupMenuWin.cpp:
        (WebCore::SearchPopupMenuWin::enabled):
        (WebCore::SearchPopupMenuWin::saveRecentSearches):
        (WebCore::SearchPopupMenuWin::loadRecentSearches):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@64812 268f45cc-cd09-0410-ab3c-d52691b4dbfc

9 years ago2010-08-05 Jessie Berlin <jberlin@apple.com>
jberlin@webkit.org [Fri, 6 Aug 2010 02:17:56 +0000 (02:17 +0000)]
2010-08-05  Jessie Berlin  <jberlin@apple.com>

        Reviewed by Jon Honeycutt.

        Bug 43593 - WebView::backingStore should check if m_backingStoreBitmap is NULL.
        https://bugs.webkit.org/show_bug.cgi?id=43593

        * WebView.cpp:
        (WebView::backingStore):
        If m_backingStoreBitmap is NULL, return E_FAIL.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@64811 268f45cc-cd09-0410-ab3c-d52691b4dbfc

9 years ago2010-08-05 Sheriff Bot <webkit.review.bot@gmail.com>
commit-queue@webkit.org [Fri, 6 Aug 2010 01:54:40 +0000 (01:54 +0000)]
2010-08-05  Sheriff Bot  <webkit.review.bot@gmail.com>

        Unreviewed, rolling out r63653.
        http://trac.webkit.org/changeset/63653
        https://bugs.webkit.org/show_bug.cgi?id=43592

        regressed multiple background-images (Requested by smfr on
        #webkit).

        * manual-tests/css3-background-layer-count.html: Removed.
        * rendering/style/FillLayer.cpp:
        (WebCore::FillLayer::fillUnsetProperties):
        (WebCore::FillLayer::cullEmptyLayers):
        * rendering/style/RenderStyle.h:
        (WebCore::InheritedFlags::adjustBackgroundLayers):
        (WebCore::InheritedFlags::adjustMaskLayers):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@64810 268f45cc-cd09-0410-ab3c-d52691b4dbfc

9 years agoFix some leaks seen on the buildbot.
mrowe@apple.com [Fri, 6 Aug 2010 01:38:15 +0000 (01:38 +0000)]
Fix some leaks seen on the buildbot.

Reviewed by Jon Honeycutt.

* platform/graphics/cg/GraphicsContext3DCG.cpp:
(WebCore::GraphicsContext3D::paintToCanvas): Adopt the newly-created CoreGraphics objects rather than sharing ownership
and over-incrementing their reference count. Also cleaned up the bizarre wrapping used for function arguments while I was
touching this code.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@64809 268f45cc-cd09-0410-ab3c-d52691b4dbfc

9 years ago2010-08-05 Ryosuke Niwa <rniwa@webkit.org>
rniwa@webkit.org [Fri, 6 Aug 2010 01:23:00 +0000 (01:23 +0000)]
2010-08-05  Ryosuke Niwa  <rniwa@webkit.org>

        Reviewed by Tony Chang.

        dumpAsMarkup conversion: deleting/delete-4038408-fix.html, deleting/delete-br-011.html, and execCommand/format-block-from-range-selection.html
        https://bugs.webkit.org/show_bug.cgi?id=43580

        Converted deleting/delete-4038408-fix.html, deleting/delete-br-011.html, and execCommand/format-block-from-range-selection.html
        to a dumpAsMarkup test because all the tests were testing the correctness of the resultant DOM tree.
        In addition, removed editing delegates from execCommand/format-block-from-range-selection.html because it's not relevant to the test.

        * editing/deleting/delete-4038408-fix-expected.txt: Added.
        * editing/deleting/delete-4038408-fix.html: Converted.
        * editing/deleting/delete-br-011-expected.txt: Added.
        * editing/deleting/delete-br-011.html: Converted.
        * editing/execCommand/format-block-from-range-selection-expected.txt: Added.
        * editing/execCommand/format-block-from-range-selection.html: Converted.
        * platform/chromium-linux/editing/deleting/delete-4038408-fix-expected.checksum: Removed.
        * platform/chromium-linux/editing/deleting/delete-4038408-fix-expected.png: Removed.
        * platform/chromium-linux/editing/deleting/delete-br-011-expected.checksum: Removed.
        * platform/chromium-linux/editing/deleting/delete-br-011-expected.png: Removed.
        * platform/chromium-linux/editing/execCommand/format-block-from-range-selection-expected.checksum: Removed.
        * platform/chromium-linux/editing/execCommand/format-block-from-range-selection-expected.png: Removed.
        * platform/chromium-win/editing/deleting/delete-4038408-fix-expected.checksum: Removed.
        * platform/chromium-win/editing/deleting/delete-4038408-fix-expected.png: Removed.
        * platform/chromium-win/editing/deleting/delete-4038408-fix-expected.txt: Removed.
        * platform/chromium-win/editing/deleting/delete-br-011-expected.checksum: Removed.
        * platform/chromium-win/editing/deleting/delete-br-011-expected.png: Removed.
        * platform/chromium-win/editing/deleting/delete-br-011-expected.txt: Removed.
        * platform/chromium-win/editing/execCommand/format-block-from-range-selection-expected.checksum: Removed.
        * platform/chromium-win/editing/execCommand/format-block-from-range-selection-expected.png: Removed.
        * platform/chromium-win/editing/execCommand/format-block-from-range-selection-expected.txt: Removed.
        * platform/mac-leopard/editing/deleting/delete-4038408-fix-expected.checksum: Removed.
        * platform/mac-leopard/editing/deleting/delete-4038408-fix-expected.png: Removed.
        * platform/mac/editing/deleting/delete-4038408-fix-expected.checksum: Removed.
        * platform/mac/editing/deleting/delete-4038408-fix-expected.png: Removed.
        * platform/mac/editing/deleting/delete-4038408-fix-expected.txt: Removed.
        * platform/mac/editing/deleting/delete-br-011-expected.checksum: Removed.
        * platform/mac/editing/deleting/delete-br-011-expected.png: Removed.
        * platform/mac/editing/deleting/delete-br-011-expected.txt: Removed.
        * platform/mac/editing/execCommand/format-block-from-range-selection-expected.checksum: Removed.
        * platform/mac/editing/execCommand/format-block-from-range-selection-expected.png: Removed.
        * platform/mac/editing/execCommand/format-block-from-range-selection-expected.txt: Removed.
        * platform/qt/editing/deleting/delete-4038408-fix-expected.txt: Removed.
        * platform/qt/editing/deleting/delete-br-011-expected.txt: Removed.
        * platform/qt/editing/execCommand/format-block-from-range-selection-expected.txt: Removed.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@64808 268f45cc-cd09-0410-ab3c-d52691b4dbfc

9 years ago2010-08-05 James Robinson <jamesr@chromium.org>
jamesr@google.com [Fri, 6 Aug 2010 01:09:55 +0000 (01:09 +0000)]
2010-08-05  James Robinson  <jamesr@chromium.org>

        Rubber stamped by Eric Seidel.

        [SVG] SVGPathSeg.cpp needs an #if ENABLE(SVG) guard
        https://bugs.webkit.org/show_bug.cgi?id=43599

        Matches the rest of the .cpp files in this directory.

        * svg/SVGPathSeg.cpp:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@64807 268f45cc-cd09-0410-ab3c-d52691b4dbfc

9 years ago2010-08-05 Adam Barth <abarth@webkit.org>
abarth@webkit.org [Fri, 6 Aug 2010 00:56:40 +0000 (00:56 +0000)]
2010-08-05  Adam Barth  <abarth@webkit.org>

        Update Qt result showing that we strip nulls in this case.

        * platform/qt/fast/text/stripNullFromText-expected.txt:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@64806 268f45cc-cd09-0410-ab3c-d52691b4dbfc

9 years ago2010-08-05 Erik Arvidsson <arv@chromium.org>
arv@chromium.org [Fri, 6 Aug 2010 00:46:10 +0000 (00:46 +0000)]
2010-08-05  Erik Arvidsson  <arv@chromium.org>

        Reviewed by Kent Tamura.

        Calling setCustomValidity should trigger a layout
        https://bugs.webkit.org/show_bug.cgi?id=43582

        * fast/forms/setCustomValidity-expected.txt: Added.
        * fast/forms/setCustomValidity.html: Added.
2010-08-05  Erik Arvidsson  <arv@chromium.org>

        Reviewed by Kent Tamura.

        Calling setCustomValidity should trigger a layout
        https://bugs.webkit.org/show_bug.cgi?id=43582

        Test: fast/forms/setCustomValidity.html

        * html/ValidityState.cpp:
        (WebCore::ValidityState::setCustomErrorMessage): Call setNeedsValidityCheck to tell the system that the validity might have changed.
        * html/ValidityState.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@64805 268f45cc-cd09-0410-ab3c-d52691b4dbfc

9 years ago2010-08-05 Chao-ying Fu <fu@mips.com>
commit-queue@webkit.org [Fri, 6 Aug 2010 00:41:26 +0000 (00:41 +0000)]
2010-08-05  Chao-ying Fu  <fu@mips.com>

        Reviewed by Darin Adler.

        Define WTF_USE_ARENA_ALLOC_ALIGNMENT_INTEGER for MIPS
        https://bugs.webkit.org/show_bug.cgi?id=43514

        MIPS needs to define WTF_USE_ARENA_ALLOC_ALIGNMENT_INTEGER, so that
        RenderArena::allocate() can return 8-byte aligned memory to avoid
        exceptions on sdc1/ldc1.

        * wtf/Platform.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@64804 268f45cc-cd09-0410-ab3c-d52691b4dbfc

9 years agoAdd ability to get a JSValueRef for a node handle and a world
weinig@apple.com [Fri, 6 Aug 2010 00:31:51 +0000 (00:31 +0000)]
Add ability to get a JSValueRef for a node handle and a world
https://bugs.webkit.org/show_bug.cgi?id=43591

Reviewed by Anders Carlsson.

WebCore:

* WebCore.exp.in: Add exports.

WebKit2:

- Add API to get a JSValueRef for a world, node and frame (the
  frame is currently necessary to pick the right globalObject for
  the node wrapper).
- Add API to a JSGlobalContextRef for a world and a frame.

* WebProcess/InjectedBundle/API/c/WKBundleFrame.cpp:
(WKBundleFrameGetJavaScriptContextForWorld):
(WKBundleFrameGetJavaScriptWrapperForNodeForWorld):
* WebProcess/InjectedBundle/API/c/WKBundleFrame.h:
* WebProcess/InjectedBundle/API/c/WKBundleNodeHandle.h:
* WebProcess/InjectedBundle/DOM/InjectedBundleNodeHandle.cpp:
(WebKit::InjectedBundleNodeHandle::coreNode):
* WebProcess/InjectedBundle/DOM/InjectedBundleNodeHandle.h:
* WebProcess/InjectedBundle/InjectedBundleScriptWorld.cpp:
(WebKit::InjectedBundleScriptWorld::coreWorld):
* WebProcess/InjectedBundle/InjectedBundleScriptWorld.h:
* WebProcess/WebPage/WebFrame.cpp:
(WebKit::WebFrame::jsContext):
(WebKit::WebFrame::jsContextForWorld):
(WebKit::WebFrame::jsWrapperForWorld):
* WebProcess/WebPage/WebFrame.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@64803 268f45cc-cd09-0410-ab3c-d52691b4dbfc

9 years ago2010-08-05 Joseph Pecoraro <joepeck@webkit.org>
joepeck@webkit.org [Fri, 6 Aug 2010 00:24:48 +0000 (00:24 +0000)]
2010-08-05  Joseph Pecoraro  <joepeck@webkit.org>

        Reviewed by David Kilzer.

        Remove Invalid Asserts for Application Cache Quotas
        https://bugs.webkit.org/show_bug.cgi?id=43585

        Removed Invalid ASSERTs that would always happen for quotas
        that were not noQuota().

        * WebView/WebPreferences.mm:
        (-[WebPreferences applicationCacheTotalQuota]):
        (-[WebPreferences applicationCacheDefaultOriginQuota]):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@64802 268f45cc-cd09-0410-ab3c-d52691b4dbfc

9 years agoBug 43594 - Add string forwards to Forward.h
barraclough@apple.com [Fri, 6 Aug 2010 00:20:28 +0000 (00:20 +0000)]
Bug 43594 - Add string forwards to Forward.h
This allows us to remove forward declarations for these classes from
WebCore/WebKit (a step in moving these class from WebCore:: to WTF::).

Rubber stamped by Sam Weinig

JavaScriptCore:

* JavaScriptCore.xcodeproj/project.pbxproj:
* wtf/Forward.h:

WebCore:

* WebCore.xcodeproj/project.pbxproj:
* accessibility/AXObjectCache.h:
* accessibility/AccessibilityARIAGrid.h:
* accessibility/AccessibilityListBoxOption.h:
* accessibility/AccessibilityObject.h:
* accessibility/AccessibilityRenderObject.h:
* accessibility/AccessibilityTable.h:
* bindings/cpp/WebDOMCString.h:
* bindings/cpp/WebDOMString.h:
* bindings/gobject/ConvertToUTF8String.h:
* bindings/js/DOMWrapperWorld.h:
* bindings/js/JSDOMBinding.h:
* bindings/js/JSDOMWindowBase.h:
* bindings/js/JSMessagePortCustom.h:
* bindings/js/JavaScriptCallFrame.h:
* bindings/js/ScriptController.h:
* bindings/js/ScriptProfile.h:
* bindings/js/ScriptSourceProvider.h:
* bindings/js/ScriptString.h:
* bindings/js/WorkerScriptController.h:
* bindings/objc/DOMImplementationFront.h:
* bindings/v8/ScheduledAction.h:
* bindings/v8/ScriptController.h:
* bindings/v8/V8DOMWindowShell.h:
* bindings/v8/V8Proxy.h:
* bindings/v8/V8Utilities.h:
* bindings/v8/custom/V8CustomXPathNSResolver.h:
* bridge/c/c_utility.h:
* css/CSSFontSelector.h:
* css/CSSHelper.h:
* css/CSSOMUtils.h:
* css/CSSPrimitiveValue.h:
* css/MediaList.h:
* css/StyleBase.h:
* css/StyleSheetList.h:
* css/WebKitCSSKeyframesRule.h:
* dom/CheckedRadioButtons.h:
* dom/DOMImplementation.h:
* dom/DocumentMarker.h:
* dom/DynamicNodeList.h:
* dom/EventTarget.h:
* dom/MessagePort.h:
* dom/MessagePortChannel.h:
* dom/NameNodeList.h:
* dom/Node.h:
* dom/NodeList.h:
* dom/OptionGroupElement.h:
* dom/ScriptExecutionContext.h:
* dom/SelectElement.h:
* dom/ViewportArguments.h:
* dom/make_names.pl:
* editing/HTMLInterchange.h:
* editing/htmlediting.h:
* editing/markup.h:
* html/CollectionCache.h:
* html/DOMFormData.h:
* html/DataGridColumnList.h:
* html/DateComponents.h:
* html/FileStream.h:
* html/FileStreamProxy.h:
* html/FormDataList.h:
(WebCore::FormDataList::appendData):
* html/HTMLCollection.h:
* html/HTMLElementStack.h:
* html/HTMLFormattingElementList.h:
* html/HTMLParserQuirks.h:
* html/HTMLQuoteElement.h:
* html/HTMLScriptRunnerHost.h:
* html/StepRange.h:
* html/canvas/CanvasGradient.h:
* html/canvas/CanvasNumberArray.h:
* html/canvas/CanvasPattern.h:
* inspector/InjectedScript.h:
* inspector/InspectorCSSStore.h:
* inspector/InspectorClient.h:
* inspector/InspectorFrontendClient.h:
* inspector/InspectorValues.h:
* inspector/ScriptDebugListener.h:
* loader/CachedResourceClient.h:
* loader/CrossOriginAccessControl.h:
* loader/DocumentThreadableLoader.h:
* loader/FrameLoaderClient.h:
* loader/RedirectScheduler.h:
* loader/SubframeLoader.h:
* loader/appcache/DOMApplicationCache.h:
* loader/archive/ArchiveFactory.h:
* loader/icon/IconDatabaseClient.h:
* notifications/NotificationPresenter.h:
* page/Chrome.h:
* page/ChromeClient.h:
* page/Console.h:
* page/ContextMenuClient.h:
* page/DOMSelection.h:
* page/EditorClient.h:
* page/EventHandler.h:
* page/FrameView.h:
* page/GeolocationPositionCache.h:
* page/History.h:
* page/Location.h:
* page/Navigator.h:
* page/NavigatorBase.h:
* page/PluginHalterClient.h:
* page/PrintContext.h:
* page/SpeechInput.h:
* page/SpeechInputListener.h:
* page/animation/AnimationController.h:
* platform/CookieJar.h:
* platform/CrossThreadCopier.h:
* platform/DragImage.h:
* platform/FileSystem.h:
* platform/Language.h:
* platform/Length.h:
* platform/LinkHash.h:
* platform/LocalizationStrategy.h:
* platform/LocalizedStrings.h:
* platform/Logging.h:
* platform/Pasteboard.h:
* platform/PopupMenuClient.h:
* platform/SearchPopupMenu.h:
* platform/Widget.h:
* platform/cf/BinaryPropertyList.h:
* platform/chromium/ChromiumBridge.h:
* platform/chromium/ClipboardUtilitiesChromium.h:
* platform/cocoa/KeyEventCocoa.h:
* platform/graphics/Color.h:
* platform/graphics/FontCache.h:
* platform/graphics/FontData.h:
* platform/graphics/FontSelector.h:
* platform/graphics/GraphicsTypes.h:
* platform/graphics/Icon.h:
* platform/graphics/ImageBuffer.h:
* platform/graphics/ImageSource.h:
* platform/graphics/MediaPlayer.h:
* platform/graphics/MediaPlayerPrivate.h:
* platform/graphics/Path.h:
* platform/graphics/StringTruncator.h:
* platform/graphics/cairo/FontCustomPlatformData.h:
* platform/graphics/cairo/FontPlatformData.h:
* platform/graphics/cg/FontPlatformData.h:
* platform/graphics/cg/ImageSourceCG.h:
* platform/graphics/chromium/FontCustomPlatformData.h:
* platform/graphics/chromium/FontPlatformDataChromiumWin.h:
* platform/graphics/chromium/FontPlatformDataLinux.h:
* platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.h:
* platform/graphics/haiku/FontCustomPlatformData.h:
* platform/graphics/mac/FontCustomPlatformData.h:
* platform/graphics/mac/FontPlatformData.h:
* platform/graphics/qt/FontCustomPlatformData.h:
* platform/graphics/qt/FontPlatformData.h:
* platform/graphics/win/FontCustomPlatformData.h:
* platform/graphics/win/FontCustomPlatformDataCairo.h:
* platform/graphics/win/MediaPlayerPrivateQuickTimeVisualContext.h:
* platform/graphics/win/MediaPlayerPrivateQuickTimeWin.h:
* platform/graphics/wince/FontPlatformData.h:
* platform/graphics/wince/MediaPlayerPrivateWince.h:
* platform/graphics/wince/MediaPlayerProxy.h:
* platform/graphics/wx/FontCustomPlatformData.h:
* platform/graphics/wx/FontPlatformData.h:
* platform/mac/PasteboardHelper.h:
* platform/network/DNS.h:
* platform/network/FormData.h:
* platform/network/FormDataBuilder.h:
* platform/network/HTTPParsers.h:
* platform/text/Hyphenation.h:
* platform/text/LineEnding.h:
* platform/text/TextCodec.h:
* platform/text/TextEncoding.h:
* platform/text/TextStream.h:
* platform/win/BString.h:
* platform/win/ClipboardUtilitiesWin.h:
* platform/win/WCDataObject.h:
* platform/win/WebCoreTextRenderer.h:
* plugins/DOMMimeType.h:
* plugins/DOMMimeTypeArray.h:
* plugins/DOMPlugin.h:
* plugins/DOMPluginArray.h:
* rendering/CounterNode.h:
* rendering/HitTestResult.h:
* rendering/RenderObjectChildList.h:
* rendering/RenderText.h:
* rendering/RenderTreeAsText.h:
* rendering/TextControlInnerElements.h:
* rendering/style/ContentData.h:
* rendering/style/RenderStyle.h:
* storage/DatabaseAuthorizer.h:
* storage/DatabaseTrackerClient.h:
* storage/SQLTransaction.h:
* storage/SQLTransactionSync.h:
* storage/Storage.h:
* storage/chromium/DatabaseObserver.h:
* svg/SVGAnimatedTemplate.h:
* svg/SVGDocumentExtensions.h:
* svg/SVGGlyphElement.h:
* svg/SVGHKernElement.h:
* svg/SVGNumberList.h:
* svg/SVGPointList.h:
* svg/SVGPreserveAspectRatio.h:
* svg/SVGStylable.h:
* svg/SVGTests.h:
* svg/SVGTransformList.h:
* svg/SVGTransformable.h:
* svg/SVGVKernElement.h:
* websockets/ThreadableWebSocketChannel.h:
* websockets/ThreadableWebSocketChannelClientWrapper.h:
* websockets/WebSocket.h:
* websockets/WebSocketChannel.h:
* websockets/WebSocketHandshakeResponse.h:
* wml/WMLErrorHandling.h:
* wml/WMLPageState.h:
* wml/WMLVariables.h:
* workers/DefaultSharedWorkerRepository.h:
* workers/SharedWorkerRepository.h:
* workers/Worker.h:
* workers/WorkerContextProxy.h:
* workers/WorkerLoaderProxy.h:
* workers/WorkerLocation.h:
* workers/WorkerMessagingProxy.h:
* workers/WorkerReportingProxy.h:
* workers/WorkerThread.h:
* xml/DOMParser.h:
* xml/XMLHttpRequestUpload.h:
* xml/XPathEvaluator.h:
* xml/XPathExpression.h:
* xml/XPathNSResolver.h:
* xml/XPathResult.h:
* xml/XPathUtil.h:

WebKit:

* WebKit.xcodeproj/project.pbxproj:

WebKit/chromium:

* public/WebCString.h:
* public/WebString.h:
* src/DOMUtilitiesPrivate.h:
* src/DebuggerAgentImpl.h:
* src/DebuggerAgentManager.h:
* src/WebDevToolsAgentImpl.h:
* src/WebDevToolsFrontendImpl.h:
* src/WebPageSerializerImpl.h:

WebKit/efl:

* WebCoreSupport/InspectorClientEfl.h:

WebKit/gtk:

* WebCoreSupport/InspectorClientGtk.h:

WebKit/haiku:

* WebCoreSupport/FrameLoaderClientHaiku.h:
* WebCoreSupport/InspectorClientHaiku.h:

WebKit/mac:

* Plugins/Hosted/NetscapePluginInstanceProxy.h:
* Plugins/WebBaseNetscapePluginView.h:
* WebCoreSupport/WebFrameLoaderClient.h:
* WebCoreSupport/WebIconDatabaseClient.h:
* WebCoreSupport/WebPluginHalterClient.h:
* WebView/WebViewInternal.h:

WebKit/qt:

* WebCoreSupport/FrameLoaderClientQt.h:
* WebCoreSupport/InspectorClientQt.h:

WebKit/win:

* COMVariantSetter.h:
* MarshallingHelpers.h:
* WebCoreSupport/WebContextMenuClient.h:
* WebCoreSupport/WebPluginHalterClient.h:
* WebHistory.h:

WebKit/wx:

* WebKitSupport/FrameLoaderClientWx.h:
* WebKitSupport/InspectorClientWx.h:

WebKit2:

* UIProcess/PageClient.h:
* UIProcess/VisitedLinkProvider.h:
* UIProcess/WebContextInjectedBundleClient.h:
* UIProcess/WebFrameProxy.h:
* UIProcess/WebHistoryClient.h:
* UIProcess/WebLoaderClient.h:
* UIProcess/WebPolicyClient.h:
* UIProcess/WebProcessProxy.h:
* UIProcess/WebUIClient.h:
* UIProcess/win/WebView.h:
* WebProcess/InjectedBundle/InjectedBundlePageEditorClient.h:
* WebProcess/InjectedBundle/InjectedBundlePageLoaderClient.h:
* WebProcess/InjectedBundle/InjectedBundlePageUIClient.h:
* WebProcess/Plugins/NPRuntimeObjectMap.h:
* WebProcess/Plugins/Netscape/NetscapePluginStream.h:
* WebProcess/Plugins/PluginController.h:
* WebProcess/WebPage/WebFrame.h:
* WebProcess/WebPage/WebPage.h:
* WebProcess/WebProcess.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@64801 268f45cc-cd09-0410-ab3c-d52691b4dbfc

9 years agoFixed leak seen on buildbot.
ggaren@apple.com [Fri, 6 Aug 2010 00:13:36 +0000 (00:13 +0000)]
Fixed leak seen on buildbot.

Reviewed by Mark Rowe.

* runtime/GCActivityCallbackCF.cpp:
(JSC::DefaultGCActivityCallback::DefaultGCActivityCallback):
(JSC::DefaultGCActivityCallback::~DefaultGCActivityCallback):
(JSC::DefaultGCActivityCallback::operator()): Make out timer a RetainPtr,
since anything less would be uncivilized.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@64800 268f45cc-cd09-0410-ab3c-d52691b4dbfc

9 years ago2010-08-05 Adam Barth <abarth@webkit.org>
abarth@webkit.org [Fri, 6 Aug 2010 00:12:15 +0000 (00:12 +0000)]
2010-08-05  Adam Barth  <abarth@webkit.org>

        Reviewed by Eric Seidel.

        U+0000 is turned to U+FFFD (replacement character)
        https://bugs.webkit.org/show_bug.cgi?id=42112

        Update test results to show null stripping.  These changes are mostly
        going back to the old results we had before we added the FFFD
        replacement.

        * fast/dom/stripNullFromTextNodes-expected.txt:
        * fast/tokenizer/null-in-text-expected.txt: Added.
        * fast/tokenizer/null-in-text.html: Added.
        * fast/tokenizer/null-xss-expected.txt: Added.
        * fast/tokenizer/null-xss.html: Added.
            - The main risk with stripping null characters is that they'll be
              used in XSS attacks.  This test shows that we don't strip null
              characters from tag names.
        * platform/mac/fast/text/stripNullFromText-expected.txt:
        * svg/dom/fuzz-path-parser-expected.txt:
        * svg/dom/rgb-color-parser-expected.txt:
2010-08-05  Adam Barth  <abarth@webkit.org>

        Reviewed by Eric Seidel.

        U+0000 is turned to U+FFFD (replacement character)
        https://bugs.webkit.org/show_bug.cgi?id=42112

        This patch introduces an intentional parsing difference from the HTML5
        parsing specificiation.  The spec requires us to convert NULL
        characters to U+FFFD, but doing so causes compatibility issues with a
        number of sites, including US Bank.

        In this patch, we strip the null characters instead in certain cases.
        Firefox has made a corresponding change.  After gathering compatability
        data, we hope to convince the HTML WG to adopt this change.

        Tests: fast/tokenizer/null-in-text.html
               fast/tokenizer/null-xss.html

        * html/HTMLTokenizer.cpp:
        (WebCore::HTMLTokenizer::HTMLTokenizer):
        (WebCore::HTMLTokenizer::reset):
        * html/HTMLTokenizer.h:
        (WebCore::HTMLTokenizer::setSkipLeadingNewLineForListing):
        (WebCore::HTMLTokenizer::forceNullCharacterReplacement):
        (WebCore::HTMLTokenizer::setForceNullCharacterReplacement):
        (WebCore::HTMLTokenizer::shouldSkipNullCharacters):
        (WebCore::HTMLTokenizer::InputStreamPreprocessor::InputStreamPreprocessor):
        (WebCore::HTMLTokenizer::InputStreamPreprocessor::peek):
        * html/HTMLTreeBuilder.cpp:
        (WebCore::HTMLTreeBuilder::passTokenToLegacyParser):
        (WebCore::HTMLTreeBuilder::constructTreeFromToken):
        (WebCore::HTMLTreeBuilder::processStartTagForInBody):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@64799 268f45cc-cd09-0410-ab3c-d52691b4dbfc

9 years agoJavaScriptCore: Rename iOS-related OS and PLATFORM macros.
aestes@apple.com [Fri, 6 Aug 2010 00:08:59 +0000 (00:08 +0000)]
JavaScriptCore: Rename iOS-related OS and PLATFORM macros.
https://bugs.webkit.org/show_bug.cgi?id=43493

Reviewed by David Kilzer.

Rename WTF_OS_IPHONE_OS to WTF_OS_IOS, WTF_PLATFORM_IPHONE to
WTF_PLATFORM_IOS, and WTF_PLATFORM_IPHONE_SIMULATOR to
WTF_PLATFORM_IOS_SIMULATOR.

* jit/ExecutableAllocator.h:
* jit/JITStubs.cpp:
* profiler/ProfilerServer.mm:
(-[ProfilerServer init]):
* wtf/FastMalloc.cpp:
(WTF::TCMallocStats::):
* wtf/Platform.h:
* wtf/unicode/icu/CollatorICU.cpp:
(WTF::Collator::userDefault):

WebCore: Rename iOS-related OS and PLATFORM macros.
https://bugs.webkit.org/show_bug.cgi?id=43493

Reviewed by David Kilzer.

Rename WTF_OS_IPHONE_OS to WTF_OS_IOS, WTF_PLATFORM_IPHONE to
WTF_PLATFORM_IOS, and WTF_PLATFORM_IPHONE_SIMULATOR to
WTF_PLATFORM_IOS_SIMULATOR.

* platform/cocoa/KeyEventCocoa.mm:
* platform/iphone/KeyEventIPhone.mm:
* platform/network/Credential.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@64798 268f45cc-cd09-0410-ab3c-d52691b4dbfc

9 years agoUse the visited link provider for visited links
andersca@apple.com [Fri, 6 Aug 2010 00:00:45 +0000 (00:00 +0000)]
Use the visited link provider for visited links
https://bugs.webkit.org/show_bug.cgi?id=43583

Reviewed by Sam Weinig.

WebCore:

Export Page::visitedStateChanged and Page::allvisitedStateChanged.

* WebCore.exp.in:

WebKit2:

* Shared/CoreIPCSupport/WebProcessMessageKinds.h:
(WebProcessMessage::):
Remove AddVisitedLink.

* Shared/CoreIPCSupport/WebProcessProxyMessageKinds.h:
(WebProcessProxyMessage::):
Remove PopulateVisitedLinks and add AddVisitedLink.

* UIProcess/WebContext.cpp:
(WebKit::WebContext::sharedProcessContext):
Initialize the main run loop before creating the context.

(WebKit::WebContext::sharedThreadContext):
Ditto.

(WebKit::WebContext::create):
Ditto.

(WebKit::WebContext::WebContext):
Initialize the visited link provider.

(WebKit::WebContext::processDidFinishLaunching):
Ask the visited link provider to populate visited links.

(WebKit::WebContext::addVisitedLink):
Ask the visited link provider to add the visited link.

* UIProcess/WebProcessProxy.cpp:
(WebKit::WebProcessProxy::addVisitedLink):
Call WebContext::addVisitedLink.

(WebKit::WebProcessProxy::didReceiveMessage):
Handle AddVisitedLink.

(WebKit::WebProcessProxy::didFinishLaunching):
Call WebContext::processdidFinishLaunching.

* UIProcess/WebProcessProxy.h:
* WebProcess/WebCoreSupport/WebChromeClient.cpp:
(WebKit::WebChromeClient::populateVisitedLinks):
Don't send the WebProcessProxyMessage::PopulateVisitedLinks message.

* WebProcess/WebCoreSupport/WebPlatformStrategies.cpp:
(WebKit::WebPlatformStrategies::isLinkVisited):
Call WebProcess::isLinkVisited.

(WebKit::WebPlatformStrategies::addVisitedLink):
Call WebProcess::addVisitedLink.

* WebProcess/WebProcess.cpp:
(WebKit::WebProcess::setVisitedLinkTable):
Create a shared memory object and tell the visited link table about it.

(WebKit::WebProcess::visitedLinkStateChanged):
Go through the link hashes and call Page::visitedStateChanged.

(WebKit::WebProcess::allVisitedLinkStateChanged):
Call Page::allVisitedStateChanged.

(WebKit::WebProcess::isLinkVisited):
Call VisitedLinkTable::isLinkVisited.

(WebKit::WebProcess::addVisitedLink):
Inform the UI process about the added link.

(WebKit::WebProcess::didReceiveMessage):
Handle new messages.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@64797 268f45cc-cd09-0410-ab3c-d52691b4dbfc

9 years ago2010-08-05 Adam Barth <abarth@webkit.org>
abarth@webkit.org [Thu, 5 Aug 2010 23:52:00 +0000 (23:52 +0000)]
2010-08-05  Adam Barth  <abarth@webkit.org>

        Reviewed by Darin Adler.

        js-test-pre.js's escapeHTML should escape null characters so we can see them
        https://bugs.webkit.org/show_bug.cgi?id=43579

        * fast/canvas/canvas-getContext-invalid-expected.txt:
        * fast/js/null-char-in-string-expected.txt:
        * fast/js/resources/js-test-pre.js:
        (escapeHTML):
        * fast/js/switch-behaviour-expected.txt:
        * storage/domstorage/complex-values-expected.txt:
        * websocket/tests/bad-sub-protocol-control-chars-expected.txt:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@64796 268f45cc-cd09-0410-ab3c-d52691b4dbfc

9 years agoWindows build fix.
sfalken@apple.com [Thu, 5 Aug 2010 23:22:25 +0000 (23:22 +0000)]
Windows build fix.
Add missing include path.

* win/WebKit2Common.vsprops:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@64795 268f45cc-cd09-0410-ab3c-d52691b4dbfc

9 years ago2010-08-05 Brett Wilson <brettw@chromium.org>
brettw@chromium.org [Thu, 5 Aug 2010 23:11:32 +0000 (23:11 +0000)]
2010-08-05  Brett Wilson  <brettw@chromium.org>

        Reviewed by Nate Chapin.

        Make the webkit unit tests depend on test_support_base
        https://bugs.webkit.org/show_bug.cgi?id=43584

        * WebKit.gyp:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@64794 268f45cc-cd09-0410-ab3c-d52691b4dbfc

9 years ago2010-08-05 Eric Seidel <eric@webkit.org>
eric@webkit.org [Thu, 5 Aug 2010 22:55:24 +0000 (22:55 +0000)]
2010-08-05  Eric Seidel  <eric@webkit.org>

        Reviewed by Nikolas Zimmermann.

        Touching SVGNames should only rebuild hundreds of files, not thousands
        https://bugs.webkit.org/show_bug.cgi?id=43308

        Remove SVGNames.h include from several core SVG header files
        which do not need to include it.

        One of them, SVGPathSeg.h, required creation of an SVGPathSeg.cpp.
        A bunch of SVGPathSeg* could remove PlatformString.h includes if
        we moved their toString() methods into the .cpp files.

        I re-indented on header to stop check-webkit-style from complaining.
        I removed a couple mode lines I saw, since my understanding from
        previous webkit-dev threads is that we plan to remove those all.

        No functional change, thus no tests.

        * Android.mk:
        * CMakeLists.txt:
        * GNUmakefile.am:
        * WebCore.gypi:
        * WebCore.pro:
        * WebCore.xcodeproj/project.pbxproj:
        * svg/SVGAllInOne.cpp:
        * svg/SVGAngle.h:
        * svg/SVGPathSeg.cpp: Added.
        (WebCore::SVGPathSeg::~SVGPathSeg):
        (WebCore::SVGPathSeg::pathSegType):
        (WebCore::SVGPathSeg::pathSegTypeAsLetter):
        (WebCore::SVGPathSeg::toString):
        (WebCore::SVGPathSeg::associatedAttributeName):
        (WebCore::SVGPathSegSingleCoord::toString):
        * svg/SVGPathSeg.h:
        (WebCore::SVGPathSegSingleCoord::SVGPathSegSingleCoord):
        * svg/SVGPathSegArc.cpp:
        (WebCore::SVGPathSegArc::toString):
        * svg/SVGPathSegArc.h:
        (WebCore::SVGPathSegArc::SVGPathSegArc):
        * svg/SVGPathSegClosePath.h:
        (WebCore::SVGPathSegClosePath::create):
        (WebCore::SVGPathSegClosePath::pathSegType):
        (WebCore::SVGPathSegClosePath::pathSegTypeAsLetter):
        (WebCore::SVGPathSegClosePath::toString):
        * svg/SVGPathSegCurvetoCubic.h:
        * svg/SVGPathSegCurvetoCubicSmooth.h:
        * svg/SVGPathSegCurvetoQuadratic.h:
        * svg/SVGPathSegCurvetoQuadraticSmooth.h:
        * svg/SVGPathSegLineto.h:
        * svg/SVGPathSegLinetoHorizontal.h:
        * svg/SVGPathSegLinetoVertical.h:
        * svg/SVGPathSegMoveto.h:
        * svg/SVGTransform.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@64793 268f45cc-cd09-0410-ab3c-d52691b4dbfc

9 years agoExport WKError.h
beidson@apple.com [Thu, 5 Aug 2010 22:38:01 +0000 (22:38 +0000)]
Export WKError.h

Rubberstamped by Sam Weinig.

* WebKit2.xcodeproj/project.pbxproj:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@64792 268f45cc-cd09-0410-ab3c-d52691b4dbfc

9 years agoWindows build fix.
sfalken@apple.com [Thu, 5 Aug 2010 22:29:31 +0000 (22:29 +0000)]
Windows build fix.
Correct vcproj nesting.

* win/WebKit2.vcproj:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@64791 268f45cc-cd09-0410-ab3c-d52691b4dbfc

9 years ago2010-08-05 Nathan Lawrence <nlawrence@apple.com>
commit-queue@webkit.org [Thu, 5 Aug 2010 22:22:49 +0000 (22:22 +0000)]
2010-08-05  Nathan Lawrence  <nlawrence@apple.com>

        Reviewed by Darin Adler.

        https://bugs.webkit.org/show_bug.cgi?id=43464

        Currently, the global object is being embedded in the JavaScriptCore
        bytecode, however since the global object is the same for all opcodes
        in a code block, we can have the global object just be a member of the
        associated code block.

        Additionally, I added an assert inside of emitOpcode that verifies
        that the last generated opcode was of the correct length.

        * bytecode/CodeBlock.cpp:
        (JSC::CodeBlock::CodeBlock):
        (JSC::CodeBlock::derefStructures):
        (JSC::CodeBlock::markAggregate):
        * bytecode/CodeBlock.h:
        (JSC::CodeBlock::globalObject):
        (JSC::GlobalCodeBlock::GlobalCodeBlock):
        (JSC::ProgramCodeBlock::ProgramCodeBlock):
        (JSC::EvalCodeBlock::EvalCodeBlock):
        (JSC::FunctionCodeBlock::FunctionCodeBlock):
        * bytecode/Opcode.h:
        (JSC::opcodeLength):
        * bytecompiler/BytecodeGenerator.cpp:
        (JSC::BytecodeGenerator::BytecodeGenerator):
        (JSC::BytecodeGenerator::emitOpcode):
            Added an assert to check that the last generated opcode is the
            correct length.
        (JSC::BytecodeGenerator::rewindBinaryOp):
            Changed the last opcode to op_end since the length will no longer
            be correct.
        (JSC::BytecodeGenerator::rewindUnaryOp):
            Changed the last opcode to op_end since the length will no longer
            be correct.
        (JSC::BytecodeGenerator::emitResolve):
        (JSC::BytecodeGenerator::emitGetScopedVar):
        (JSC::BytecodeGenerator::emitPutScopedVar):
        (JSC::BytecodeGenerator::emitResolveWithBase):
        * bytecompiler/BytecodeGenerator.h:
        * interpreter/Interpreter.cpp:
        (JSC::Interpreter::resolveGlobal):
        (JSC::Interpreter::resolveGlobalDynamic):
        (JSC::Interpreter::privateExecute):
        * jit/JITOpcodes.cpp:
        (JSC::JIT::emit_op_get_global_var):
        (JSC::JIT::emit_op_put_global_var):
        (JSC::JIT::emit_op_resolve_global):
        (JSC::JIT::emitSlow_op_resolve_global):
        (JSC::JIT::emit_op_resolve_global_dynamic):
        (JSC::JIT::emitSlow_op_resolve_global_dynamic):
        * jit/JITOpcodes32_64.cpp:
        (JSC::JIT::emit_op_get_global_var):
        (JSC::JIT::emit_op_put_global_var):
        (JSC::JIT::emit_op_resolve_global):
        (JSC::JIT::emitSlow_op_resolve_global):
        * jit/JITStubs.cpp:
        (JSC::cti_op_resolve_global):
        * runtime/Executable.cpp:
        (JSC::FunctionExecutable::compileForCallInternal):
        (JSC::FunctionExecutable::compileForConstructInternal):
        (JSC::FunctionExecutable::reparseExceptionInfo):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@64790 268f45cc-cd09-0410-ab3c-d52691b4dbfc

9 years ago2010-08-05 Dirk Schulze <krit@webkit.org>
krit@webkit.org [Thu, 5 Aug 2010 21:49:06 +0000 (21:49 +0000)]
2010-08-05  Dirk Schulze  <krit@webkit.org>

        Unreviewed sort of XCode project file.

        * WebCore.xcodeproj/project.pbxproj:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@64789 268f45cc-cd09-0410-ab3c-d52691b4dbfc

9 years agoAdd script world API for injected bundles
weinig@apple.com [Thu, 5 Aug 2010 21:32:14 +0000 (21:32 +0000)]
Add script world API for injected bundles
https://bugs.webkit.org/show_bug.cgi?id=43577

Reviewed by Gavin Barraclough.

* Shared/APIObject.h:
(WebKit::APIObject::):
* WebKit2.xcodeproj/project.pbxproj:
* WebProcess/InjectedBundle/API/c/WKBundleAPICast.h:
(WebKit::):
* WebProcess/InjectedBundle/API/c/WKBundleBase.h:
* WebProcess/InjectedBundle/API/c/WKBundleScriptWorld.cpp: Added.
(WKBundleScriptWorldGetTypeID):
(WKBundleScriptWorldCreateWorld):
(WKBundleScriptWorldNormalWorld):
(WKBundleScriptWorldRetain):
(WKBundleScriptWorldRelease):
* WebProcess/InjectedBundle/API/c/WKBundleScriptWorld.h: Added.
* WebProcess/InjectedBundle/DOM/InjectedBundleNodeHandle.cpp:
* WebProcess/InjectedBundle/InjectedBundleScriptWorld.cpp: Added.
(WebKit::allWorlds):
(WebKit::InjectedBundleScriptWorld::create):
(WebKit::InjectedBundleScriptWorld::getOrCreate):
(WebKit::InjectedBundleScriptWorld::normalWorld):
(WebKit::InjectedBundleScriptWorld::InjectedBundleScriptWorld):
(WebKit::InjectedBundleScriptWorld::~InjectedBundleScriptWorld):
* WebProcess/InjectedBundle/InjectedBundleScriptWorld.h: Added.
(WebKit::InjectedBundleScriptWorld::type):
* win/WebKit2.vcproj:
* win/WebKit2Generated.make:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@64788 268f45cc-cd09-0410-ab3c-d52691b4dbfc

9 years ago2010-05-23 Eric Seidel <eric@webkit.org>
eric@webkit.org [Thu, 5 Aug 2010 21:28:51 +0000 (21:28 +0000)]
2010-05-23  Eric Seidel  <eric@webkit.org>

        Reviewed by Adam Barth.

        QueueStatusServer needs better queue-status pages
        https://bugs.webkit.org/show_bug.cgi?id=39562

        The primary goal of this patch is to display queue
        positions somewhere on the site so that it's easier
        for commit-queue users to know when their pach will
        be landed.  I also tried to improve the root page
        to be more useful than the previous wall of status text.

        * QueueStatusServer/handlers/recentstatus.py:
        * QueueStatusServer/main.py:
        * QueueStatusServer/model/queues.py:
        * QueueStatusServer/templates/recentstatus.html:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@64787 268f45cc-cd09-0410-ab3c-d52691b4dbfc

9 years ago2010-08-05 Victor Wang <victorw@chromium.org>
victorw@chromium.org [Thu, 5 Aug 2010 21:24:00 +0000 (21:24 +0000)]
2010-08-05  Victor Wang  <victorw@chromium.org>

        Reviewed by Ojan Vafai.

        Add option to generate/upload incremental json results to test result server.
        Also refactor the json results generator unittest code to test
        incremental and aggregated json results.

        https://bugs.webkit.org/show_bug.cgi?id=43519

        * Scripts/webkitpy/layout_tests/layout_package/json_layout_results_generator.py:
        * Scripts/webkitpy/layout_tests/layout_package/json_results_generator.py:
        * Scripts/webkitpy/layout_tests/layout_package/json_results_generator_unittest.py:
        * Scripts/webkitpy/layout_tests/run_webkit_tests.py:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@64786 268f45cc-cd09-0410-ab3c-d52691b4dbfc

9 years ago2010-08-05 Adam Barth <abarth@webkit.org>
abarth@webkit.org [Thu, 5 Aug 2010 21:10:24 +0000 (21:10 +0000)]
2010-08-05  Adam Barth  <abarth@webkit.org>

        Actually make HTMLEntityNames.json valid JSON.

        * html/HTMLEntityNames.json:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@64785 268f45cc-cd09-0410-ab3c-d52691b4dbfc

9 years ago2010-08-05 Ilya Tikhonovsky <loislo@chromium.org>
loislo@chromium.org [Thu, 5 Aug 2010 21:10:04 +0000 (21:10 +0000)]
2010-08-05  Ilya Tikhonovsky  <loislo@chromium.org>

        Unreviewed build fix for chromium.
        https://bugs.webkit.org/show_bug.cgi?id=43574

        * platform/chromium/test_expectations.txt:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@64784 268f45cc-cd09-0410-ab3c-d52691b4dbfc

9 years agoFix for https://bugs.webkit.org/show_bug.cgi?id=43516 REGRESSION:
bdakin@apple.com [Thu, 5 Aug 2010 20:59:07 +0000 (20:59 +0000)]
Fix for https://bugs.webkit.org/show_bug.cgi?id=43516 REGRESSION:
Huge number of memory leaks after enabling MathML
-and corresponding-
<rdar://problem/8274123>

Reviewed by Kenneth Rohde Christiansen.

Destroy the old children in
RenderMathMLOperator::updateFromElement() instead of just removing
them since just removing them will cause them to leak.
* mathml/RenderMathMLOperator.cpp:
(WebCore::RenderMathMLOperator::updateFromElement):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@64783 268f45cc-cd09-0410-ab3c-d52691b4dbfc

9 years agoBug 43185 - Switch RegisterFile over to use PageAllocation
barraclough@apple.com [Thu, 5 Aug 2010 20:57:33 +0000 (20:57 +0000)]
Bug 43185 - Switch RegisterFile over to use PageAllocation

Reviewed by Sam Weinig.

Remove platform-specific memory allocation code.

* interpreter/RegisterFile.cpp:
(JSC::RegisterFile::~RegisterFile):
(JSC::RegisterFile::releaseExcessCapacity):
* interpreter/RegisterFile.h:
(JSC::RegisterFile::RegisterFile):
(JSC::RegisterFile::grow):
(JSC::RegisterFile::checkAllocatedOkay):
* wtf/PageAllocation.cpp:
(WTF::PageAllocation::lastError):
* wtf/PageAllocation.h:
(WTF::PageAllocation::allocate):
(WTF::PageAllocation::allocateAt):
(WTF::PageAllocation::allocateAligned):
(WTF::PageAllocation::pageSize):
(WTF::PageAllocation::isPageAligned):
(WTF::PageAllocation::isPowerOfTwo):
* wtf/PageReservation.h:
(WTF::PageReservation::commit):
(WTF::PageReservation::decommit):
(WTF::PageReservation::reserve):
(WTF::PageReservation::reserveAt):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@64782 268f45cc-cd09-0410-ab3c-d52691b4dbfc

9 years ago2010-08-05 Martin Robinson <mrobinson@igalia.com>
mrobinson@webkit.org [Thu, 5 Aug 2010 20:40:36 +0000 (20:40 +0000)]
2010-08-05  Martin Robinson  <mrobinson@igalia.com>

        [GTK] Some sputnik tests fail
        https://bugs.webkit.org/show_bug.cgi?id=43568

        * platform/gtk/Skipped: Skip some more failing Sputnik tests.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@64781 268f45cc-cd09-0410-ab3c-d52691b4dbfc

9 years ago2010-08-05 Tony Chang <tony@chromium.org>
tony@chromium.org [Thu, 5 Aug 2010 20:32:05 +0000 (20:32 +0000)]
2010-08-05  Tony Chang  <tony@chromium.org>

        Reviewed by David Hyatt.

        Fix a crash when a hidden iframe with a custom scrollbar finishes loading an image.
        https://bugs.webkit.org/show_bug.cgi?id=42724

        * scrollbars/hidden-iframe-scrollbar-crash2.html: Added.
        * scrollbars/resources/hidden-iframe-scrollbar-crash2.html: Added.
2010-08-05  Tony Chang  <tony@chromium.org>

        Reviewed by David Hyatt.

        Fix a crash when a hidden iframe with a custom scrollbar finishes loading an image.
        https://bugs.webkit.org/show_bug.cgi?id=42724

        Test: scrollbars/hidden-iframe-scrollbar-crash2.html

        * page/FrameView.cpp:
        (WebCore::FrameView::createScrollbar):
        * rendering/RenderScrollbar.cpp:
        (WebCore::RenderScrollbar::createCustomScrollbar): Pass in Frame
        (WebCore::RenderScrollbar::RenderScrollbar): Pass in Frame
        (WebCore::RenderScrollbar::owningRenderer): Use the frame to get the RenderBox
        (WebCore::RenderScrollbar::getScrollbarPseudoStyle):
        (WebCore::RenderScrollbar::updateScrollbarParts):
        (WebCore::RenderScrollbar::updateScrollbarPart):
        * rendering/RenderScrollbar.h:
        * rendering/RenderScrollbarPart.cpp:
        (WebCore::RenderScrollbarPart::computeScrollbarWidth): null check
        (WebCore::RenderScrollbarPart::computeScrollbarHeight): null check

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@64780 268f45cc-cd09-0410-ab3c-d52691b4dbfc

9 years ago2010-08-05 Ilya Tikhonovsky <loislo@chromium.org>
loislo@chromium.org [Thu, 5 Aug 2010 20:27:37 +0000 (20:27 +0000)]
2010-08-05  Ilya Tikhonovsky  <loislo@chromium.org>

        Unreviewed build fix for Chromium.

        WebInspector: inspector/debugger-breakpoints-not-activated-on-reload.html
        was regressed. I'll fix it tomorrow.
        https://bugs.webkit.org/show_bug.cgi?id=43574

        * platform/chromium/test_expectations.txt:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@64779 268f45cc-cd09-0410-ab3c-d52691b4dbfc

9 years agoReviewed Anders Carlsson.
weinig@apple.com [Thu, 5 Aug 2010 20:19:42 +0000 (20:19 +0000)]
Reviewed Anders Carlsson.

Add DOM Node wrapper class for injected bundle
https://bugs.webkit.org/show_bug.cgi?id=43524

- This class should not expose any DOM APIs, but just be a handle that can be used to get a JS
  wrapper for the node in a specific world.

* Shared/APIObject.h:
(WebKit::APIObject::):
* WebKit2.xcodeproj/project.pbxproj:
* WebProcess/InjectedBundle/API/c/WKBundleAPICast.h:
(WebKit::):
* WebProcess/InjectedBundle/API/c/WKBundleBase.h:
* WebProcess/InjectedBundle/API/c/WKBundleNode.h:
* WebProcess/InjectedBundle/API/c/WKBundleNodeHandle.cpp: Added.
(WKBundleNodeHandleGetTypeID):
(WKBundleNodeHandleRetain):
(WKBundleNodeHandleRelease):
* WebProcess/InjectedBundle/API/c/WKBundleNodeHandle.h: Added.
* WebProcess/InjectedBundle/DOM: Added.
* WebProcess/InjectedBundle/DOM/InjectedBundleNodeHandle.cpp: Added.
(WebKit::domHandleCache):
(WebKit::getDOMHandle):
(WebKit::setDOMHandle):
(WebKit::removeDOMHandle):
(WebKit::InjectedBundleNodeHandle::getOrCreate):
(WebKit::InjectedBundleNodeHandle::create):
(WebKit::InjectedBundleNodeHandle::InjectedBundleNodeHandle):
(WebKit::InjectedBundleNodeHandle::~InjectedBundleNodeHandle):
* WebProcess/InjectedBundle/DOM/InjectedBundleNodeHandle.h: Added.
(WebKit::InjectedBundleNodeHandle::type):
* win/WebKit2.vcproj:
* win/WebKit2Generated.make:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@64778 268f45cc-cd09-0410-ab3c-d52691b4dbfc

9 years ago2010-08-05 Yong Li <yoli@rim.com>
commit-queue@webkit.org [Thu, 5 Aug 2010 20:01:40 +0000 (20:01 +0000)]
2010-08-05  Yong Li  <yoli@rim.com>

        Reviewed by Adam Treat.

        Fix the problem that down-sampling code doesn't work
        for some GIF's. GIF reader can call setSize() multiple times.
        We should clear the scaling maps before adding new entries.
        Also add a fast path to check if the size has changed since last time.

        https://bugs.webkit.org/show_bug.cgi?id=43501

        * platform/image-decoders/ImageDecoder.cpp:
        (WebCore::ImageDecoder::prepareScaleDataIfNecessary):
        * platform/image-decoders/gif/GIFImageDecoder.cpp:
        (WebCore::GIFImageDecoder::setSize):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@64777 268f45cc-cd09-0410-ab3c-d52691b4dbfc

9 years agoBuild fix.
andersca@apple.com [Thu, 5 Aug 2010 19:58:37 +0000 (19:58 +0000)]
Build fix.

* Platform/mac/SharedMemoryMac.cpp:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@64776 268f45cc-cd09-0410-ab3c-d52691b4dbfc

9 years agoAdd VisitedLinkProvider class
andersca@apple.com [Thu, 5 Aug 2010 19:54:13 +0000 (19:54 +0000)]
Add VisitedLinkProvider class
https://bugs.webkit.org/show_bug.cgi?id=43570

Reviewed by Sam Weinig.

* Shared/CoreIPCSupport/WebProcessMessageKinds.h:
(WebProcessMessage::):
Add SetVisitedLinkTable, VisitedLinkStateChanged and AllVisitedLinkStateChanged.

* UIProcess/VisitedLinkProvider.cpp: Added.
(WebKit::VisitedLinkProvider::VisitedLinkProvider):
Initialize table.

(WebKit::VisitedLinkProvider::populateVisitedLinksIfNeeded):
Ask the context to populate visited links.

(WebKit::VisitedLinkProvider::addVisitedLink):
Add the link hash to the set of pending visited links and start the timer.

(WebKit::nextPowerOf2):
Add helper function.

(WebKit::tableSizeForKeyCount):
Given a key count, returns a table size. The table size is always a power of two, and
is chosen so that the table is always at least half empty.

(WebKit::VisitedLinkProvider::pendingVisitedLinksTimerFired):
First, check if we need to resize the hash table and allocate new shared memory for it if that is the case.
Then, go through the pending link hash vector and insert all the elements in the table. Finally, notify the web
process about visited links whose state have changed.

* WebProcess/WebProcess.cpp:
(WebKit::WebProcess::didReceiveMessage):
Add case statements.

* win/WebKit2.vcproj:
* WebKit2.xcodeproj/project.pbxproj:
Add VisitedLinkProvider.cpp and VisitedLinkProvider.h.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@64775 268f45cc-cd09-0410-ab3c-d52691b4dbfc

9 years ago2010-08-05 Martin Robinson <mrobinson@igalia.com>
mrobinson@webkit.org [Thu, 5 Aug 2010 19:44:11 +0000 (19:44 +0000)]
2010-08-05  Martin Robinson  <mrobinson@igalia.com>

        [GTK] Some sputnik tests fail
        https://bugs.webkit.org/show_bug.cgi?id=43568

        * platform/gtk/Skipped: Adding some more sputnik failures from the
        debug bot.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@64774 268f45cc-cd09-0410-ab3c-d52691b4dbfc

9 years ago2010-08-05 Michael Saboff <msaboff@apple.com>
commit-queue@webkit.org [Thu, 5 Aug 2010 19:33:42 +0000 (19:33 +0000)]
2010-08-05  Michael Saboff  <msaboff@apple.com>

        Reviewed by Darin Adler.

        Fixed https://bugs.webkit.org/show_bug.cgi?id=43401 where array
        content aren't properly initialized as part of unshift.

        * runtime/JSArray.cpp:
        (JSC::JSArray::unshiftCount):
2010-08-05  Michael Saboff  <msaboff@apple.com>

        Reviewed by Darin Adler.

        New regression tests added as part of unshift fix for bug described
        inhttps://bugs.webkit.org/show_bug.cgi?id=43401.

        * fast/js/script-tests/unshift-multi.js: Added.
        * fast/js/unshift-multi-expected.txt: Added.
        * fast/js/unshift-multi.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@64773 268f45cc-cd09-0410-ab3c-d52691b4dbfc

9 years ago2010-08-05 Ilya Tikhonovsky <loislo@chromium.org>
loislo@chromium.org [Thu, 5 Aug 2010 19:17:08 +0000 (19:17 +0000)]
2010-08-05  Ilya Tikhonovsky  <loislo@chromium.org>

        Reviewed by Yury Semikhatsky.

        WebInspector: In the current implementation of inspector agents we're calling
        did methods manually. That is error prone and is bad from protocol point of view.
        It would be better to call did methods automatically from the corresponding methods
        of InspectorBackendDispatcher and report the results. As far as our protocol is
        statefull this trick will keep it in the consistent state.
        https://bugs.webkit.org/show_bug.cgi?id=43489

        * inspector/CodeGeneratorInspector.pm:
        * inspector/Inspector.idl:
        * inspector/InspectorApplicationCacheAgent.cpp:
        (WebCore::InspectorApplicationCacheAgent::getApplicationCaches):
        * inspector/InspectorApplicationCacheAgent.h:
        * inspector/InspectorBackend.cpp:
        (WebCore::InspectorBackend::getProfilerLogLines):
        (WebCore::InspectorBackend::setInjectedScriptSource):
        (WebCore::InspectorBackend::dispatchOnInjectedScript):
        (WebCore::InspectorBackend::clearConsoleMessages):
        (WebCore::InspectorBackend::releaseWrapperObjectGroup):
        (WebCore::InspectorBackend::getDatabaseTableNames):
        * inspector/InspectorBackend.h:
        * inspector/InspectorCSSStore.cpp:
        (WebCore::InspectorCSSStore::inspectorStyleSheet):
        * inspector/InspectorCSSStore.h:
        * inspector/InspectorController.cpp:
        (WebCore::InspectorController::InspectorController):
        (WebCore::InspectorController::getCookies):
        (WebCore::InspectorController::getDOMStorageEntries):
        (WebCore::InspectorController::setDOMStorageItem):
        (WebCore::InspectorController::removeDOMStorageItem):
        (WebCore::InspectorController::getProfileHeaders):
        (WebCore::InspectorController::getProfile):
        (WebCore::InspectorController::editScriptSource):
        (WebCore::InspectorController::getScriptSource):
        (WebCore::InspectorController::setBreakpoint):
        (WebCore::InspectorController::getResourceContent):
        * inspector/InspectorController.h:
        (WebCore::InspectorController::inspectorClient):
        * inspector/InspectorDOMAgent.cpp:
        (WebCore::InspectorDOMAgent::getChildNodes):
        (WebCore::InspectorDOMAgent::setAttribute):
        (WebCore::InspectorDOMAgent::removeAttribute):
        (WebCore::InspectorDOMAgent::removeNode):
        (WebCore::InspectorDOMAgent::changeTagName):
        (WebCore::InspectorDOMAgent::getOuterHTML):
        (WebCore::InspectorDOMAgent::setOuterHTML):
        (WebCore::InspectorDOMAgent::setTextNodeValue):
        (WebCore::InspectorDOMAgent::getEventListenersForNode):
        (WebCore::InspectorDOMAgent::getStyles):
        (WebCore::InspectorDOMAgent::getAllStyles):
        (WebCore::InspectorDOMAgent::getStyleSheet):
        (WebCore::InspectorDOMAgent::getRuleRanges):
        (WebCore::InspectorDOMAgent::getInlineStyle):
        (WebCore::InspectorDOMAgent::getComputedStyle):
        (WebCore::InspectorDOMAgent::applyStyleText):
        (WebCore::InspectorDOMAgent::setStyleText):
        (WebCore::InspectorDOMAgent::setStyleProperty):
        (WebCore::InspectorDOMAgent::toggleStyleEnabled):
        (WebCore::InspectorDOMAgent::setRuleSelector):
        (WebCore::InspectorDOMAgent::addRule):
        (WebCore::InspectorDOMAgent::buildObjectForRule):
        (WebCore::InspectorDOMAgent::pushNodeByPathToFrontend):
        * inspector/InspectorDOMAgent.h:
        * inspector/InspectorValues.cpp:
        (WebCore::InspectorValue::asNumber):
        (WebCore::InspectorBasicValue::asNumber):
        * inspector/InspectorValues.h:
        * inspector/front-end/Callback.js:
        (WebInspector.Callback.prototype.processCallback):
        (WebInspector.Callback.prototype.removeCallbackEntry):
        * inspector/front-end/ElementsPanel.js:
        (WebInspector.ElementsPanel.prototype.reset):
        * inspector/front-end/inspector.js:
        (WebInspector.reportProtocolError):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@64770 268f45cc-cd09-0410-ab3c-d52691b4dbfc

9 years ago2010-08-05 Martin Robinson <mrobinson@igalia.com>
mrobinson@webkit.org [Thu, 5 Aug 2010 19:11:56 +0000 (19:11 +0000)]
2010-08-05  Martin Robinson  <mrobinson@igalia.com>

        [GTK] Some sputnik tests fail
        https://bugs.webkit.org/show_bug.cgi?id=43568

        Unskip the majority of the Sputnik tests. Most of them are passing
        and a few just needed GTK+ baselines showing that they pass.

        * platform/gtk/Skipped: Skip remaining failures.
        * platform/gtk/fast/js/sputnik/Unicode/Unicode_510/S7.6_A3.2-expected.txt: Copied from LayoutTests/platform/win/fast/js/sputnik/Unicode/Unicode_510/S7.6_A3.2-expected.txt.
        * platform/gtk/fast/js/sputnik/Unicode/Unicode_510/S7.6_A5.3_T1-expected.txt: Copied from LayoutTests/platform/win/fast/js/sputnik/Unicode/Unicode_510/S7.6_A5.3_T1-expected.txt.
        * platform/gtk/fast/js/sputnik/Unicode/Unicode_510/S7.6_A5.3_T2-expected.txt: Copied from LayoutTests/platform/win/fast/js/sputnik/Unicode/Unicode_510/S7.6_A5.3_T2-expected.txt.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@64769 268f45cc-cd09-0410-ab3c-d52691b4dbfc

9 years agoAdd VisitedLinkTable class
andersca@apple.com [Thu, 5 Aug 2010 18:58:24 +0000 (18:58 +0000)]
Add VisitedLinkTable class
https://bugs.webkit.org/show_bug.cgi?id=43566

Reviewed by Sam Weinig.

* Shared/VisitedLinkTable.cpp: Added.
(WebKit::VisitedLinkTable::VisitedLinkTable):
(WebKit::VisitedLinkTable::~VisitedLinkTable):
Add out of line constructors so we won't have to include SharedMemory.h in the
VisitedLinkTable.h header.

(WebKit::isPowerOf2):
Add helper function.

(WebKit::VisitedLinkTable::setSharedMemory):
Set the new shared memory and update the table size and hash.

(WebKit::doubleHash):
Add helper function from the WTF HashTable.

(WebKit::VisitedLinkTable::addLinkHash):
Add a link hash to the table.

(WebKit::VisitedLinkTable::isLinkVisited):
See if there is an entry for the given link hash.

* Shared/VisitedLinkTable.h: Added.
(WebKit::VisitedLinkTable::sharedMemory):
* WebKit2.xcodeproj/project.pbxproj:
* win/WebKit2.vcproj:
Add VisitedLinkTable.cpp and VisitedLinkTable.h

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@64768 268f45cc-cd09-0410-ab3c-d52691b4dbfc

9 years ago2010-08-04 Kenneth Russell <kbr@google.com>
kbr@google.com [Thu, 5 Aug 2010 18:33:48 +0000 (18:33 +0000)]
2010-08-04  Kenneth Russell  <kbr@google.com>

        Reviewed by Dimitri Glazkov.

        Style cleanups in WebGL
        https://bugs.webkit.org/show_bug.cgi?id=38761

        Cleaned up all style violations in WebGL-related files reported by
        check-webkit-style. No logic or other changes. Built WebKit and
        Chromium and ran WebGL layout tests.

        * src/GraphicsContext3D.cpp:
        (WebCore::GraphicsContext3DInternal::paintRenderingResultsToCanvas):
        * src/WebGraphicsContext3DDefaultImpl.cpp:
        * src/WebGraphicsContext3DDefaultImpl.h:
2010-08-04  Kenneth Russell  <kbr@google.com>

        Reviewed by Dimitri Glazkov.

        Style cleanups in WebGL
        https://bugs.webkit.org/show_bug.cgi?id=38761

        Cleaned up all style violations in WebGL-related files reported by
        check-webkit-style. No logic or other changes. Built WebKit and
        Chromium and ran WebGL layout tests.

        * html/canvas/ArrayBuffer.cpp:
        (WebCore::ArrayBuffer::ArrayBuffer):
        (WebCore::ArrayBuffer::data):
        (WebCore::ArrayBuffer::byteLength):
        (WebCore::ArrayBuffer::~ArrayBuffer):
        (WebCore::ArrayBuffer::tryAllocate):
        * html/canvas/ArrayBufferView.cpp:
        (WebCore::ArrayBufferView::setImpl):
        * html/canvas/ArrayBufferView.h:
        * html/canvas/TypedArrayBase.h:
        * html/canvas/WebGLBuffer.cpp:
        (WebCore::WebGLBuffer::deleteObjectImpl):
        (WebCore::WebGLBuffer::associateBufferData):
        * html/canvas/WebGLBuffer.h:
        (WebCore::WebGLBuffer::~WebGLBuffer):
        (WebCore::WebGLBuffer::elementArrayBuffer):
        (WebCore::WebGLBuffer::getTarget):
        (WebCore::WebGLBuffer::isBuffer):
        * html/canvas/WebGLFramebuffer.cpp:
        (WebCore::WebGLFramebuffer::deleteObjectImpl):
        * html/canvas/WebGLFramebuffer.h:
        (WebCore::WebGLFramebuffer::~WebGLFramebuffer):
        (WebCore::WebGLFramebuffer::isDepthAttached):
        (WebCore::WebGLFramebuffer::isStencilAttached):
        (WebCore::WebGLFramebuffer::isDepthStencilAttached):
        (WebCore::WebGLFramebuffer::isFramebuffer):
        * html/canvas/WebGLGetInfo.cpp:
        * html/canvas/WebGLGetInfo.h:
        * html/canvas/WebGLObject.cpp:
        (WebCore::WebGLObject::deleteObject):
        * html/canvas/WebGLObject.h:
        (WebCore::WebGLObject::object):
        (WebCore::WebGLObject::detachContext):
        (WebCore::WebGLObject::context):
        (WebCore::WebGLObject::isBuffer):
        (WebCore::WebGLObject::isFramebuffer):
        (WebCore::WebGLObject::isProgram):
        (WebCore::WebGLObject::isRenderbuffer):
        (WebCore::WebGLObject::isShader):
        (WebCore::WebGLObject::isTexture):
        * html/canvas/WebGLProgram.cpp:
        (WebCore::WebGLProgram::deleteObjectImpl):
        * html/canvas/WebGLProgram.h:
        (WebCore::WebGLProgram::~WebGLProgram):
        (WebCore::WebGLProgram::isLinkFailureFlagSet):
        (WebCore::WebGLProgram::setLinkFailureFlag):
        (WebCore::WebGLProgram::isProgram):
        * html/canvas/WebGLRenderbuffer.cpp:
        (WebCore::WebGLRenderbuffer::deleteObjectImpl):
        * html/canvas/WebGLRenderbuffer.h:
        (WebCore::WebGLRenderbuffer::~WebGLRenderbuffer):
        (WebCore::WebGLRenderbuffer::setInternalFormat):
        (WebCore::WebGLRenderbuffer::getInternalFormat):
        (WebCore::WebGLRenderbuffer::isInitialized):
        (WebCore::WebGLRenderbuffer::setInitialized):
        (WebCore::WebGLRenderbuffer::isRenderbuffer):
        * html/canvas/WebGLRenderingContext.cpp:
        (WebCore::WebGLRenderingContext::beginPaint):
        (WebCore::WebGLRenderingContext::blendEquation):
        (WebCore::WebGLRenderingContext::getActiveAttrib):
        (WebCore::WebGLRenderingContext::getActiveUniform):
        (WebCore::WebGLRenderingContext::getBufferParameter):
        (WebCore::WebGLRenderingContext::getFramebufferAttachmentParameter):
        (WebCore::WebGLRenderingContext::vertexAttribPointer):
        * html/canvas/WebGLRenderingContext.h:
        (WebCore::WebGLRenderingContext::is3d):
        (WebCore::WebGLRenderingContext::isAccelerated):
        (WebCore::WebGLRenderingContext::graphicsContext3D):
        (WebCore::WebGLRenderingContext::cleanupAfterGraphicsCall):
        (WebCore::WebGLRenderingContext::VertexAttribState::VertexAttribState):
        (WebCore::WebGLRenderingContext::VertexAttribState::initValue):
        * html/canvas/WebGLShader.cpp:
        (WebCore::WebGLShader::deleteObjectImpl):
        * html/canvas/WebGLShader.h:
        (WebCore::WebGLShader::~WebGLShader):
        (WebCore::WebGLShader::getType):
        (WebCore::WebGLShader::isShader):
        * html/canvas/WebGLTexture.cpp:
        (WebCore::WebGLTexture::deleteObjectImpl):
        * html/canvas/WebGLTexture.h:
        (WebCore::WebGLTexture::~WebGLTexture):
        (WebCore::WebGLTexture::isCubeMapRWrapModeInitialized):
        (WebCore::WebGLTexture::setCubeMapRWrapModeInitialized):
        (WebCore::WebGLTexture::isTexture):
        (WebCore::WebGLTexture::LevelInfo::LevelInfo):
        (WebCore::WebGLTexture::LevelInfo::setInfo):
        * platform/graphics/GraphicsContext3D.h:
        (WebCore::GraphicsContext3D::):
        (WebCore::GraphicsContext3D::Attributes::Attributes):
        (WebCore::GraphicsContext3D::platformGraphicsContext3D):
        (WebCore::GraphicsContext3D::platformTexture):
        (WebCore::GraphicsContext3D::platformLayer):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@64767 268f45cc-cd09-0410-ab3c-d52691b4dbfc

9 years agoUpdate test results caused by r64763.
jianli@chromium.org [Thu, 5 Aug 2010 18:19:13 +0000 (18:19 +0000)]
Update test results caused by r64763.

* fast/dom/Window/window-properties-expected.txt:
* fast/dom/Window/window-properties.html:
* fast/dom/constructed-objects-prototypes-expected.txt:
* fast/dom/script-tests/constructed-objects-prototypes.js:
(constructorPropertiesOnWindow):
* platform/gtk/Skipped:
* platform/gtk/fast/dom/Window/window-properties-expected.txt:
* platform/gtk/fast/dom/Window/window-property-descriptors-expected.txt:
* platform/gtk/fast/dom/prototype-inheritance-expected.txt:
* platform/gtk/fast/js/global-constructors-expected.txt:
* platform/qt/Skipped:
* platform/qt/fast/dom/Window/window-properties-expected.txt:
* platform/qt/fast/dom/Window/window-property-descriptors-expected.txt:
* platform/qt/fast/dom/prototype-inheritance-expected.txt:
* platform/qt/fast/js/global-constructors-expected.txt:
* platform/win/Skipped:
* platform/win/fast/dom/Window/window-property-descriptors-expected.txt:
* platform/win/fast/dom/prototype-inheritance-expected.txt:
* platform/win/fast/js/global-constructors-expected.txt:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@64766 268f45cc-cd09-0410-ab3c-d52691b4dbfc

9 years agoAdd shared memory abstraction
andersca@apple.com [Thu, 5 Aug 2010 18:03:02 +0000 (18:03 +0000)]
Add shared memory abstraction
https://bugs.webkit.org/show_bug.cgi?id=43535
<rdar://problem/8275295>

Reviewed by Adam Roben.

* Platform/SharedMemory.h: Added.
(WebKit::SharedMemory::):
(WebKit::SharedMemory::size):
Return the size, in bytes, of the shared memory object.

(WebKit::SharedMemory::data):
Return a pointer to the shared memory object.

* Platform/mac/SharedMemoryMac.cpp: Added.
(WebKit::SharedMemory::Handle):
A shared memory handle, which can be passed in a CoreIPC Connection.

(WebKit::SharedMemory::create):
Allocate the shared memory.

(WebKit::SharedMemory::~SharedMemory):
Deallocate the shared memory.

(WebKit::SharedMemory::createHandle):
Create a mach port and pass it to the handle.

(WebKit::SharedMemory::systemPageSize):
Return the system page size, in bytes.

* Platform/win/SharedMemoryWin.cpp: Added.
Add stubbed out version.

* WebKit2.xcodeproj/project.pbxproj:
* win/WebKit2.vcproj:
Add files.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@64765 268f45cc-cd09-0410-ab3c-d52691b4dbfc

9 years ago2010-08-05 Kenneth Rohde Christiansen <kenneth.christiansen@openbossa.org>
commit-queue@webkit.org [Thu, 5 Aug 2010 17:50:27 +0000 (17:50 +0000)]
2010-08-05  Kenneth Rohde Christiansen  <kenneth.christiansen@openbossa.org>

        Reviewed by Simon Hausmann.

        Make the viewport meta tag parser support the Android
        target-densitydpi extension.
        http://webkit.org/b/43492

        http://developer.android.com/reference/android/webkit/WebView.html
        Section 'Building web pages to support different screen densities'

        * dom/ViewportArguments.cpp:
        (WebCore::setViewportFeature):
        (WebCore::viewportErrorMessageTemplate):
        * dom/ViewportArguments.h:
        (WebCore::):
        (WebCore::ViewportArguments::ViewportArguments):
        (WebCore::ViewportArguments::hasCustomArgument):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@64764 268f45cc-cd09-0410-ab3c-d52691b4dbfc

9 years agoUnify blob related feature defines to ENABLE(BLOB).
jianli@chromium.org [Thu, 5 Aug 2010 17:42:32 +0000 (17:42 +0000)]
Unify blob related feature defines to ENABLE(BLOB).
https://bugs.webkit.org/show_bug.cgi?id=43081

Reviewed by David Levin.

.:

* cmakeconfig.h.cmake:
* configure.ac:

JavaScriptCore:

* Configurations/FeatureDefines.xcconfig:

WebCore:

* Configurations/FeatureDefines.xcconfig:
* GNUmakefile.am:
* WebCore.pri:
* bindings/js/JSEventTarget.cpp:
(WebCore::toJS):
* bindings/v8/V8DOMWrapper.cpp:
(WebCore::V8DOMWrapper::convertEventTargetToV8Object):
* dom/EventTarget.cpp:
* dom/EventTarget.h:
* dom/ExceptionCode.h:
(WebCore::):
* dom/ScriptExecutionContext.cpp:
(WebCore::ScriptExecutionContext::~ScriptExecutionContext):
* dom/ScriptExecutionContext.h:
* html/Blob.cpp:
* html/Blob.h:
* html/Blob.idl:
* html/FileError.h:
* html/FileError.idl:
* html/FileReader.cpp:
* html/FileReader.h:
* html/FileReader.idl:
* html/FileStream.cpp:
(WebCore::FileStream::openForRead):
* html/FileStream.h:
* html/FileStreamClient.h:
* html/FileStreamProxy.cpp:
* html/FileStreamProxy.h:
* html/FileThread.cpp:
* html/FileThread.h:
* page/DOMWindow.idl:
* platform/BlobItem.cpp:
(WebCore::getFileSnapshotModificationTime):
(WebCore::DataBlobItem::slice):
(WebCore::FileBlobItem::slice):
* platform/BlobItem.h:
* platform/network/FormData.cpp:
(WebCore::FormData::deepCopy):
(WebCore::FormData::appendFile):
(WebCore::FormData::appendItem):
(WebCore::FormData::appendKeyValuePairItems):
* platform/network/FormData.h:
(WebCore::operator==):
* platform/network/mac/FormDataStreamMac.mm:
(WebCore::closeCurrentStream):
(WebCore::advanceCurrentStream):
(WebCore::formCreate):
(WebCore::formRead):
(WebCore::setHTTPBody):

WebKit/chromium:

* features.gypi:
* src/WebHTTPBody.cpp:
(WebKit::WebHTTPBody::elementAt):
(WebKit::WebHTTPBody::appendFileRange):

WebKit/mac:

* Configurations/FeatureDefines.xcconfig:

WebKit2:

* Configurations/FeatureDefines.xcconfig:

WebKitLibraries:

* win/tools/vsprops/FeatureDefines.vsprops:
* win/tools/vsprops/FeatureDefinesCairo.vsprops:

WebKitTools:

* Scripts/build-webkit:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@64763 268f45cc-cd09-0410-ab3c-d52691b4dbfc

9 years agoChromium test expectations update.
jianli@chromium.org [Thu, 5 Aug 2010 17:25:27 +0000 (17:25 +0000)]
Chromium test expectations update.

* platform/chromium/test_expectations.txt:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@64762 268f45cc-cd09-0410-ab3c-d52691b4dbfc

9 years ago2010-08-05 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
kov@webkit.org [Thu, 5 Aug 2010 17:14:21 +0000 (17:14 +0000)]
2010-08-05  Gustavo Noronha Silva  <gustavo.noronha@collabora.co.uk>

        Rubber-stamped by Xan Lopez.

        Remove GHashTable left-overs. GHashTable is ref-counted, and is
        correctly supported by GRefPtr.

        * wtf/gobject/GOwnPtr.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@64761 268f45cc-cd09-0410-ab3c-d52691b4dbfc

9 years ago2010-08-05 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
kov@webkit.org [Thu, 5 Aug 2010 17:06:32 +0000 (17:06 +0000)]
2010-08-05  Gustavo Noronha Silva  <gustavo.noronha@collabora.co.uk>

        Reviewed by Xan Lopez.

        Move files that are generated by the configure script to
        DISTCLEANFILES, where they should be. This fixes building after a
        make clean.

        * GNUmakefile.am:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@64760 268f45cc-cd09-0410-ab3c-d52691b4dbfc

9 years ago2010-08-05 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
kov@webkit.org [Thu, 5 Aug 2010 17:06:17 +0000 (17:06 +0000)]
2010-08-05  Gustavo Noronha Silva  <gustavo.noronha@collabora.co.uk>

        Unreviewed.

        Typo fix that makes distcheck happy.

        * GNUmakefile.am:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@64759 268f45cc-cd09-0410-ab3c-d52691b4dbfc

9 years ago2010-08-05 Xan Lopez <xlopez@igalia.com>
xan@webkit.org [Thu, 5 Aug 2010 16:57:32 +0000 (16:57 +0000)]
2010-08-05  Xan Lopez  <xlopez@igalia.com>

        Reviewed by Gustavo Noronha.

        When trying to wrap a Node we know is an Element fallback to a
        simple Element wrapper in the worst case, not to Node.

        * bindings/gobject/WebKitDOMBinding.cpp:
        (WebKit::createWrapper):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@64758 268f45cc-cd09-0410-ab3c-d52691b4dbfc

9 years ago2010-08-05 Satish Sampath <satish@chromium.org>
jorlow@chromium.org [Thu, 5 Aug 2010 16:52:27 +0000 (16:52 +0000)]
2010-08-05  Satish Sampath  <satish@chromium.org>

        Reviewed by Jeremy Orlow.

        Updated test expectations for speech input in the chromium port
        https://bugs.webkit.org/show_bug.cgi?id=43563

        * platform/chromium-linux/fast/speech/input-appearance-numberandspeech-expected.checksum: Added.
        * platform/chromium-linux/fast/speech/input-appearance-numberandspeech-expected.png: Added.
        * platform/chromium-linux/fast/speech/input-appearance-numberandspeech-expected.txt: Added.
        * platform/chromium-linux/fast/speech/input-appearance-searchandspeech-expected.checksum:
        * platform/chromium-linux/fast/speech/input-appearance-searchandspeech-expected.png:
        * platform/chromium-linux/fast/speech/input-appearance-searchandspeech-expected.txt:
        * platform/chromium-linux/fast/speech/input-appearance-speechbutton-expected.checksum:
        * platform/chromium-linux/fast/speech/input-appearance-speechbutton-expected.png:
        * platform/chromium-linux/fast/speech/input-appearance-speechbutton-expected.txt:
        * platform/chromium-mac/fast/speech/input-appearance-numberandspeech-expected.checksum:
        * platform/chromium-mac/fast/speech/input-appearance-numberandspeech-expected.png:
        * platform/chromium-mac/fast/speech/input-appearance-numberandspeech-expected.txt:
        * platform/chromium-mac/fast/speech/input-appearance-searchandspeech-expected.checksum:
        * platform/chromium-mac/fast/speech/input-appearance-searchandspeech-expected.png:
        * platform/chromium-mac/fast/speech/input-appearance-searchandspeech-expected.txt:
        * platform/chromium-mac/fast/speech/input-appearance-speechbutton-expected.checksum:
        * platform/chromium-mac/fast/speech/input-appearance-speechbutton-expected.png:
        * platform/chromium-mac/fast/speech/input-appearance-speechbutton-expected.txt:
        * platform/chromium-win/fast/speech/input-appearance-numberandspeech-expected.checksum: Added.
        * platform/chromium-win/fast/speech/input-appearance-numberandspeech-expected.png: Added.
        * platform/chromium-win/fast/speech/input-appearance-numberandspeech-expected.txt: Added.
        * platform/chromium-win/fast/speech/input-appearance-searchandspeech-expected.checksum: Added.
        * platform/chromium-win/fast/speech/input-appearance-searchandspeech-expected.png: Added.
        * platform/chromium-win/fast/speech/input-appearance-searchandspeech-expected.txt: Added.
        * platform/chromium-win/fast/speech/input-appearance-speechbutton-expected.checksum: Added.
        * platform/chromium-win/fast/speech/input-appearance-speechbutton-expected.png: Added.
        * platform/chromium-win/fast/speech/input-appearance-speechbutton-expected.txt: Added.
        * platform/chromium/test_expectations.txt:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@64757 268f45cc-cd09-0410-ab3c-d52691b4dbfc

9 years ago2010-08-05 Nico Weber <thakis@chromium.org>
thakis@chromium.org [Thu, 5 Aug 2010 16:30:31 +0000 (16:30 +0000)]
2010-08-05  Nico Weber  <thakis@chromium.org>

        Reviewed by Jeremy Orlow.

        Remove useless const on return-by-value (fixes a clang warning)
        https://bugs.webkit.org/show_bug.cgi?id=43491

        * src/WebInputEventConversion.cpp:
        (WebKit::toPlatformKeyboardEventType):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@64756 268f45cc-cd09-0410-ab3c-d52691b4dbfc

9 years ago2010-08-05 Balazs Kelemen <kb@inf.u-szeged.hu>
abecsi@webkit.org [Thu, 5 Aug 2010 15:58:41 +0000 (15:58 +0000)]
2010-08-05  Balazs Kelemen  <kb@inf.u-szeged.hu>

        Rubber-stamped by Kenneth Rohde Christiansen.

        [Qt] Remove redundant include paths from WebKit2.pro.

        * WebKit2.pro:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@64755 268f45cc-cd09-0410-ab3c-d52691b4dbfc

9 years ago2010-08-05 Jeremy Orlow <jorlow@chromium.org>
jorlow@chromium.org [Thu, 5 Aug 2010 15:55:08 +0000 (15:55 +0000)]
2010-08-05  Jeremy Orlow  <jorlow@chromium.org>

        Don't skip speech tests.

        * platform/chromium/test_expectations.txt:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@64754 268f45cc-cd09-0410-ab3c-d52691b4dbfc

9 years ago2010-08-05 François Sausset <sausset@gmail.com>
commit-queue@webkit.org [Thu, 5 Aug 2010 15:33:36 +0000 (15:33 +0000)]
2010-08-05  François Sausset  <sausset@gmail.com>

        Reviewed by Kenneth Rohde Christiansen.

        Add test for basic values of the MathML mathvariant attribute
        https://bugs.webkit.org/show_bug.cgi?id=43481

        * mathml/presentation/attributes.xhtml:
        * platform/mac/mathml/presentation/attributes-expected.checksum:
        * platform/mac/mathml/presentation/attributes-expected.png:
        * platform/mac/mathml/presentation/attributes-expected.txt:
2010-08-05  François Sausset  <sausset@gmail.com>

        Reviewed by Kenneth Rohde Christiansen.

        Implement basic values of MathML mathvariant attribute
        https://bugs.webkit.org/show_bug.cgi?id=43481

        Test: mathml/presentation/attributes.xhtml

        * css/mathml.css:
        (math[mathvariant="normal"], mstyle[mathvariant="normal"], mo[mathvariant="normal"], mn[mathvariant="normal"], mi[mathvariant="normal"], mtext[mathvariant="normal"], mspace[mathvariant="normal"], ms[mathvariant="normal"]):
        (math[mathvariant="bold"], mstyle[mathvariant="bold"], mo[mathvariant="bold"], mn[mathvariant="bold"], mi[mathvariant="bold"], mtext[mathvariant="bold"], mspace[mathvariant="bold"], ms[mathvariant="bold"]):
        (math[mathvariant="italic"], mstyle[mathvariant="italic"], mo[mathvariant="italic"], mn[mathvariant="italic"], mi[mathvariant="italic"], mtext[mathvariant="italic"], mspace[mathvariant="italic"], ms[mathvariant="italic"]):
        (math[mathvariant="bold-italic"], mstyle[mathvariant="bold-italic"], mo[mathvariant="bold-italic"], mn[mathvariant="bold-italic"], mi[mathvariant="bold-italic"], mtext[mathvariant="bold-italic"], mspace[mathvariant="bold-italic"], ms[mathvariant="bold-italic"]):
        * mathml/mathattrs.in:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@64753 268f45cc-cd09-0410-ab3c-d52691b4dbfc

9 years ago2010-08-05 Xan Lopez <xlopez@igalia.com>
xan@webkit.org [Thu, 5 Aug 2010 15:29:13 +0000 (15:29 +0000)]
2010-08-05  Xan Lopez  <xlopez@igalia.com>

        Reviewed by Gustavo Noronha.

        [GTK] Use correct path for Inspector data files in GTK+3.x builds
        https://bugs.webkit.org/show_bug.cgi?id=43445

        Use the right data path for inspector files when building with
        GTK+ 3.x.

        * WebCoreSupport/InspectorClientGtk.cpp:
        (WebKit::InspectorClient::openInspectorFrontend):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@64752 268f45cc-cd09-0410-ab3c-d52691b4dbfc