WebKit-https.git
10 years ago2010-09-03 Mihai Parparita <mihaip@chromium.org>
commit-queue@webkit.org [Fri, 3 Sep 2010 16:56:05 +0000 (16:56 +0000)]
2010-09-03  Mihai Parparita  <mihaip@chromium.org>

        Reviewed by Tony Chang.

        play-state.html and suspend-resume-animaton.html now pass on Chromium
        https://bugs.webkit.org/show_bug.cgi?id=45158

        Two animation tests now pass reliably with both test_shell and Chromium
        DRT due to r66641 and http://crrev.com/58369.

        * platform/chromium/drt_expectations.txt:
        * platform/chromium/test_expectations.txt:

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

10 years ago[GTK] compilation issue with JSTimeRanges when video turned off
jchaffraix@webkit.org [Fri, 3 Sep 2010 16:15:55 +0000 (16:15 +0000)]
[GTK] compilation issue with JSTimeRanges when video turned off
https://bugs.webkit.org/show_bug.cgi?id=44249

Patch by Zaheer Ahmad <zaheer.mot@gmail.com> on 2010-09-03
Reviewed by Darin Adler.

Move the JSTimeRanges outside ENABLE_VIDEO in GNUMakefile.am
* WebCore/GNUMakefile.am

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

10 years ago2010-09-03 Andrey Kosyakov <caseq@chromium.org>
caseq@chromium.org [Fri, 3 Sep 2010 16:00:02 +0000 (16:00 +0000)]
2010-09-03  Andrey Kosyakov  <caseq@chromium.org>

        Reviewed by Yury Semikhatsky.

        http/tests/inspector/console-xhr-logging.html and http/tests/inspector/resource-har-conversion.html are failing on chromium win bot
        Changed MIME type for .js to application/x-javascript for consistency with apache used on other platforms.
        https://bugs.webkit.org/show_bug.cgi?id=45137

        * Scripts/webkitpy/layout_tests/port/lighttpd.conf:

2010-09-03  Andrey Kosyakov  <caseq@chromium.org>

        Reviewed by Yury Semikhatsky.

        http/tests/inspector/console-xhr-logging.html and http/tests/inspector/resource-har-conversion.html are failing on chromium win bot
        Use CGI as target for POST request to prevent HTTP 405 on certain platforms.
        Changed MIME type for .js to application/x-javascript in lighttpd.conf for
        consistency with apache used on other platforms.
        https://bugs.webkit.org/show_bug.cgi?id=45137

        * http/tests/inspector/console-xhr-logging-expected.txt:
        * http/tests/inspector/console-xhr-logging.html:
        * http/tests/inspector/resource-har-conversion-expected.txt:
        * http/tests/inspector/resource-har-conversion.html:
        * http/tests/inspector/resource-parameters-expected.txt:
        * http/tests/inspector/resource-parameters.html:
        * http/tests/inspector/resources/post-target.cgi: Added.
        * platform/chromium-win/http/tests/inspector/resource-parameters-expected.txt: Removed.
        * platform/chromium/test_expectations.txt:
        * platform/win/http/tests/inspector/console-xhr-logging-expected.txt: Removed.
        * platform/win/http/tests/inspector/resource-parameters-expected.txt: Removed.

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

10 years ago2010-09-03 Lucas De Marchi <lucas.demarchi@profusion.mobi>
commit-queue@webkit.org [Fri, 3 Sep 2010 15:56:02 +0000 (15:56 +0000)]
2010-09-03  Lucas De Marchi  <lucas.demarchi@profusion.mobi>

        Reviewed by Antonio Gomes.

        [EFL] Install default theme
        https://bugs.webkit.org/show_bug.cgi?id=45154

        Since a theme is needed in order to create a new browser, install the
        default one to serve as example and fall-back.

        * CMakeListsEfl.txt:

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

10 years agohttps://bugs.webkit.org/show_bug.cgi?id=45175
sullivan@apple.com [Fri, 3 Sep 2010 15:29:50 +0000 (15:29 +0000)]
https://bugs.webkit.org/show_bug.cgi?id=45175
[WebView unmarkAllTextMatches] will crash if the webview is already closed

Reviewed by Dan Bernstein.

Made this and related methods robust against being called when the WebView is closed.

* WebView/WebView.mm:
(-[WebView markAllMatchesForText:caseSensitive:highlight:limit:]):
Bail out if the WebView is closed.
(-[WebView countMatchesForText:caseSensitive:highlight:limit:markMatches:]):
Ditto.
(-[WebView unmarkAllTextMatches]):
Ditto.
(-[WebView rectsForTextMatches]):
Ditto.

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

10 years ago2010-09-03 Ilya Tikhonovsky <loislo@chromium.org>
loislo@chromium.org [Fri, 3 Sep 2010 15:17:17 +0000 (15:17 +0000)]
2010-09-03  Ilya Tikhonovsky  <loislo@chromium.org>

        Reviewed by Yury Semikhatsky.

        Web Inspector: cleanup inspector api. getChildNodes should return array of child nodes as an output value.

        The current implementation of the inspector api has some unnecessary complexity.
        As example WebInspector is requesting child nodes of a node by getChildNodes
        but DOM agent is actually pushing the child nodes via setChildNodes event call and
        send back an empty response message.

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

        * inspector/CodeGeneratorInspector.pm:
        * inspector/Inspector.idl:
        * inspector/InspectorDOMAgent.cpp:
        (WebCore::InspectorDOMAgent::getChildNodesArray):
        (WebCore::InspectorDOMAgent::pushChildNodesToFrontend):
        (WebCore::InspectorDOMAgent::getChildNodes):
        * inspector/InspectorDOMAgent.h:
        * inspector/front-end/DOMAgent.js:
        (WebInspector.DOMAgent.prototype.getChildNodesAsync.mycallback):
        (WebInspector.DOMAgent.prototype.getChildNodesAsync):
        * inspector/front-end/WorkersSidebarPane.js:
        (WebInspector.WorkersSidebarPane.prototype.reset):

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

10 years ago2010-09-03 Nikolas Zimmermann <nzimmermann@rim.com>
zimmermann@webkit.org [Fri, 3 Sep 2010 14:26:28 +0000 (14:26 +0000)]
2010-09-03  Nikolas Zimmermann  <nzimmermann@rim.com>

        Reviewed by Dirk Schulze.

        SVG atlas map slider doesn't work properly
        https://bugs.webkit.org/show_bug.cgi?id=45107

        SVG 1.1 2nd edition relaxes hit testing rules. The outermost <svg> should react
        to mouse events, in standalone and compound documents, if the mouse location is
        within the intrinsic boundaries of the <svg> element.

        Tests: svg/custom/mouse-move-on-svg-container-standalone.svg
               svg/custom/mouse-move-on-svg-container.xhtml
               svg/custom/mouse-move-on-svg-root-standalone.svg
               svg/custom/mouse-move-on-svg-root.xhtml

        * rendering/RenderSVGRoot.cpp:
        (WebCore::RenderSVGRoot::nodeAtPoint):

2010-09-03  Nikolas Zimmermann  <nzimmermann@rim.com>

        Reviewed by Dirk Schulze.

        SVG atlas map slider doesn't work properly
        https://bugs.webkit.org/show_bug.cgi?id=45107

        * platform/mac/svg/custom/mouse-move-on-svg-container-expected.checksum: Added.
        * platform/mac/svg/custom/mouse-move-on-svg-container-expected.png: Added.
        * platform/mac/svg/custom/mouse-move-on-svg-container-expected.txt: Added.
        * platform/mac/svg/custom/mouse-move-on-svg-container-standalone-expected.checksum: Added.
        * platform/mac/svg/custom/mouse-move-on-svg-container-standalone-expected.png: Added.
        * platform/mac/svg/custom/mouse-move-on-svg-container-standalone-expected.txt: Added.
        * platform/mac/svg/custom/mouse-move-on-svg-root-expected.checksum: Added.
        * platform/mac/svg/custom/mouse-move-on-svg-root-expected.png: Added.
        * platform/mac/svg/custom/mouse-move-on-svg-root-expected.txt: Added.
        * platform/mac/svg/custom/mouse-move-on-svg-root-standalone-expected.checksum: Added.
        * platform/mac/svg/custom/mouse-move-on-svg-root-standalone-expected.png: Added.
        * platform/mac/svg/custom/mouse-move-on-svg-root-standalone-expected.txt: Added.
        * svg/custom/mouse-move-on-svg-container-standalone.svg: Added.
        * svg/custom/mouse-move-on-svg-container.xhtml: Added.
        * svg/custom/mouse-move-on-svg-root-standalone.svg: Added.
        * svg/custom/mouse-move-on-svg-root.xhtml: Added.

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

10 years ago2010-09-03 Pavel Podivilov <podivilov@chromium.org>
commit-queue@webkit.org [Fri, 3 Sep 2010 14:01:33 +0000 (14:01 +0000)]
2010-09-03  Pavel Podivilov  <podivilov@chromium.org>

        Reviewed by Yury Semikhatsky.

        Web Inspector: provide more information to front-end when breaking on DOM event
        https://bugs.webkit.org/show_bug.cgi?id=44679

        * http/tests/inspector/debugger-test2.js:
        (initialize_DebuggerTest.InspectorTest._pausedScript):
2010-09-03  Pavel Podivilov  <podivilov@chromium.org>

        Reviewed by Yury Semikhatsky.

        Web Inspector: provide more information to front-end when breaking on DOM event
        https://bugs.webkit.org/show_bug.cgi?id=44679

        * dom/ContainerNode.cpp:
        (WebCore::ContainerNode::insertBefore):
        (WebCore::ContainerNode::parserInsertBefore):
        (WebCore::ContainerNode::replaceChild):
        (WebCore::ContainerNode::appendChild):
        (WebCore::ContainerNode::parserAddChild):
        (WebCore::notifyChildInserted):
        (WebCore::dispatchChildRemovalEvents):
        * dom/Element.cpp:
        (WebCore::Element::setAttribute):
        (WebCore::Element::removeAttribute):
        * inspector/Inspector.idl:
        * inspector/InspectorController.cpp:
        (WebCore::InspectorController::willInsertDOMNodeImpl):
        (WebCore::InspectorController::didInsertDOMNodeImpl):
        (WebCore::InspectorController::willRemoveDOMNodeImpl):
        (WebCore::InspectorController::didRemoveDOMNodeImpl):
        (WebCore::InspectorController::willModifyDOMAttrImpl):
        (WebCore::InspectorController::didModifyDOMAttrImpl):
        * inspector/InspectorController.h:
        (WebCore::InspectorController::willInsertDOMNode):
        (WebCore::InspectorController::didInsertDOMNode):
        (WebCore::InspectorController::willRemoveDOMNode):
        (WebCore::InspectorController::willModifyDOMAttr):
        (WebCore::InspectorController::didModifyDOMAttr):
        (WebCore::InspectorController::inspectorControllerForNode):
        * inspector/InspectorDOMAgent.cpp:
        (WebCore::InspectorDOMAgent::~InspectorDOMAgent):
        (WebCore::InspectorDOMAgent::shouldBreakOnNodeInsertion):
        (WebCore::InspectorDOMAgent::shouldBreakOnNodeRemoval):
        (WebCore::InspectorDOMAgent::shouldBreakOnAttributeModification):
        (WebCore::InspectorDOMAgent::didInsertDOMNode):
        (WebCore::InspectorDOMAgent::didRemoveDOMNode):
        (WebCore::InspectorDOMAgent::didModifyDOMAttr):
        (WebCore::InspectorDOMAgent::createBreakpoint):
        * inspector/InspectorDOMAgent.h:
        * inspector/InspectorDebuggerAgent.cpp:
        (WebCore::InspectorDebuggerAgent::InspectorDebuggerAgent):
        (WebCore::InspectorDebuggerAgent::~InspectorDebuggerAgent):
        (WebCore::InspectorDebuggerAgent::didPause):
        (WebCore::InspectorDebuggerAgent::breakProgram):
        * inspector/InspectorDebuggerAgent.h:
        * inspector/InspectorValues.h:
        (WebCore::InspectorValue::isNull):
        * inspector/front-end/BreakpointsSidebarPane.js:
        (WebInspector.BreakpointItem):
        (WebInspector.BreakpointItem.prototype._enableChanged):
        * inspector/front-end/Script.js:
        (WebInspector.Script.prototype.get linesCount):
        * inspector/front-end/inspector.js:
        (WebInspector.pausedScript):

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

10 years ago2010-09-03 Csaba Osztrogonác <ossy@webkit.org>
ossy@webkit.org [Fri, 3 Sep 2010 13:57:09 +0000 (13:57 +0000)]
2010-09-03  Csaba Osztrogonác  <ossy@webkit.org>

        Reviewed by Simon Hausmann.

        Fix warning in wtf/ByteArray.h
        https://bugs.webkit.org/show_bug.cgi?id=44672

        * wtf/ByteArray.h: Use maximal sized array for MSVC and unsized array for other compilers.

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

10 years ago2010-09-03 Jeremy Orlow <jorlow@chromium.org>
jorlow@chromium.org [Fri, 3 Sep 2010 13:15:28 +0000 (13:15 +0000)]
2010-09-03  Jeremy Orlow  <jorlow@chromium.org>

        Reviewed by Steve Block.

        Fix and beef up IndexedDB layout test
        https://bugs.webkit.org/show_bug.cgi?id=45035

        Implement some fixmes and such.

        * storage/indexeddb/database-basics-expected.txt:
        * storage/indexeddb/script-tests/database-basics.js:
        (openSuccess):
        (setVersionAgain):
        (createObjectStore):
        (checkObjectStore):

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

10 years ago2010-09-03 Gabor Rapcsanyi <rgabor@inf.u-szeged.hu>
abecsi@webkit.org [Fri, 3 Sep 2010 13:00:56 +0000 (13:00 +0000)]
2010-09-03  Gabor Rapcsanyi  <rgabor@inf.u-szeged.hu>

        Reviewed by Eric Seidel.

        Add feature detection support to NRWT.
        https://bugs.webkit.org/show_bug.cgi?id=41842

        * Scripts/webkitpy/layout_tests/port/base.py:
        * Scripts/webkitpy/layout_tests/port/qt.py:
        * Scripts/webkitpy/layout_tests/port/webkit.py:
        * Scripts/webkitpy/layout_tests/port/webkit_unittest.py: Added.

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

10 years ago2010-08-31 Jeremy Orlow <jorlow@chromium.org>
jorlow@chromium.org [Fri, 3 Sep 2010 12:53:44 +0000 (12:53 +0000)]
2010-08-31  Jeremy Orlow  <jorlow@chromium.org>

        Reviewed by Steve Block.

        IDBCursor.continue() should reuse the .openCursor's IDBRequest object
        https://bugs.webkit.org/show_bug.cgi?id=44953

        * storage/indexeddb/objectstore-cursor.html:
2010-08-31  Jeremy Orlow  <jorlow@chromium.org>

        Reviewed by Steve Block.

        IDBCursor.continue() should reuse the .openCursor's IDBRequest object
        https://bugs.webkit.org/show_bug.cgi?id=44953

        This is to match the spec. This requires a modification to IDBRequest so
        that multiple events can be queued up.

        Note that the initial state for IDBRequest was removed from the spec.

        Test: modified existing test to verify new behavior.

        * storage/IDBAny.cpp:
        (WebCore::IDBAny::createInvalid):
        (WebCore::IDBAny::createNull):
        (WebCore::IDBAny::setNull):
        * storage/IDBAny.h:
        (WebCore::IDBAny::create):
        * storage/IDBCursor.cpp:
        (WebCore::IDBCursor::IDBCursor):
        (WebCore::IDBCursor::continueFunction):
        * storage/IDBCursor.h:
        (WebCore::IDBCursor::create):
        * storage/IDBCursor.idl:
        * storage/IDBRequest.cpp:
        (WebCore::IDBRequest::IDBRequest):
        (WebCore::IDBRequest::~IDBRequest):
        (WebCore::IDBRequest::resetReadyState):
        (WebCore::IDBRequest::onError):
        (WebCore::IDBRequest::onSuccess):
        (WebCore::IDBRequest::abort):
        (WebCore::IDBRequest::timerFired):
        (WebCore::IDBRequest::scheduleEvent):
        * storage/IDBRequest.h:
        * storage/IDBRequest.idl:
2010-08-31  Jeremy Orlow  <jorlow@chromium.org>

        Reviewed by Steve Block.

        IDBCursor.continue() should reuse the .openCursor's IDBRequest object
        https://bugs.webkit.org/show_bug.cgi?id=44953

        * src/WebIDBCallbacksImpl.cpp:
        (WebCore::WebIDBCallbacksImpl::onError):
        (WebCore::WebIDBCallbacksImpl::onSuccess):

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

10 years ago2010-09-03 Xan Lopez <xlopez@igalia.com>
xan@webkit.org [Fri, 3 Sep 2010 12:42:47 +0000 (12:42 +0000)]
2010-09-03  Xan Lopez  <xlopez@igalia.com>

        Reviewed by Gustavo Noronha.

        Dialog separators are gone in GTK+ 3.x.

        * webkit/webkitsoupauthdialog.c:
        (show_auth_dialog):

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

10 years ago2010-09-03 Anton Muhin <antonm@chromium.org>
antonm@chromium.org [Fri, 3 Sep 2010 12:39:34 +0000 (12:39 +0000)]
2010-09-03  Anton Muhin  <antonm@chromium.org>

        Unreviewed fix, updating Chromium's exectations.

        * platform/chromium-linux/plugins/embed-attributes-style-expected.checksum:
        * platform/chromium-linux/plugins/embed-attributes-style-expected.png:

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

10 years ago2010-09-03 Bharathwaaj Srinivasan <bharathwaaj.s@gmail.com>
commit-queue@webkit.org [Fri, 3 Sep 2010 12:12:54 +0000 (12:12 +0000)]
2010-09-03  Bharathwaaj Srinivasan  <bharathwaaj.s@gmail.com>

        Reviewed by Xan Lopez.

        Initialize keyboard events before passing plugins.
        https://bugs.webkit.org/show_bug.cgi?id=44771

        No new tests needed since this is a trivial fix.

        * plugins/gtk/PluginViewGtk.cpp:
        (WebCore::PluginView::handleKeyboardEvent):

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

10 years ago2010-09-03 Yury Semikhatsky <yurys@chromium.org>
yurys@chromium.org [Fri, 3 Sep 2010 11:48:34 +0000 (11:48 +0000)]
2010-09-03  Yury Semikhatsky  <yurys@chromium.org>

        Unreviewed. Fix Qt compilation.

        * html/HTMLEmbedElement.cpp:
        (WebCore::HTMLEmbedElement::parametersForPlugin):

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

10 years ago2010-09-03 Hironori Bono <hbono@chromium.org>
commit-queue@webkit.org [Fri, 3 Sep 2010 10:36:04 +0000 (10:36 +0000)]
2010-09-03  Hironori Bono  <hbono@chromium.org>

        Reviewed by Kent Tamura.

        Adds textInputController.hasSpellingMarker() to avoid using pixel tests for spellchecking tests
        and implements it for Mac.
        https://bugs.webkit.org/show_bug.cgi?id=41832

        * editing/spelling/spelling-contenteditable-expected.txt: Added the expected result for
        spelling-contenteditable.html.
        * editing/spelling/spelling-contenteditable.html: Added a text test of spellcheker APIs
        for contenteditable <div> elements.
        * editing/spelling/spelling-textarea-expected.txt: Added the expected result for spelling-textarea.html.
        * editing/spelling/spelling-textarea.html: Added a text test of spellchecker APIs
        for <textarea> elements.
        * platform/chromium/test_expectations.txt: Skipped the new tests because
        textInputController.hasSpelingMarker() is not implemented.
        * platform/gtk/Skipped: ditto.
        * platform/qt/Skipped: ditto.
        * platform/win/Skipped: ditto.
2010-09-03  Hironori Bono  <hbono@chromium.org>

        Reviewed by Kent Tamura.

        Adds textInputController.hasSpellingMarker() to avoid using pixel tests for spellchecking tests
        and implements it for Mac.
        https://bugs.webkit.org/show_bug.cgi?id=41832

        Tests: editing/spelling/spelling-contenteditable.html
               editing/spelling/spelling-textarea.html

        * WebCore.exp.in: Exported symbols used by [WebFrame hasSpellingMarker:length:].
2010-09-03  Hironori Bono  <hbono@chromium.org>

        Reviewed by Kent Tamura.

        Adds textInputController.hasSpellingMarker() to avoid using pixel tests for spellchecking tests
        and implements it for Mac.
        https://bugs.webkit.org/show_bug.cgi?id=41832

        * WebView/WebFrame.mm: Implemented [WebFrame hasSpellingMarker:length:].
        (spellingNode):
        (-[WebFrame hasSpellingMarker:length:]):
        * WebView/WebFramePrivate.h: Added [WebFrame hasSpellingMarker:length:] so TextInputController can use it.
2010-09-03  Hironori Bono  <hbono@chromium.org>

        Reviewed by Kent Tamura.

        Adds textInputController.hasSpellingMarker() to avoid using pixel tests for spellchecking tests
        and implements it for Mac.
        https://bugs.webkit.org/show_bug.cgi?id=41832

        * DumpRenderTree/mac/TextInputController.m: Added [TextInputController hasSpellingMarker:length:]
        and bind it so we can call it from JavaScript.
        (+[TextInputController isSelectorExcludedFromWebScript:]):
        (+[TextInputController webScriptNameForSelector:]):
        (-[TextInputController hasSpellingMarker:length:]):

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

10 years ago2010-09-02 Yury Semikhatsky <yurys@chromium.org>
yurys@chromium.org [Fri, 3 Sep 2010 10:09:25 +0000 (10:09 +0000)]
2010-09-02  Yury Semikhatsky  <yurys@chromium.org>

        Reviewed by Pavel Feldman.

        REGRESSION: Crash occurs at objc_msgSend when closing a window that is displaying the web inspector
        https://bugs.webkit.org/show_bug.cgi?id=44230

        * inspector/Inspector.idl:
        * inspector/InspectorController.cpp:
        (WebCore::InspectorController::inspectedPageDestroyed):
        (WebCore::InspectorController::close):
        * inspector/InspectorFrontendClient.h:
        * inspector/InspectorFrontendHost.cpp:
        (WebCore::InspectorFrontendHost::disconnectFromBackend): don't try to notify InspectorController
        that frontend closes if InspectorController triggered the action.
        * inspector/InspectorFrontendHost.h:
        * inspector/InspectorFrontendHost.idl:
        * inspector/front-end/InspectorFrontendHostStub.js:
        (.WebInspector.InspectorFrontendHostStub.prototype.disconnectFromBackend):
        * inspector/front-end/inspector.js:
        (WebInspector.disconnectFromBackend):

2010-09-02  Yury Semikhatsky  <yurys@chromium.org>

        Reviewed by Pavel Feldman.

        REGRESSION: Crash occurs at objc_msgSend when closing a window that is displaying the web inspector
        https://bugs.webkit.org/show_bug.cgi?id=44230

        * WebCoreSupport/WebInspectorClient.h:
        * WebCoreSupport/WebInspectorClient.mm:
        (WebInspectorFrontendClient::closeWindow):
        (WebInspectorFrontendClient::disconnectFromBackend):
        (-[WebInspectorWindowController windowShouldClose:]):
        (-[WebInspectorWindowController destroyInspectorView:]):

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

10 years agoPassing a 32-bit depth X pixmap to NPAPI windowless plugins is too inefficient.
girish@forwardbias.in [Fri, 3 Sep 2010 09:50:27 +0000 (09:50 +0000)]
Passing a 32-bit depth X pixmap to NPAPI windowless plugins is too inefficient.
Instead, pass a X Pixmap that has same depth as the screen depth since graphics
operations are optimized for this depth.

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

Reviewed by Simon Hausmann.

* plugins/PluginPackage.cpp:
(WebCore::PluginPackage::determineQuirks):

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

10 years ago2010-09-03 Philippe Normand <pnormand@igalia.com>
philn@webkit.org [Fri, 3 Sep 2010 07:44:58 +0000 (07:44 +0000)]
2010-09-03  Philippe Normand  <pnormand@igalia.com>

        Unreviewed, updated GTK baselines of a mathml test.

        Use correct minus glyphs in MathML operators
        https://bugs.webkit.org/show_bug.cgi?id=43629

        * platform/gtk/mathml/presentation/mo-expected.txt:

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

10 years ago2010-09-02 Kwang Yul Seo <skyul@company100.net>
commit-queue@webkit.org [Fri, 3 Sep 2010 07:03:00 +0000 (07:03 +0000)]
2010-09-02  Kwang Yul Seo  <skyul@company100.net>

        Reviewed by Kent Tamura.

        Add ENABLE(DATABASE) guard to DatabaseAuthorizer.cpp
        https://bugs.webkit.org/show_bug.cgi?id=45152

        DatabaseAuthorizer is used only with ENABLE(DATABASE).

        * storage/DatabaseAuthorizer.cpp:

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

10 years ago2010-09-02 Lucas De Marchi <lucas.demarchi@profusion.mobi>
commit-queue@webkit.org [Fri, 3 Sep 2010 06:20:11 +0000 (06:20 +0000)]
2010-09-02  Lucas De Marchi  <lucas.demarchi@profusion.mobi>

        Reviewed by Antonio Gomes.

        [EFL] Name install directories according to library name
        https://bugs.webkit.org/show_bug.cgi?id=45126

        * cmake/OptionsEfl.cmake: Use library name in order to define the data
        directory.
2010-09-02  Lucas De Marchi  <lucas.demarchi@profusion.mobi>

        Reviewed by Antonio Gomes.

        [EFL] Name install directories according to library name
        https://bugs.webkit.org/show_bug.cgi?id=45126

        * CMakeListsEfl.txt: include diretory follows library name.
        * ewebkit.pc.in: Ditto.

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

10 years ago2010-09-02 Lucas De Marchi <lucas.demarchi@profusion.mobi>
commit-queue@webkit.org [Fri, 3 Sep 2010 06:03:38 +0000 (06:03 +0000)]
2010-09-02  Lucas De Marchi  <lucas.demarchi@profusion.mobi>

        Reviewed by Antonio Gomes.

        [EFL] Do not override custom compile flags
        https://bugs.webkit.org/show_bug.cgi?id=45125

        Set a default build type if and only if user did not define one as
        command line options and he did not give custom CFLAGS or CXXFLAGS.
        Otherwise, flags from default build type would override user-defined
        ones.

        * CMakeLists.txt:

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

10 years ago2010-09-02 Lucas De Marchi <lucas.demarchi@profusion.mobi>
commit-queue@webkit.org [Fri, 3 Sep 2010 05:41:27 +0000 (05:41 +0000)]
2010-09-02  Lucas De Marchi  <lucas.demarchi@profusion.mobi>

        Reviewed by Antonio Gomes.

        [EFL] Fix double addition of -fPIC
        https://bugs.webkit.org/show_bug.cgi?id=45122

         When SHARED_CORE=ON, -fPIC is automatically added because all
         libraries are dynamic. Only when static libraries are built that
         -fPIC needs to be manually inserted (because the final library,
         libewebkit.so, is dynamic).

        * cmake/OptionsCommon.cmake: Remove -fPIC flag.
        * cmake/WebKitHelpers.cmake: Add -fPIC flags iff SHARED_CORE=ON.

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

10 years ago2010-09-02 Satish Sampath <satish@chromium.org>
satish@chromium.org [Fri, 3 Sep 2010 05:22:07 +0000 (05:22 +0000)]
2010-09-02  Satish Sampath  <satish@chromium.org>

        Reviewed by Jeremy Orlow.

        Remove obsolete public/API methods in chromium port
        https://bugs.webkit.org/show_bug.cgi?id=45108

        * public/WebSpeechInputController.h:
        (WebKit::WebSpeechInputController::startRecognition):

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

10 years ago2010-09-02 Pavel Podivilov <podivilov@chromium.org>
commit-queue@webkit.org [Fri, 3 Sep 2010 05:05:44 +0000 (05:05 +0000)]
2010-09-02  Pavel Podivilov  <podivilov@chromium.org>

        Reviewed by Yury Semikhatsky.

        Web Inspector: add page reload test to dom-breakpoints.html
        https://bugs.webkit.org/show_bug.cgi?id=44837

        * inspector/dom-breakpoints-expected.txt:
        * inspector/dom-breakpoints.html:
2010-09-02  Pavel Podivilov  <podivilov@chromium.org>

        Reviewed by Yury Semikhatsky.

        Web Inspector: persist DOM breakpoints between page reloads
        https://bugs.webkit.org/show_bug.cgi?id=44837

        * inspector/front-end/BreakpointsSidebarPane.js:
        (WebInspector.DOMBreakpointItem):
        * inspector/front-end/DOMAgent.js:
        (WebInspector.DOMNode.prototype.path):
        (WebInspector.DOMNode.prototype.setBreakpoint):
        (WebInspector.DOMNode.prototype.hasBreakpoint):
        (WebInspector.DOMNode.prototype.removeBreakpoint):
        (WebInspector.DOMNode.prototype.removeBreakpoints):
        (WebInspector.DOMAgent.prototype._setDocument):
        (WebInspector.DOMAgent.prototype._childNodeRemoved):
        (WebInspector.DOMAgent.prototype._removeBreakpoints):
        (WebInspector.DOMBreakpointManager):
        (WebInspector.DOMBreakpointManager.prototype.setBreakpoint):
        (WebInspector.DOMBreakpointManager.prototype.removeBreakpointsForNode):
        (WebInspector.DOMBreakpointManager.prototype._breakpointRemoved):
        (WebInspector.DOMBreakpointManager.prototype.restoreBreakpoints.restoreBreakpointsForNode):
        (WebInspector.DOMBreakpointManager.prototype.restoreBreakpoints):
        (WebInspector.DOMBreakpoint):
        (WebInspector.DOMBreakpoint.prototype.get nodeId):
        (WebInspector.DOMBreakpoint.prototype.get type):
        (WebInspector.DOMBreakpoint.prototype.set enabled):
        (WebInspector.DOMBreakpoint.prototype.remove):
        * inspector/front-end/ElementsPanel.js:
        (WebInspector.ElementsPanel.prototype.reset):
        (WebInspector.ElementsPanel.prototype.setDocument):
        * inspector/front-end/ElementsTreeOutline.js:
        (WebInspector.ElementsTreeElement.prototype._populateTagContextMenu):
        * inspector/front-end/SourceFrame.js:
        (WebInspector.SourceFrame.prototype._showPopup.showObjectPopup):

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

10 years ago2010-09-02 Eric Seidel <eric@webkit.org>
eric@webkit.org [Fri, 3 Sep 2010 04:49:14 +0000 (04:49 +0000)]
2010-09-02  Eric Seidel  <eric@webkit.org>

        Reviewed by Dimitri Glazkov.

        Move updateWidget into FrameView from RenderEmbeddedObject
        https://bugs.webkit.org/show_bug.cgi?id=45065

        I also made updateWidget() virtual on HTMLPlugInImageElement.
        I'm not yet sure that updateWidget belongs on HTMLElement since
        I'm not sure that HTMLMediaElement's use of the updateWidget
        infrastructure is correct.

        I also got rid of the strange !m_replacementText.isEmpty() checks
        by making a pluginCrashedOrWasMissing() call which seems to embody
        the idea behind that check and hides the screwy details.

        I noticed a couple methods on HTMLPlugInImageElement were public
        which did not need to be.  Fixed.

        No functional change, thus no tests.

        * html/HTMLEmbedElement.h:
        * html/HTMLObjectElement.h:
        * html/HTMLPlugInImageElement.cpp:
        (WebCore::HTMLPlugInImageElement::updateWidgetIfNecessary):
        * html/HTMLPlugInImageElement.h:
        (WebCore::HTMLPlugInImageElement::serviceType):
        (WebCore::HTMLPlugInImageElement::url):
        * page/FrameView.cpp:
        (WebCore::FrameView::updateWidget):
        (WebCore::FrameView::updateWidgets):
        * page/FrameView.h:
        * rendering/RenderEmbeddedObject.cpp:
        (WebCore::RenderEmbeddedObject::pluginCrashedOrWasMissing):
        (WebCore::RenderEmbeddedObject::paint):
        (WebCore::RenderEmbeddedObject::paintReplaced):
        * rendering/RenderEmbeddedObject.h:

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

10 years ago2010-09-02 Eric Seidel <eric@webkit.org>
eric@webkit.org [Fri, 3 Sep 2010 04:28:12 +0000 (04:28 +0000)]
2010-09-02  Eric Seidel  <eric@webkit.org>

        Reviewed by Dimitri Glazkov.

        Move updateWidget implementations into the DOM
        https://bugs.webkit.org/show_bug.cgi?id=45058

        Unfortunately it's not yet possible to share an updateWidget
        implementation between <embed> and <object>.  That would amount to
        (positive) functional changes for <embed> which I'd will separate
        into a later patch.  I will also have to untangle <object>'s <param>
        walk from its url/serviceType calculations.

        However after this patch it's slap-you-across-the-face obvious that
        RenderEmbeddedObject::updateWidget was the wrong place for this code.
        RenderEmbeddedObject::updateWidget still exists, but only as a
        pseudo-virtual-method dispatcher.  Unless we add updateWidget() to
        HTMLElement, we won't be able to use real virtual dispatch.

        I may need to consider making "having a widget" a has-a relationship
        with some sort of WidgetContainer object which Media and Plugin can
        share.  Or its also possible that Media's use of the widget code here
        is just wrong.  Certainly now that updateWidget was moved into HTMLMediaElement
        it becomes obvious that HTMLMediaElement has duplicate code for updating widgets.

        No functional changes, thus no tests.

        * html/HTMLEmbedElement.cpp:
        (WebCore::HTMLEmbedElement::updateWidget):
        * html/HTMLEmbedElement.h:
        * html/HTMLMediaElement.cpp:
        (WebCore::HTMLMediaElement::updateWidget):
        * html/HTMLMediaElement.h:
        * html/HTMLObjectElement.cpp:
        (WebCore::HTMLObjectElement::updateWidget):
        * html/HTMLObjectElement.h:
        (WebCore::HTMLObjectElement::useFallbackContent):
        * html/HTMLPlugInImageElement.h:
        (WebCore::HTMLPlugInImageElement::needsWidgetUpdate):
        (WebCore::HTMLPlugInImageElement::setNeedsWidgetUpdate):
        * loader/FrameLoader.cpp:
        * rendering/RenderEmbeddedObject.cpp:
        (WebCore::RenderEmbeddedObject::updateWidget):

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

10 years ago2010-09-02 Eric Seidel <eric@webkit.org>
eric@webkit.org [Fri, 3 Sep 2010 04:04:29 +0000 (04:04 +0000)]
2010-09-02  Eric Seidel  <eric@webkit.org>

        Reviewed by Dimitri Glazkov.

        Move more code from RenderEmbeddedObject into the DOM
        https://bugs.webkit.org/show_bug.cgi?id=45055

        No logic changes here, just taking the code which
        I ripped out of RenderEmbeddedObject::updateWidget
        into static methods before and moving it into
        the applicable DOM classes.

        HTMLObjectElement::parametersForPlugin does too much
        but in order to fix it I may need to add a PluginParameters
        class so we can ask things about the parameters. <object>
        needs to get multiple bits of information out of its parameters
        array.  Right now it does it all in one walk.  In order to share
        code with HTMLEmbedElement, we need the "generate the params array"
        code to be separate from the "make advanced <object> specific decision
        from the params array".  But that will need to be in a later patch.

        No functional changes, thus no tests.

        * html/HTMLEmbedElement.cpp:
        (WebCore::HTMLEmbedElement::parametersForPlugin):
        * html/HTMLEmbedElement.h:
        * html/HTMLObjectElement.cpp:
        (WebCore::createClassIdToTypeMap):
        (WebCore::serviceTypeForClassId):
        (WebCore::mapDataParamToSrc):
        (WebCore::HTMLObjectElement::parametersForPlugin):
        (WebCore::HTMLObjectElement::hasFallbackContent):
        * html/HTMLObjectElement.h:
        * html/HTMLPlugInImageElement.cpp:
        (WebCore::HTMLPlugInImageElement::allowedToLoadFrameURL):
        (WebCore::HTMLPlugInImageElement::wouldLoadAsNetscapePlugin):
        (WebCore::HTMLPlugInImageElement::detach):
        (WebCore::HTMLPlugInImageElement::updateWidgetIfNecessary):
        (WebCore::HTMLPlugInImageElement::updateWidgetCallback):
        * html/HTMLPlugInImageElement.h:
        * rendering/RenderEmbeddedObject.cpp:
        (WebCore::updateWidgetForObjectElement):
        (WebCore::updateWidgetForEmbedElement):
        (WebCore::RenderEmbeddedObject::updateWidget):

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

10 years ago2010-09-02 François Sausset <sausset@gmail.com>
commit-queue@webkit.org [Fri, 3 Sep 2010 03:45:06 +0000 (03:45 +0000)]
2010-09-02  François Sausset  <sausset@gmail.com>

        Reviewed by Darin Adler.

        MathML mo element should render "hyphen-minus" as "minus sign" (Unicode glyph names).
        https://bugs.webkit.org/show_bug.cgi?id=43629

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

        Reviewed by Darin Adler.

        MathML mo element should render "hyphen-minus" as "minus sign" (Unicode glyph names).
        https://bugs.webkit.org/show_bug.cgi?id=43629

        Test: mathml/presentation/mo.xhtml

        * mathml/RenderMathMLOperator.cpp:
        (WebCore::RenderMathMLOperator::RenderMathMLOperator):
        (WebCore::RenderMathMLOperator::updateFromElement):
        * mathml/RenderMathMLOperator.h:
        (WebCore::convertHyphenMinusToMinusSign):
        * platform/text/CharacterNames.h:

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

10 years ago2010-09-02 Eric Seidel <eric@webkit.org>
eric@webkit.org [Fri, 3 Sep 2010 03:16:13 +0000 (03:16 +0000)]
2010-09-02  Eric Seidel  <eric@webkit.org>

        Reviewed by Adam Barth.

        Add a unit test for commit-queue retries
        https://bugs.webkit.org/show_bug.cgi?id=45162

        I think commit-queue retries are not correctly avoiding
        build and test on retries.  So I started testing the code.
        Unfortunately this test did not find the bug.  But now
        that we have the test we might as well keep it.
        I also fixed a broken import in validate-committer-lists.

        * Scripts/validate-committer-lists:
        * Scripts/webkitpy/tool/commands/queues_unittest.py:

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

10 years ago2010-09-02 Adam Barth <abarth@webkit.org>
abarth@webkit.org [Fri, 3 Sep 2010 02:16:58 +0000 (02:16 +0000)]
2010-09-02  Adam Barth  <abarth@webkit.org>

        Reviewed by Eric Seidel.

        Actually parse a URL from ParsedURL
        https://bugs.webkit.org/show_bug.cgi?id=45080

        This patch only handles standard URLs.  At some point we'll need to
        distinguish between standard URLs and other kinds of URLs.

        * wtf/url/api/ParsedURL.cpp:
        (WTF::ParsedURL::ParsedURL):

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

10 years ago2010-09-02 Kent Tamura <tkent@chromium.org>
tkent@chromium.org [Fri, 3 Sep 2010 02:11:37 +0000 (02:11 +0000)]
2010-09-02  Kent Tamura  <tkent@chromium.org>

        Unreviewed, test expectation update.

        * platform/chromium/drt_expectations.txt: Remove another duplicate.

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

10 years ago2010-09-02 Kenneth Russell <kbr@google.com>
kbr@google.com [Fri, 3 Sep 2010 02:10:37 +0000 (02:10 +0000)]
2010-09-02  Kenneth Russell  <kbr@google.com>

        Reviewed by Darin Fisher.

        Add red-black tree capable of holding plain old data (POD)
        https://bugs.webkit.org/show_bug.cgi?id=45059

        Adding an augmentable red-black tree capable of holding Plain Old
        Data (POD), or classes bottoming out into only POD, and an
        associated PODArena. Note that the PODArena will be used by other
        classes to allocate temporary structures, which is why it is not
        just an implementation detail of the red-black tree.

        These classes are being placed under WebCore/platform/graphics/gpu
        for the time being. If they are generalized to hold even data
        types which internally perform dynamic memory allocation, we may
        consider moving them to WTF in the future.

        Unit tests for the PODRedBlackTree will be integrated separately
        under bug 45060.

        * WebCore.gypi:
        * platform/graphics/gpu/PODArena.h: Added.
        (WebCore::PODArena::Allocator::~Allocator):
        (WebCore::PODArena::FastMallocAllocator::create):
        (WebCore::PODArena::FastMallocAllocator::allocate):
        (WebCore::PODArena::FastMallocAllocator::free):
        (WebCore::PODArena::FastMallocAllocator::FastMallocAllocator):
        (WebCore::PODArena::create):
        (WebCore::PODArena::allocateObject):
        (WebCore::PODArena::~PODArena):
        (WebCore::PODArena::PODArena):
        (WebCore::PODArena::minAlignment):
        (WebCore::PODArena::roundUp):
        (WebCore::PODArena::Chunk::Chunk):
        (WebCore::PODArena::Chunk::~Chunk):
        (WebCore::PODArena::Chunk::allocate):
        * platform/graphics/gpu/PODRedBlackTree.h: Added.
        (WebCore::PODRedBlackTree::Visitor::~Visitor):
        (WebCore::PODRedBlackTree::PODRedBlackTree):
        (WebCore::PODRedBlackTree::~PODRedBlackTree):
        (WebCore::PODRedBlackTree::add):
        (WebCore::PODRedBlackTree::remove):
        (WebCore::PODRedBlackTree::contains):
        (WebCore::PODRedBlackTree::visitInorder):
        (WebCore::PODRedBlackTree::size):
        (WebCore::PODRedBlackTree::setNeedsFullOrderingComparisons):
        (WebCore::PODRedBlackTree::checkInvariants):
        (WebCore::PODRedBlackTree::dump):
        (WebCore::PODRedBlackTree::setVerboseDebugging):
        (WebCore::PODRedBlackTree::Node::Node):
        (WebCore::PODRedBlackTree::Node::~Node):
        (WebCore::PODRedBlackTree::Node::color):
        (WebCore::PODRedBlackTree::Node::setColor):
        (WebCore::PODRedBlackTree::Node::data):
        (WebCore::PODRedBlackTree::Node::copyFrom):
        (WebCore::PODRedBlackTree::Node::left):
        (WebCore::PODRedBlackTree::Node::setLeft):
        (WebCore::PODRedBlackTree::Node::right):
        (WebCore::PODRedBlackTree::Node::setRight):
        (WebCore::PODRedBlackTree::Node::parent):
        (WebCore::PODRedBlackTree::Node::setParent):
        (WebCore::PODRedBlackTree::root):
        (WebCore::PODRedBlackTree::updateNode):
        (WebCore::PODRedBlackTree::treeSearch):
        (WebCore::PODRedBlackTree::treeSearchNormal):
        (WebCore::PODRedBlackTree::treeSearchFullComparisons):
        (WebCore::PODRedBlackTree::treeInsert):
        (WebCore::PODRedBlackTree::treeSuccessor):
        (WebCore::PODRedBlackTree::treeMinimum):
        (WebCore::PODRedBlackTree::propagateUpdates):
        (WebCore::PODRedBlackTree::leftRotate):
        (WebCore::PODRedBlackTree::rightRotate):
        (WebCore::PODRedBlackTree::insertNode):
        (WebCore::PODRedBlackTree::deleteFixup):
        (WebCore::PODRedBlackTree::deleteNode):
        (WebCore::PODRedBlackTree::visitInorderImpl):
        (WebCore::PODRedBlackTree::Counter::Counter):
        (WebCore::PODRedBlackTree::Counter::visit):
        (WebCore::PODRedBlackTree::Counter::count):
        (WebCore::PODRedBlackTree::checkInvariantsFromNode):
        (WebCore::PODRedBlackTree::logIfVerbose):
        (WebCore::PODRedBlackTree::dumpFromNode):

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

10 years ago2010-09-02 Adam Barth <abarth@webkit.org>
abarth@webkit.org [Fri, 3 Sep 2010 01:58:10 +0000 (01:58 +0000)]
2010-09-02  Adam Barth  <abarth@webkit.org>

        Reviewed by Eric Seidel.

        Add ParsedURL and URLString to WTFURL API
        https://bugs.webkit.org/show_bug.cgi?id=45078

        Currently there's no actual URL parsing going on, but this patch is a
        start to sketching out the API.

        * JavaScriptCore.xcodeproj/project.pbxproj:
        * wtf/url/api/ParsedURL.cpp: Added.
        (WTF::ParsedURL::ParsedURL):
        (WTF::ParsedURL::scheme):
        (WTF::ParsedURL::username):
        (WTF::ParsedURL::password):
        (WTF::ParsedURL::host):
        (WTF::ParsedURL::port):
        (WTF::ParsedURL::path):
        (WTF::ParsedURL::query):
        (WTF::ParsedURL::fragment):
        (WTF::ParsedURL::segment):
        * wtf/url/api/ParsedURL.h: Added.
        (WTF::ParsedURL::spec):
        * wtf/url/api/URLString.h: Added.
        (WTF::URLString::URLString):
        (WTF::URLString::string):

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

10 years ago2010-09-02 Kent Tamura <tkent@chromium.org>
tkent@chromium.org [Fri, 3 Sep 2010 01:53:57 +0000 (01:53 +0000)]
2010-09-02  Kent Tamura  <tkent@chromium.org>

        Unreviewed, test expectation update.

        * platform/chromium/drt_expectations.txt:
          Remove a duplicated entry I made in the prior commit.

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

10 years ago2010-09-02 Kent Tamura <tkent@chromium.org>
tkent@chromium.org [Fri, 3 Sep 2010 01:51:23 +0000 (01:51 +0000)]
2010-09-02  Kent Tamura  <tkent@chromium.org>

        Reviewed by Dimitri Glazkov.

        [DRT/Chromium] Remove dependency to base/task.h and base/timer.h
        https://bugs.webkit.org/show_bug.cgi?id=45091

        * DEPS: Roll Chromium revision to 58277 in order to have
        webkit_support::PostDelayedTask().
2010-09-02  Kent Tamura  <tkent@chromium.org>

        Reviewed by Dimitri Glazkov.

        [DRT/Chromium] Remove dependency to base/task.h and base/timer.h
        https://bugs.webkit.org/show_bug.cgi?id=45091

        Task.{cpp,h} introduces a simpler version of Chromium
        base/task.h. It doesn't have TupleN and Method.

        * DumpRenderTree/DumpRenderTree.gypi:
         Add Task.cpp and Task.h
        * DumpRenderTree/chromium/DRTDevToolsAgent.cpp:
        (DRTDevToolsAgent::DRTDevToolsAgent):
        (DRTDevToolsAgent::reset):
        (DRTDevToolsAgent::asyncCall):
        (DRTDevToolsAgent::frontendLoaded):
        * DumpRenderTree/chromium/DRTDevToolsAgent.h:
        (DRTDevToolsAgent::taskList): Added to use MethodTask<T>.
        * DumpRenderTree/chromium/DRTDevToolsClient.cpp:
        (DRTDevToolsClient::DRTDevToolsClient):
        (DRTDevToolsClient::~DRTDevToolsClient):
        (DRTDevToolsClient::reset):
        (DRTDevToolsClient::asyncCall):
        * DumpRenderTree/chromium/DRTDevToolsClient.h:
        (DRTDevToolsClient::taskList): Added to use MethodTask<T>.
        * DumpRenderTree/chromium/EventSender.cpp:
        (EventSender::EventSender):
        (EventSender::reset):
        (EventSender::scheduleAsynchronousClick):
        * DumpRenderTree/chromium/EventSender.h:
        (EventSender::taskList): Added to use MethodTask<T>.
        * DumpRenderTree/chromium/LayoutTestController.cpp:
        (LayoutTestController::LayoutTestController):
        (LayoutTestController::WorkQueue::processWorkSoon):
        (LayoutTestController::waitUntilDone):
        (LayoutTestController::notifyDone):
        (LayoutTestController::reset):
        * DumpRenderTree/chromium/LayoutTestController.h:
        (LayoutTestController::taskList): Added to use MethodTask<T>.
        (LayoutTestController::WorkQueue::taskList): Added to use MethodTask<T>.
        * DumpRenderTree/chromium/NotificationPresenter.cpp:
        (deferredDisplayDispatch):
        (NotificationPresenter::show):
        * DumpRenderTree/chromium/Task.cpp: Added.
        * DumpRenderTree/chromium/Task.h: Added.

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

10 years ago2010-09-02 Rafael Antognolli <antognolli@profusion.mobi>
commit-queue@webkit.org [Fri, 3 Sep 2010 01:38:51 +0000 (01:38 +0000)]
2010-09-02  Rafael Antognolli  <antognolli@profusion.mobi>

        Reviewed by Martin Robinson.

        [Cairo] Remove glib dependency (caused by use of GOwnPtr)
        https://bugs.webkit.org/show_bug.cgi?id=45053

        Use OwnPtr instead of GOwnPtr to keep track of Fc* references
        in FontCacheCairo.cpp.

        No features added, so no new tests.

        * CMakeListsEfl.txt: Updating build system to look for GOwnPtrCairo.*
        * GNUmakefile.am: Ditto.
        * platform/graphics/cairo/FontCacheCairo.cpp: Using OwnPtr instead of GOwnPtr.
        (WebCore::FontCache::createFontPlatformData):
        * platform/graphics/cairo/GOwnPtrCairo.cpp: Removed.
        * platform/graphics/cairo/GOwnPtrCairo.h: Removed.
        * platform/graphics/cairo/OwnPtrCairo.cpp: Added.
        (WTF::FcPattern):
        (WTF::FcObjectSet):
        (WTF::FcFontSet):
        * platform/graphics/cairo/OwnPtrCairo.h: Added.

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

10 years ago2010-09-02 Kent Tamura <tkent@chromium.org>
tkent@chromium.org [Fri, 3 Sep 2010 01:20:00 +0000 (01:20 +0000)]
2010-09-02  Kent Tamura  <tkent@chromium.org>

        Unreviewed, update test expectation.

        * platform/chromium/drt_expectations.txt:

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

10 years ago2010-09-02 Kinuko Yasuda <kinuko@chromium.org>
kinuko@chromium.org [Fri, 3 Sep 2010 01:08:21 +0000 (01:08 +0000)]
2010-09-02  Kinuko Yasuda  <kinuko@chromium.org>

        Unreviewed, updating binding-tests expectations (for changeset 66521).

        * bindings/scripts/test/V8/V8TestObj.cpp:
        (WebCore::TestObjInternal::stringAttrAttrSetter):
        (WebCore::TestObjInternal::reflectedStringAttrAttrSetter):
        (WebCore::TestObjInternal::reflectedURLAttrAttrSetter):
        (WebCore::TestObjInternal::reflectedNonEmptyURLAttrAttrSetter):
        (WebCore::TestObjInternal::reflectedCustomURLAttrAttrSetter):
        (WebCore::TestObjInternal::reflectedCustomNonEmptyURLAttrAttrSetter):
        (WebCore::TestObjInternal::stringAttrWithGetterExceptionAttrSetter):
        (WebCore::TestObjInternal::stringAttrWithSetterExceptionAttrSetter):

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

10 years ago2010-09-02 Zhenyao Mo <zmo@google.com>
zmo@google.com [Fri, 3 Sep 2010 00:55:59 +0000 (00:55 +0000)]
2010-09-02  Zhenyao Mo  <zmo@google.com>

        Unreviewed.

        Updateing chromium test_expectations for flaky http/tests/security/xssAuditor/dom-write-innerHTML.html.

        * platform/chromium/test_expectations.txt:

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

10 years ago2010-09-02 Zhenyao Mo <zmo@google.com>
zmo@google.com [Fri, 3 Sep 2010 00:47:38 +0000 (00:47 +0000)]
2010-09-02  Zhenyao Mo  <zmo@google.com>

        Unreviewed.

        Updateing chromium test_expectations for flaky editing/selection/extend-selection.html.

        * platform/chromium/test_expectations.txt:

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

10 years ago2010-09-02 James Robinson <jamesr@chromium.org>
commit-queue@webkit.org [Fri, 3 Sep 2010 00:01:28 +0000 (00:01 +0000)]
2010-09-02  James Robinson  <jamesr@chromium.org>

        Reviewed by Darin Adler.
        https://bugs.webkit.org/show_bug.cgi?id=37830

        Fix an ordering issue in this test.  The isSuccessfullyParsed
        function is not defined until the onload event, so avoid running
        the script body until this point.

        * fast/events/touch/script-tests/send-oncancel-event.js:
        (window.onload):

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

10 years ago2010-09-02 Tony Chang <tony@chromium.org>
tony@chromium.org [Thu, 2 Sep 2010 23:57:46 +0000 (23:57 +0000)]
2010-09-02  Tony Chang  <tony@chromium.org>

        Unreviewed, updating chromium test_expectations for a failure
        introduced in r66689.

        * platform/chromium/test_expectations.txt:

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

10 years agoAdd ability to send WKDictionaryRefs via post message.
weinig@apple.com [Thu, 2 Sep 2010 23:57:22 +0000 (23:57 +0000)]
Add ability to send WKDictionaryRefs via post message.
https://bugs.webkit.org/show_bug.cgi?id=45151

Reviewed by Anders Carlsson.

* Shared/ImmutableDictionary.cpp:
(WebKit::ImmutableDictionary::ImmutableDictionary):
* Shared/ImmutableDictionary.h:
(WebKit::ImmutableDictionary::adopt): Remove tag, it wasn't doing anything.
(WebKit::ImmutableDictionary::isMutable):
(WebKit::ImmutableDictionary::map): Add accessor of internal
map for encoder.

* Shared/UserMessageCoders.h:
(WebKit::UserMessageEncoder::baseEncode):
(WebKit::UserMessageDecoder::baseDecode):
Add encoder/decoder.

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

10 years agoSkip one time-out test for now.
jianli@chromium.org [Thu, 2 Sep 2010 23:47:13 +0000 (23:47 +0000)]
Skip one time-out test for now.

* platform/mac/Skipped:

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

10 years ago2010-09-02 Zhenyao Mo <zmo@google.com>
zmo@google.com [Thu, 2 Sep 2010 23:26:58 +0000 (23:26 +0000)]
2010-09-02  Zhenyao Mo  <zmo@google.com>

        Unreviewed. Flag a few flaky tests:
        fast/forms/select-baseline.html
        fast/forms/input-spinbutton-capturing.html
        fast/forms/input-number-events.html
        fast/replaced/embed-display-none.html
        media/video-timeupdate-during-playback.html

        * platform/chromium/test_expectations.txt:

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

10 years agoImprove tests for blob URL.
jianli@chromium.org [Thu, 2 Sep 2010 23:14:50 +0000 (23:14 +0000)]
Improve tests for blob URL.
https://bugs.webkit.org/show_bug.cgi?id=45132

Reviewed by Darin Fisher.

Change apply-blob-url-to-xhr.html to produce text based result. Also
add the test case for revokeBlobURL in apply-blob-url-to-xhr.html
and work-apply-blob-url-to-xhr.html.

* fast/files/apply-blob-url-to-img-expected.txt: Added.
* fast/files/apply-blob-url-to-img.html:
* fast/files/apply-blob-url-to-xhr-expected.txt:
* fast/files/apply-blob-url-to-xhr.html:
* fast/files/workers/resources/worker-apply-blob-url-to-xhr.js:
(sendXMLHttpRequest):
(onmessage):
* fast/files/workers/worker-apply-blob-url-to-xhr-expected.txt:
* platform/chromium/test_expectations.txt:
* platform/mac/Skipped:
* platform/mac/fast/files/apply-blob-url-to-img-expected.checksum: Removed.
* platform/mac/fast/files/apply-blob-url-to-img-expected.png: Removed.
* platform/mac/fast/files/apply-blob-url-to-img-expected.txt: Removed.

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

10 years ago2010-09-02 Adam Langley <agl@chromium.org>
tony@chromium.org [Thu, 2 Sep 2010 22:57:49 +0000 (22:57 +0000)]
2010-09-02  Adam Langley  <agl@chromium.org>

        Reviewed by Adam Barth.

        [chromium] fix memory corruption in Khmer rendering.

        * fast/text/khmer-crash-expected.txt: Added.
        * fast/text/khmer-crash.html: Added.
2010-09-02  Adam Langley  <agl@chromium.org>

        Reviewed by Adam Barth.

        [chromium] fix memory corruption in Khmer rendering.

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

        Test: fast/text/khmer-crash.html

        * platform/graphics/chromium/FontLinux.cpp:
        (WebCore::TextRunWalker::shapeGlyphs):
          The Khmer shaper has a bug where it would request larger output
          buffers, but request a zero increase in size. Because of this we add
          one to the requested size.
        (WebCore::TextRunWalker::setGlyphXPositions):
          The Khmer shaper is outputing cluster logs which suggest that some
          output glyphs appear from nowhere (i.e. have no input codepoints). I
          don't know Khmer, so maybe that's correct, but it broke the
          assumptions of this code, causing a read out-of-bounds.
        * platform/graphics/chromium/HarfbuzzSkia.cpp:
        (WebCore::stringToGlyphs):
          The Harfbuzz interfaces aren't documented, but it appears that the
          output array to stringToGlyphs isn't sized and that Harfbuzz expects
          us to detect when the input is too long.

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

10 years agoShare the common parts of UserMessage coding between both processes.
weinig@apple.com [Thu, 2 Sep 2010 22:52:18 +0000 (22:52 +0000)]
Share the common parts of UserMessage coding between both processes.
https://bugs.webkit.org/show_bug.cgi?id=45139

Reviewed by Anders Carlsson.

Add base classes UserMessageEncoder and UserMessageDecoder which implement
encoding/decoding of ImmutableArray and String (soon to be others as well, such
as ImmutableDictionary, Data, etc.) and add derived classes which implement the
process specific bits such as Page -> BundlePage conversion.

* Shared/UserMessageCoders.h: Copied from WebProcess/InjectedBundle/InjectedBundle.cpp.
(WebKit::UserMessageEncoder::baseEncode):
(WebKit::UserMessageEncoder::UserMessageEncoder):
(WebKit::UserMessageDecoder::baseDecode):
(WebKit::UserMessageDecoder::UserMessageDecoder):
* UIProcess/WebContext.cpp:
(WebKit::WebContext::postMessageToInjectedBundle):
(WebKit::WebContext::didReceiveMessage):
* UIProcess/WebContextUserMessageCoders.h: Copied from UIProcess/WebContext.cpp.
(WebKit::WebContextUserMessageEncoder::WebContextUserMessageEncoder):
(WebKit::WebContextUserMessageEncoder::encode):
(WebKit::WebContextUserMessageDecoder::WebContextUserMessageDecoder):
(WebKit::WebContextUserMessageDecoder::decode):
* WebKit2.pro:
* WebKit2.xcodeproj/project.pbxproj:
* WebProcess/InjectedBundle/InjectedBundle.cpp:
(WebKit::InjectedBundle::postMessage):
(WebKit::InjectedBundle::didReceiveMessage):
* WebProcess/InjectedBundle/InjectedBundleUserMessageCoders.h: Copied from WebProcess/InjectedBundle/InjectedBundle.cpp.
(WebKit::InjectedBundleUserMessageEncoder::InjectedBundleUserMessageEncoder):
(WebKit::InjectedBundleUserMessageEncoder::encode):
(WebKit::InjectedBundleUserMessageDecoder::InjectedBundleUserMessageDecoder):
(WebKit::InjectedBundleUserMessageDecoder::decode):
* win/WebKit2.vcproj:

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

10 years ago2010-09-02 Zhenyao Mo <zmo@google.com>
zmo@google.com [Thu, 2 Sep 2010 22:24:01 +0000 (22:24 +0000)]
2010-09-02  Zhenyao Mo  <zmo@google.com>

        Unreviewed, add two failing tests (http/tests/inspector/console-xhr-logging.html and http/tests/inspector/resource-har-conversion.html) to platform/chromium/test_expectations.txt.

        * platform/chromium/test_expectations.txt:

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

10 years ago2010-09-02 Ryosuke Niwa <rniwa@webkit.org>
rniwa@webkit.org [Thu, 2 Sep 2010 21:35:40 +0000 (21:35 +0000)]
2010-09-02  Ryosuke Niwa  <rniwa@webkit.org>

        Reviewed by Tony Chang.

        dumpAsText conversion: editing/pasteboard/select-element-1.html, editing/deleting/delete-br-012.html, and editing/deleting/delete-select-all-001.html
        https://bugs.webkit.org/show_bug.cgi?id=45121

        Converted tests.

        * editing/deleting/delete-br-012-expected.txt: Added.
        * editing/deleting/delete-br-012.html:
        * editing/deleting/delete-select-all-001-expected.txt: Added.
        * editing/deleting/delete-select-all-001.html:
        * editing/pasteboard/select-element-1-expected.txt: Added.
        * editing/pasteboard/select-element-1.html:
        * platform/chromium-linux/editing/deleting/delete-br-012-expected.checksum: Removed.
        * platform/chromium-linux/editing/deleting/delete-br-012-expected.png: Removed.
        * platform/chromium-linux/editing/deleting/delete-select-all-001-expected.checksum: Removed.
        * platform/chromium-linux/editing/pasteboard/select-element-1-expected.checksum: Removed.
        * platform/chromium-linux/editing/pasteboard/select-element-1-expected.png: Removed.
        * platform/chromium-linux/editing/pasteboard/select-element-1-expected.txt: Removed.
        * platform/chromium-win/editing/deleting/delete-br-012-expected.checksum: Removed.
        * platform/chromium-win/editing/deleting/delete-br-012-expected.png: Removed.
        * platform/chromium-win/editing/deleting/delete-br-012-expected.txt: Removed.
        * platform/chromium-win/editing/deleting/delete-select-all-001-expected.checksum: Removed.
        * platform/chromium-win/editing/deleting/delete-select-all-001-expected.png: Removed.
        * platform/chromium-win/editing/deleting/delete-select-all-001-expected.txt: Removed.
        * platform/chromium-win/editing/pasteboard/select-element-1-expected.checksum: Removed.
        * platform/chromium-win/editing/pasteboard/select-element-1-expected.png: Removed.
        * platform/chromium-win/editing/pasteboard/select-element-1-expected.txt: Removed.
        * platform/gtk/editing/deleting/delete-select-all-001-expected.txt: Removed.
        * platform/mac-leopard/editing/pasteboard/select-element-1-expected.checksum: Removed.
        * platform/mac-leopard/editing/pasteboard/select-element-1-expected.png: Removed.
        * platform/mac/editing/deleting/delete-br-012-expected.checksum: Removed.
        * platform/mac/editing/deleting/delete-br-012-expected.png: Removed.
        * platform/mac/editing/deleting/delete-br-012-expected.txt: Removed.
        * platform/mac/editing/deleting/delete-select-all-001-expected.checksum: Removed.
        * platform/mac/editing/deleting/delete-select-all-001-expected.png: Removed.
        * platform/mac/editing/deleting/delete-select-all-001-expected.txt: Removed.
        * platform/mac/editing/pasteboard/select-element-1-expected.checksum: Removed.
        * platform/mac/editing/pasteboard/select-element-1-expected.png: Removed.
        * platform/mac/editing/pasteboard/select-element-1-expected.txt: Removed.
        * platform/qt/editing/deleting/delete-br-012-expected.txt: Removed.
        * platform/qt/editing/deleting/delete-select-all-001-expected.txt: Removed.
        * platform/qt/editing/pasteboard/select-element-1-expected.txt: Removed.

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

10 years ago2010-09-02 Steve Block <steveblock@google.com>
steveblock@google.com [Thu, 2 Sep 2010 21:22:57 +0000 (21:22 +0000)]
2010-09-02  Steve Block  <steveblock@google.com>

        Reviewed by Adam Barth.

        Hook up LayoutTestController.setMockDeviceOrientation() on Mac.
        https://bugs.webkit.org/show_bug.cgi?id=43181

        * WebKit.xcodeproj/project.pbxproj:
2010-09-02  Steve Block  <steveblock@google.com>

        Reviewed by Adam Barth.

        Hook up LayoutTestController.setMockDeviceOrientation() on Mac.
        https://bugs.webkit.org/show_bug.cgi?id=43181

        This patch hooks up the mock device orientation client on Mac for use
        in DumpRenderTree.

        The patch adds a new WebDeviceOrientationClient for Mac. This client acts
        as a proxy to either a real or mock device orientation provider, both of
        which implement a new WebDeviceOrientationProvider interface.

        The provider is created by the embedder and passed to the WebView, from
        where WebDeviceOrientationClient can access it.

        The mock provider, WebDeviceOrientationProviderMock, is a wrapper around
        the existing WebCore mock.

        * WebCoreSupport/WebDeviceOrientationClient.h: Added.
        * WebCoreSupport/WebDeviceOrientationClient.mm: Added.
        (WebDeviceOrientationClient::WebDeviceOrientationClient):
        (WebDeviceOrientationClient::setController):
        (WebDeviceOrientationClient::startUpdating):
        (WebDeviceOrientationClient::stopUpdating):
        (WebDeviceOrientationClient::lastOrientation):
        * WebKit.exp:
        * WebView/WebDeviceOrientation.h: Added.
        * WebView/WebDeviceOrientation.mm: Added.
        (-[WebDeviceOrientation initWithCoreDeviceOrientation:WebCore::]):
        (core):
        (-[WebDeviceOrientation initWithCanProvideAlpha:alpha:canProvideBeta:beta:canProvideGamma:gamma:]):
        (-[WebDeviceOrientation dealloc]):
        * WebView/WebDeviceOrientationInternal.h: Added.
        * WebView/WebDeviceOrientationProvider.h: Added.
        * WebView/WebDeviceOrientationProviderMock.h: Added.
        * WebView/WebDeviceOrientationProviderMock.mm: Added.
        (-[WebDeviceOrientationProviderMockInternal setOrientation:]):
        (-[WebDeviceOrientationProviderMockInternal setController:]):
        (-[WebDeviceOrientationProviderMockInternal startUpdating]):
        (-[WebDeviceOrientationProviderMockInternal stopUpdating]):
        (-[WebDeviceOrientationProviderMockInternal lastOrientation]):
        (-[WebDeviceOrientationProviderMock init]):
        (-[WebDeviceOrientationProviderMock dealloc]):
        (-[WebDeviceOrientationProviderMock setOrientation:]):
        (-[WebDeviceOrientationProviderMock setController:]):
        (-[WebDeviceOrientationProviderMock startUpdating]):
        (-[WebDeviceOrientationProviderMock stopUpdating]):
        (-[WebDeviceOrientationProviderMock lastOrientation]):
        * WebView/WebDeviceOrientationProviderMockInternal.h: Added.
        * WebView/WebView.mm:
        (-[WebView _commonInitializationWithFrameName:groupName:usesDocumentViews:]):
        (-[WebView _setDeviceOrientationProvider:]):
        (-[WebView _deviceOrientationProvider]):
        * WebView/WebViewData.h:
        * WebView/WebViewPrivate.h:
2010-09-02  Steve Block  <steveblock@google.com>

        Reviewed by Adam Barth.

        Hook up LayoutTestController.setMockDeviceOrientation() on Mac.
        https://bugs.webkit.org/show_bug.cgi?id=43181

        * DumpRenderTree/mac/DumpRenderTree.mm:
        (createWebViewAndOffscreenWindow):
        * DumpRenderTree/mac/LayoutTestControllerMac.mm:
        (LayoutTestController::setMockDeviceOrientation):

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

10 years ago2010-09-02 Matthew Willis <lilmatt@flock.com>
eric@webkit.org [Thu, 2 Sep 2010 20:45:25 +0000 (20:45 +0000)]
2010-09-02  Matthew Willis  <lilmatt@flock.com>

        Reviewed by Eric Seidel.

        Attempt to fix flaxy test that contains setTimeout() by adding
        layoutTestController.waitUntilDone() and ...notifyDone()
        https://bugs.webkit.org/show_bug.cgi?id=45097

        * fast/css/disabled-author-styles.html:

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

10 years agoFill the scroll corner with white when shouldPaintCustomScrollbars is false
aroben@apple.com [Thu, 2 Sep 2010 20:15:45 +0000 (20:15 +0000)]
Fill the scroll corner with white when shouldPaintCustomScrollbars is false

Previously we were only filling with white when
shouldPaintCustomScrollbars was true but the ChromeClient didn't paint
any custom scrollbars.

Reviewed by Sam Weinig.

* platform/ScrollbarThemeComposite.cpp:
(WebCore::ScrollbarThemeComposite::paintScrollCorner):

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

10 years agoFix flashiness when resizing the browser window on Windows
aroben@apple.com [Thu, 2 Sep 2010 20:14:24 +0000 (20:14 +0000)]
Fix flashiness when resizing the browser window on Windows

Reviewed by Sam Weinig.

* MiniBrowser/win/BrowserWindow.cpp:
(BrowserWindow::wndProc): Override WM_ERASEBKGND so Windows won't
periodically fill the window with white.

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

10 years ago2010-09-02 Eric Seidel <eric@webkit.org>
eric@webkit.org [Thu, 2 Sep 2010 20:10:42 +0000 (20:10 +0000)]
2010-09-02  Eric Seidel  <eric@webkit.org>

        Reviewed by Alexey Proskuryakov.

        fast/loader/recursive-before-unload-crash.html is flaky
        https://bugs.webkit.org/show_bug.cgi?id=43840

        Removed the frame loader callbacks as Brady suggested in
        https://bugs.webkit.org/show_bug.cgi?id=38928#c27
        This should stop the flake.  As an added bonus this test no longer
        needs platform specific results.

        * fast/loader/recursive-before-unload-crash-expected.txt:
        * fast/loader/recursive-before-unload-crash.html:
        * platform/chromium-linux/fast/loader/recursive-before-unload-crash-expected.txt: Removed.
        * platform/mac-tiger/fast/loader/recursive-before-unload-crash-expected.txt: Removed.

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

10 years ago2010-09-02 Tony Chang <tony@chromium.org>
tony@chromium.org [Thu, 2 Sep 2010 19:16:31 +0000 (19:16 +0000)]
2010-09-02  Tony Chang  <tony@chromium.org>

        Unreviewed, update chromium test expectations.

        * platform/chromium/fast/events/continuous-platform-wheelevent-in-scrolling-div-expected.txt: Added.
        * platform/chromium/test_expectations.txt:

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

10 years agoSimplify ownership semantics of some WebKit2 types
weinig@apple.com [Thu, 2 Sep 2010 19:11:27 +0000 (19:11 +0000)]
Simplify ownership semantics of some WebKit2 types
https://bugs.webkit.org/show_bug.cgi?id=45120

Reviewed by Anders Carlsson.

- Make ImmutableArray and MutableArray use a Vector<RefPtr<APIObject> > and
  therefore ref any items it takes in.
- Make the PostMessageDecoder operate on a RefPtr<APIObject>& to avoid the odd
  leaking semantics.

* Shared/ImmutableArray.cpp:
(WebKit::ImmutableArray::ImmutableArray): This constructor now uses a for-loop
instead of memcpy to ref each item.
(WebKit::ImmutableArray::~ImmutableArray): No longer necessary to manually deref.
* Shared/ImmutableArray.h:
(WebKit::ImmutableArray::adopt):
(WebKit::ImmutableArray::at):
Changes to accommodate entries being changed to a Vector<RefPtr<APIObject> >.

* Shared/ImmutableDictionary.cpp:
(WebKit::ImmutableDictionary::keys):
Build a Vector<RefPtr<APIObject> >.

* UIProcess/WebBackForwardList.cpp:
(WebKit::WebBackForwardList::backListAsImmutableArrayWithLimit):
(WebKit::WebBackForwardList::forwardListAsImmutableArrayWithLimit):
Ditto.

* UIProcess/WebContext.cpp:
(WebKit::PostMessageEncoder::PostMessageDecoder::PostMessageDecoder):
(WebKit::PostMessageEncoder::PostMessageDecoder::decode):
(WebKit::WebContext::didReceiveMessage):
APIObject>& to avoid the odd leaking semantics.

* WebProcess/InjectedBundle/InjectedBundle.cpp:
(WebKit::PostMessageEncoder::PostMessageDecoder::PostMessageDecoder):
(WebKit::PostMessageEncoder::PostMessageDecoder::decode):
(WebKit::InjectedBundle::didReceiveMessage):
Ditto.

* WebProcess/WebPage/WebFrame.cpp:
(WebKit::WebFrame::childFrames):
Build a Vector<RefPtr<APIObject> >.

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

10 years ago2010-09-02 Ryosuke Niwa <rniwa@webkit.org>
rniwa@webkit.org [Thu, 2 Sep 2010 19:06:47 +0000 (19:06 +0000)]
2010-09-02  Ryosuke Niwa  <rniwa@webkit.org>

        Reviewed by Kent Tamura.

        dumpAsText/Markup conversion: editing/style/block-style-004.html through block-style-006.html and editing/style/fontsize-1.html
        https://bugs.webkit.org/show_bug.cgi?id=45050

        * editing/style/block-style-004-expected.txt: Added.
        * editing/style/block-style-004.html:
        * editing/style/block-style-005.html:
        * editing/style/block-style-006.html:
        * editing/style/fontsize-1.html:
        * platform/chromium-linux/editing/style/block-style-004-expected.checksum: Removed.
        * platform/chromium-linux/editing/style/block-style-004-expected.png: Removed.
        * platform/chromium-linux/editing/style/block-style-005-expected.checksum: Removed.
        * platform/chromium-linux/editing/style/block-style-005-expected.png: Removed.
        * platform/chromium-linux/editing/style/block-style-006-expected.checksum: Removed.
        * platform/chromium-linux/editing/style/block-style-006-expected.png: Removed.
        * platform/chromium-linux/editing/style/fontsize-1-expected.checksum: Removed.
        * platform/chromium-linux/editing/style/fontsize-1-expected.png: Removed.
        * platform/chromium-win/editing/style/block-style-004-expected.checksum: Removed.
        * platform/chromium-win/editing/style/block-style-004-expected.png: Removed.
        * platform/chromium-win/editing/style/block-style-004-expected.txt: Removed.
        * platform/chromium-win/editing/style/block-style-005-expected.checksum: Removed.
        * platform/chromium-win/editing/style/block-style-005-expected.png: Removed.
        * platform/chromium-win/editing/style/block-style-005-expected.txt: Removed.
        * platform/chromium-win/editing/style/block-style-006-expected.checksum: Removed.
        * platform/chromium-win/editing/style/block-style-006-expected.png: Removed.
        * platform/chromium-win/editing/style/block-style-006-expected.txt: Removed.
        * platform/chromium-win/editing/style/fontsize-1-expected.checksum: Removed.
        * platform/chromium-win/editing/style/fontsize-1-expected.png: Removed.
        * platform/chromium-win/editing/style/fontsize-1-expected.txt: Removed.
        * platform/gtk/editing/style/fontsize-1-expected.txt: Removed.
        * platform/mac-leopard/editing/style/fontsize-1-expected.checksum: Removed.
        * platform/mac-leopard/editing/style/fontsize-1-expected.png: Removed.
        * platform/mac/editing/style/block-style-004-expected.checksum: Removed.
        * platform/mac/editing/style/block-style-004-expected.png: Removed.
        * platform/mac/editing/style/block-style-004-expected.txt: Removed.
        * platform/mac/editing/style/block-style-005-expected.checksum: Removed.
        * platform/mac/editing/style/block-style-005-expected.png: Removed.
        * platform/mac/editing/style/block-style-005-expected.txt: Removed.
        * platform/mac/editing/style/block-style-006-expected.checksum: Removed.
        * platform/mac/editing/style/block-style-006-expected.png: Removed.
        * platform/mac/editing/style/block-style-006-expected.txt: Removed.
        * platform/mac/editing/style/fontsize-1-expected.checksum: Removed.
        * platform/mac/editing/style/fontsize-1-expected.png: Removed.
        * platform/mac/editing/style/fontsize-1-expected.txt: Removed.
        * platform/qt/editing/style/block-style-004-expected.txt: Removed.
        * platform/qt/editing/style/block-style-005-expected.txt: Removed.
        * platform/qt/editing/style/block-style-006-expected.txt: Removed.
        * platform/qt/editing/style/fontsize-1-expected.txt: Removed.

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

10 years ago2010-09-02 Sheriff Bot <webkit.review.bot@gmail.com>
japhet@chromium.org [Thu, 2 Sep 2010 18:55:02 +0000 (18:55 +0000)]
2010-09-02  Sheriff Bot  <webkit.review.bot@gmail.com>

        Unreviewed, rolling out r66671.
        http://trac.webkit.org/changeset/66671
        https://bugs.webkit.org/show_bug.cgi?id=45115

        http/tests/misc/redirect-to-about-blank.html is failing on
        several platforms (Requested by japhet on #webkit).

        * WebCore.exp.in:
        * dom/Document.cpp:
        (WebCore::Document::Document):
        (WebCore::Document::updateURLForPushOrReplaceState):
        * loader/DocumentWriter.cpp:
        (WebCore::DocumentWriter::begin):
        * loader/FrameLoader.cpp:
        (WebCore::FrameLoader::iconURL):
        (WebCore::FrameLoader::didOpenURL):
        (WebCore::FrameLoader::didExplicitOpen):
        (WebCore::FrameLoader::receivedFirstData):
        (WebCore::FrameLoader::setURL):
        (WebCore::FrameLoader::startIconLoader):
        (WebCore::FrameLoader::commitIconURLToIconDatabase):
        (WebCore::FrameLoader::finishedParsing):
        (WebCore::FrameLoader::checkIfDisplayInsecureContent):
        (WebCore::FrameLoader::checkIfRunInsecureContent):
        (WebCore::FrameLoader::updateFirstPartyForCookies):
        (WebCore::FrameLoader::loadInSameDocument):
        (WebCore::FrameLoader::commitProvisionalLoad):
        (WebCore::FrameLoader::open):
        (WebCore::FrameLoader::shouldScrollToAnchor):
        * loader/FrameLoader.h:
        (WebCore::FrameLoader::url):

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

10 years agoAdd WKMutableDictionary API for WebKit2
weinig@apple.com [Thu, 2 Sep 2010 18:32:14 +0000 (18:32 +0000)]
Add WKMutableDictionary API for WebKit2
https://bugs.webkit.org/show_bug.cgi?id=45117

Reviewed by Anders Carlsson.

Add WKMutableDictionary API that inherits from WKDictionaryRef
the same way WKMutableArrayRef inherits from WKArrayRef.

* Shared/ImmutableDictionary.h:
(WebKit::ImmutableDictionary::get):
(WebKit::ImmutableDictionary::isMutable):
* Shared/MutableDictionary.cpp: Added.
(WebKit::MutableDictionary::MutableDictionary):
(WebKit::MutableDictionary::~MutableDictionary):
(WebKit::MutableDictionary::add):
(WebKit::MutableDictionary::set):
* Shared/MutableDictionary.h: Added.
(WebKit::MutableDictionary::create):
(WebKit::MutableDictionary::isMutable):
* UIProcess/API/C/WKAPICast.h:
(toWK):
* UIProcess/API/C/WKBase.h:
* UIProcess/API/C/WKMutableDictionary.cpp: Added.
(WKMutableDictionaryCreate):
(WKDictionaryIsMutable):
(WKDictionaryAddItem):
(WKDictionarySetItem):
* UIProcess/API/C/WKMutableDictionary.h: Added.
* UIProcess/API/C/WebKit2.h:
* WebKit2.pro:
* WebKit2.xcodeproj/project.pbxproj:
* win/WebKit2.vcproj:
* win/WebKit2Generated.make:

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

10 years ago2010-09-01 Zhenyao Mo <zmo@google.com>
zmo@google.com [Thu, 2 Sep 2010 17:54:23 +0000 (17:54 +0000)]
2010-09-01  Zhenyao Mo  <zmo@google.com>

        Reviewed by Kenneth Russell.

        Roll ANGLE under webkit to r402
        https://bugs.webkit.org/show_bug.cgi?id=45004

        * platform/graphics/mac/GraphicsContext3DMac.mm: Update the code to use newer ANGLE interface.
        (WebCore::GraphicsContext3D::GraphicsContext3D):
2010-09-01  Zhenyao Mo  <zmo@google.com>

        Reviewed by Kenneth Russell.

        Roll ANGLE under webkit to r402
        https://bugs.webkit.org/show_bug.cgi?id=45004

        * ANGLE.xcodeproj/project.pbxproj:
        * include/GLES2/gl2ext.h:
        * include/GLSLANG/ResourceLimits.h: Removed.
        * include/GLSLANG/ShaderLang.h:
        * src/compiler/BaseTypes.h:
        (getPrecisionString):
        (getBasicString):
        (IsSampler):
        (getQualifierString):
        * src/compiler/Initialize.cpp:
        (BuiltInConstants):
        (IdentifyBuiltIns):
        * src/compiler/Initialize.h:
        * src/compiler/InitializeDll.cpp:
        (InitProcess):
        (DetachProcess):
        (InitThread):
        (DetachThread):
        * src/compiler/InitializeDll.h:
        * src/compiler/InitializeParseContext.h:
        * src/compiler/Intermediate.cpp:
        (GetHigherPrecision):
        (TIntermediate::addBinaryMath):
        (TIntermediate::setAggregateOperator):
        (TIntermediate::addComma):
        (TIntermediate::postProcess):
        (TIntermBinary::promote):
        (CompareStruct):
        * src/compiler/OutputGLSL.cpp:
        (TOutputGLSL::writeFunctionParameters):
        (TOutputGLSL::visitUnary):
        (TOutputGLSL::visitBranch):
        * src/compiler/OutputHLSL.cpp:
        (sh::OutputHLSL::header):
        (sh::OutputHLSL::visitBinary):
        (sh::OutputHLSL::visitAggregate):
        (sh::OutputHLSL::handleExcessiveLoop):
        (sh::OutputHLSL::addConstructor):
        * src/compiler/ParseHelper.cpp:
        (TParseContext::constructorErrorCheck):
        (TParseContext::samplerErrorCheck):
        (TParseContext::paramErrorCheck):
        (TParseContext::findFunction):
        (TParseContext::executeInitializer):
        (TParseContext::addConstructor):
        (TParseContext::addConstStruct):
        (FreeParseContextIndex):
        (GetGlobalParseContext):
        * src/compiler/PoolAlloc.h:
        (TPoolAllocator::tHeader::tHeader):
        (pool_allocator::allocate):
        (pool_allocator::deallocate):
        * src/compiler/ShaderLang.cpp:
        (ShInitialize):
        (ShFinalize):
        (ShInitBuiltInResource):
        * src/compiler/SymbolTable.cpp:
        (TType::getStructSize):
        * src/compiler/SymbolTable.h:
        (TVariable::setQualifier):
        * src/compiler/Types.h:
        (TType::TType):
        (TType::getBasicType):
        (TType::setBasicType):
        (TType::getPrecision):
        (TType::setPrecision):
        (TType::getQualifier):
        (TType::setQualifier):
        (TType::getNominalSize):
        (TType::setNominalSize):
        (TType::isMatrix):
        (TType::setMatrix):
        (TType::isArray):
        (TType::getArraySize):
        (TType::setArraySize):
        (TType::getMaxArraySize):
        (TType::setMaxArraySize):
        (TType::clearArrayness):
        (TType::setArrayInformationType):
        (TType::getArrayInformationType):
        (TType::isVector):
        (TType::isScalar):
        (TType::setStruct):
        (TType::getTypeName):
        (TType::setTypeName):
        (TType::isField):
        (TType::getFieldName):
        (TType::setFieldName):
        (TType::getBasicString):
        (TType::getPrecisionString):
        (TType::getQualifierString):
        * src/compiler/glslang.l:
        * src/compiler/glslang.y:
        * src/compiler/intermediate.h:
        (TIntermNode::getLine):
        (TIntermNode::setLine):
        (TIntermTyped::getAsTyped):
        (TIntermTyped::setType):
        (TIntermTyped::getType):
        (TIntermTyped::getTypePointer):
        (TIntermTyped::getBasicType):
        (TIntermTyped::getQualifier):
        (TIntermTyped::getPrecision):
        (TIntermTyped::getNominalSize):
        (TIntermTyped::isMatrix):
        (TIntermTyped::isArray):
        (TIntermTyped::isVector):
        (TIntermTyped::isScalar):
        (TIntermTyped::getBasicString):
        (TIntermTyped::getQualifierString):
        (TIntermSymbol::getId):
        (TIntermSymbol::getSymbol):
        (TIntermOperator::setOp):
        (TIntermBinary::setLeft):
        (TIntermBinary::setRight):
        (TIntermBinary::getLeft):
        (TIntermBinary::getRight):
        (TIntermUnary::setOperand):
        (TIntermUnary::getOperand):
        (TIntermAggregate::getAsAggregate):
        (TIntermAggregate::getSequence):
        (TIntermAggregate::setName):
        (TIntermAggregate::getName):
        (TIntermAggregate::setUserDefined):
        (TIntermAggregate::isUserDefined):
        (TIntermAggregate::getQualifier):
        (TIntermAggregate::setOptimize):
        (TIntermAggregate::setDebug):
        (TIntermSelection::getCondition):
        (TIntermSelection::getTrueBlock):
        (TIntermSelection::getFalseBlock):
        (TIntermSelection::getAsSelectionNode):
        * src/compiler/parseConst.cpp:
        (TConstTraverser::TConstTraverser):
        * src/compiler/preprocessor/atom.c:
        (InitAtomTable):
        * src/compiler/preprocessor/atom.h:
        * src/compiler/preprocessor/compile.h:
        * src/compiler/preprocessor/cpp.c:
        * src/compiler/preprocessor/cpp.h:
        * src/compiler/preprocessor/cppstruct.c:
        * src/compiler/preprocessor/memory.c:
        * src/compiler/preprocessor/memory.h:
        * src/compiler/preprocessor/parser.h:
        * src/compiler/preprocessor/preprocess.h:
        * src/compiler/preprocessor/scanner.c:
        * src/compiler/preprocessor/scanner.h:
        * src/compiler/preprocessor/slglobals.h:
        * src/compiler/preprocessor/symbols.c:
        (NewSymbol):
        * src/compiler/preprocessor/symbols.h:
        * src/compiler/preprocessor/tokens.c:
        (RecordToken):
        * src/compiler/preprocessor/tokens.h:
        * src/libEGL/Display.cpp:
        (egl::Display::Display):
        (egl::Display::initialize):
        (egl::Display::terminate):
        (egl::Display::createDevice):
        (egl::Display::createWindowSurface):
        (egl::Display::createContext):
        (egl::Display::getMultiSampleSupport):
        (egl::Display::getCompressedTextureSupport):
        * src/libEGL/Display.h:
        * src/libEGL/Surface.cpp:
        (egl::Surface::Surface):
        (egl::Surface::resetSwapChain):
        (egl::Surface::getWindowHandle):
        (egl::Surface::writeRecordableFlipState):
        (egl::Surface::applyFlipState):
        (egl::Surface::releaseRecordedState):
        (egl::Surface::checkForWindowResize):
        (egl::Surface::swap):
        * src/libEGL/Surface.h:
        * src/libEGL/libEGL.cpp:
        * src/libEGL/libEGL.vcproj:
        * src/libGLESv2/Blit.cpp:
        (gl::Blit::setVertexShader):
        (gl::Blit::setPixelShader):
        (gl::Blit::setFormatConvertShaders):
        * src/libGLESv2/Buffer.cpp:
        (gl::Buffer::Buffer):
        * src/libGLESv2/Buffer.h:
        * src/libGLESv2/Context.cpp:
        (gl::Context::Context):
        (gl::Context::~Context):
        (gl::Context::makeCurrent):
        (gl::Context::markAllStateDirty):
        (gl::Context::getReadFramebufferHandle):
        (gl::Context::getDrawFramebufferHandle):
        (gl::Context::getRenderbufferHandle):
        (gl::Context::getArrayBufferHandle):
        (gl::Context::setVertexAttribState):
        (gl::Context::createBuffer):
        (gl::Context::createProgram):
        (gl::Context::createShader):
        (gl::Context::createTexture):
        (gl::Context::createRenderbuffer):
        (gl::Context::deleteBuffer):
        (gl::Context::deleteShader):
        (gl::Context::deleteProgram):
        (gl::Context::deleteTexture):
        (gl::Context::deleteRenderbuffer):
        (gl::Context::getBuffer):
        (gl::Context::getShader):
        (gl::Context::getProgram):
        (gl::Context::getTexture):
        (gl::Context::getRenderbuffer):
        (gl::Context::getReadFramebuffer):
        (gl::Context::getDrawFramebuffer):
        (gl::Context::bindArrayBuffer):
        (gl::Context::bindElementArrayBuffer):
        (gl::Context::bindTexture2D):
        (gl::Context::bindTextureCubeMap):
        (gl::Context::bindReadFramebuffer):
        (gl::Context::bindDrawFramebuffer):
        (gl::Context::bindRenderbuffer):
        (gl::Context::useProgram):
        (gl::Context::setFramebufferZero):
        (gl::Context::setRenderbufferStorage):
        (gl::Context::getFramebuffer):
        (gl::Context::getArrayBuffer):
        (gl::Context::getElementArrayBuffer):
        (gl::Context::getCurrentProgram):
        (gl::Context::getTexture2D):
        (gl::Context::getTextureCubeMap):
        (gl::Context::getSamplerTexture):
        (gl::Context::getFloatv):
        (gl::Context::getIntegerv):
        (gl::Context::getQueryParameterInfo):
        (gl::Context::applyRenderTarget):
        (gl::Context::applyState):
        (gl::Context::applyIndexBuffer):
        (gl::Context::readPixels):
        (gl::Context::clear):
        (gl::Context::finish):
        (gl::Context::flush):
        (gl::Context::supportsShaderModel3):
        (gl::Context::getMaxSupportedSamples):
        (gl::Context::getNearestSupportedSamples):
        (gl::Context::supportsCompressedTextures):
        (gl::Context::detachBuffer):
        (gl::Context::detachTexture):
        (gl::Context::detachFramebuffer):
        (gl::Context::detachRenderbuffer):
        (gl::Context::getIncompleteTexture):
        (gl::Context::initExtensionString):
        (gl::Context::blitFramebuffer):
        * src/libGLESv2/Context.h:
        (gl::AttributeState::AttributeState):
        * src/libGLESv2/Framebuffer.cpp:
        (gl::Framebuffer::Framebuffer):
        (gl::Framebuffer::~Framebuffer):
        (gl::Framebuffer::lookupRenderbuffer):
        (gl::Framebuffer::setColorbuffer):
        (gl::Framebuffer::setDepthbuffer):
        (gl::Framebuffer::setStencilbuffer):
        (gl::Framebuffer::detachTexture):
        (gl::Framebuffer::detachRenderbuffer):
        (gl::Framebuffer::getRenderTargetSerial):
        (gl::Framebuffer::getRenderTarget):
        (gl::Framebuffer::getDepthStencil):
        (gl::Framebuffer::getDepthbufferSerial):
        (gl::Framebuffer::getStencilbufferSerial):
        (gl::Framebuffer::getColorbuffer):
        (gl::Framebuffer::getDepthbuffer):
        (gl::Framebuffer::getStencilbuffer):
        (gl::Framebuffer::getColorbufferHandle):
        (gl::Framebuffer::getDepthbufferHandle):
        (gl::Framebuffer::getStencilbufferHandle):
        (gl::Framebuffer::hasStencil):
        (gl::Framebuffer::isMultisample):
        (gl::Framebuffer::completeness):
        (gl::DefaultFramebuffer::DefaultFramebuffer):
        (gl::Framebuffer::getSamples):
        (gl::DefaultFramebuffer::completeness):
        * src/libGLESv2/Framebuffer.h:
        * src/libGLESv2/Program.cpp:
        (gl::Program::Program):
        (gl::Program::~Program):
        (gl::Program::attachShader):
        (gl::Program::detachShader):
        (gl::Program::linkVaryings):
        (gl::Program::link):
        (gl::Program::unlink):
        (gl::Program::release):
        (gl::Program::addRef):
        (gl::Program::getRefCount):
        (gl::Program::getDxViewportLocation):
        * src/libGLESv2/Program.h:
        * src/libGLESv2/RefCountObject.cpp: Added.
        (gl::RefCountObject::RefCountObject):
        (gl::RefCountObject::~RefCountObject):
        (gl::RefCountObject::addRef):
        (gl::RefCountObject::release):
        (gl::RefCountObjectBindingPointer::set):
        * src/libGLESv2/RefCountObject.h: Added.
        (gl::RefCountObject::id):
        (gl::RefCountObjectBindingPointer::RefCountObjectBindingPointer):
        (gl::RefCountObjectBindingPointer::~RefCountObjectBindingPointer):
        (gl::RefCountObjectBindingPointer::get):
        (gl::RefCountObjectBindingPointer::id):
        (gl::RefCountObjectBindingPointer::operator ! ):
        (gl::BindingPointer::set):
        (gl::BindingPointer::get):
        (gl::BindingPointer::operator -> ):
        * src/libGLESv2/Renderbuffer.cpp:
        (gl::Renderbuffer::Renderbuffer):
        (gl::Renderbuffer::~Renderbuffer):
        (gl::Renderbuffer::isColorbuffer):
        (gl::Renderbuffer::isDepthbuffer):
        (gl::Renderbuffer::isStencilbuffer):
        (gl::Renderbuffer::getRenderTarget):
        (gl::Renderbuffer::getDepthStencil):
        (gl::Renderbuffer::getWidth):
        (gl::Renderbuffer::getHeight):
        (gl::Renderbuffer::getFormat):
        (gl::Renderbuffer::getD3DFormat):
        (gl::Renderbuffer::getSerial):
        (gl::Renderbuffer::setStorage):
        (gl::RenderbufferStorage::RenderbufferStorage):
        (gl::RenderbufferStorage::~RenderbufferStorage):
        (gl::RenderbufferStorage::isColorbuffer):
        (gl::RenderbufferStorage::isDepthbuffer):
        (gl::RenderbufferStorage::isStencilbuffer):
        (gl::RenderbufferStorage::getRenderTarget):
        (gl::RenderbufferStorage::getDepthStencil):
        (gl::RenderbufferStorage::getWidth):
        (gl::RenderbufferStorage::getHeight):
        (gl::RenderbufferStorage::setSize):
        (gl::RenderbufferStorage::getFormat):
        (gl::RenderbufferStorage::getD3DFormat):
        (gl::RenderbufferStorage::getSamples):
        (gl::RenderbufferStorage::getSerial):
        (gl::RenderbufferStorage::issueSerial):
        (gl::Colorbuffer::Colorbuffer):
        (gl::Colorbuffer::isColorbuffer):
        (gl::Colorbuffer::getRedSize):
        (gl::Colorbuffer::getGreenSize):
        (gl::Colorbuffer::getBlueSize):
        (gl::Colorbuffer::getAlphaSize):
        (gl::DepthStencilbuffer::DepthStencilbuffer):
        (gl::DepthStencilbuffer::~DepthStencilbuffer):
        (gl::DepthStencilbuffer::isDepthbuffer):
        (gl::DepthStencilbuffer::isStencilbuffer):
        (gl::DepthStencilbuffer::getDepthSize):
        (gl::DepthStencilbuffer::getStencilSize):
        (gl::DepthStencilbuffer::getDepthStencil):
        (gl::Depthbuffer::Depthbuffer):
        (gl::Depthbuffer::~Depthbuffer):
        (gl::Depthbuffer::isDepthbuffer):
        (gl::Depthbuffer::isStencilbuffer):
        (gl::Stencilbuffer::Stencilbuffer):
        (gl::Stencilbuffer::~Stencilbuffer):
        (gl::Stencilbuffer::isDepthbuffer):
        (gl::Stencilbuffer::isStencilbuffer):
        * src/libGLESv2/Renderbuffer.h:
        (gl::Renderbuffer::getStorage):
        * src/libGLESv2/ResourceManager.cpp: Added.
        (gl::ResourceManager::ResourceManager):
        (gl::ResourceManager::~ResourceManager):
        (gl::ResourceManager::addRef):
        (gl::ResourceManager::release):
        (gl::ResourceManager::createBuffer):
        (gl::ResourceManager::createShader):
        (gl::ResourceManager::createProgram):
        (gl::ResourceManager::createTexture):
        (gl::ResourceManager::createRenderbuffer):
        (gl::ResourceManager::deleteBuffer):
        (gl::ResourceManager::deleteShader):
        (gl::ResourceManager::deleteProgram):
        (gl::ResourceManager::deleteTexture):
        (gl::ResourceManager::deleteRenderbuffer):
        (gl::ResourceManager::getBuffer):
        (gl::ResourceManager::getShader):
        (gl::ResourceManager::getTexture):
        (gl::ResourceManager::getProgram):
        (gl::ResourceManager::getRenderbuffer):
        (gl::ResourceManager::setRenderbuffer):
        (gl::ResourceManager::checkBufferAllocation):
        (gl::ResourceManager::checkTextureAllocation):
        (gl::ResourceManager::checkRenderbufferAllocation):
        * src/libGLESv2/ResourceManager.h: Added.
        * src/libGLESv2/Shader.cpp:
        (gl::Shader::Shader):
        (gl::Shader::addRef):
        (gl::Shader::release):
        (gl::Shader::getRefCount):
        (gl::Shader::parseVaryings):
        (gl::VertexShader::VertexShader):
        (gl::FragmentShader::FragmentShader):
        * src/libGLESv2/Shader.h:
        * src/libGLESv2/Texture.cpp:
        (gl::Texture::Image::Image):
        (gl::Texture::Texture):
        (gl::Texture::getBlitter):
        (gl::Texture::selectFormat):
        (gl::Texture::loadImageData):
        (gl::Texture::loadAlphaImageData):
        (gl::Texture::loadLuminanceImageData):
        (gl::Texture::loadLuminanceAlphaImageData):
        (gl::Texture::loadRGBUByteImageData):
        (gl::Texture::loadRGB565ImageData):
        (gl::Texture::loadRGBAUByteImageData):
        (gl::Texture::loadRGBA4444ImageData):
        (gl::Texture::loadRGBA5551ImageData):
        (gl::Texture::loadBGRAImageData):
        (gl::Texture::createSurface):
        (gl::Texture::setImage):
        (gl::Texture::setCompressedImage):
        (gl::Texture::subImage):
        (gl::Texture::subImageCompressed):
        (gl::Texture2D::Texture2D):
        (gl::Texture2D::getFormat):
        (gl::Texture2D::setCompressedImage):
        (gl::Texture2D::subImage):
        (gl::Texture2D::subImageCompressed):
        (gl::Texture2D::copyImage):
        (gl::Texture2D::copySubImage):
        (gl::Texture2D::isCompressed):
        (gl::Texture2D::getColorbuffer):
        (gl::TextureCubeMap::TextureCubeMap):
        (gl::TextureCubeMap::getFormat):
        (gl::TextureCubeMap::setCompressedImage):
        (gl::TextureCubeMap::subImage):
        (gl::TextureCubeMap::subImageCompressed):
        (gl::TextureCubeMap::isCompressed):
        (gl::TextureCubeMap::copyImage):
        (gl::TextureCubeMap::copySubImage):
        (gl::TextureCubeMap::getColorbuffer):
        (gl::Texture::TextureColorbufferProxy::addRef):
        (gl::Texture::TextureColorbufferProxy::release):
        (gl::Texture::TextureColorbufferProxy::getWidth):
        (gl::Texture::TextureColorbufferProxy::getHeight):
        (gl::Texture::TextureColorbufferProxy::getFormat):
        * src/libGLESv2/Texture.h:
        * src/libGLESv2/libGLESv2.cpp:
        * src/libGLESv2/libGLESv2.def:
        * src/libGLESv2/libGLESv2.vcproj:
        * src/libGLESv2/main.h:
        * src/libGLESv2/utilities.cpp:
        (gl::ComputeCompressedPitch):
        (gl::ComputeCompressedSize):
        (gl::IsCompressed):
        (gl::ComputePixelSize):
        (gl::CheckTextureFormatType):
        (es2dx::ConvertRenderbufferFormat):
        (es2dx::GetSamplesFromMultisampleType):
        (es2dx::GetMultisampleTypeFromSamples):
        * src/libGLESv2/utilities.h:

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

10 years ago2010-09-02 Ilya Tikhonovsky <loislo@chromium.org>
loislo@chromium.org [Thu, 2 Sep 2010 17:10:38 +0000 (17:10 +0000)]
2010-09-02  Ilya Tikhonovsky  <loislo@chromium.org>

        Reviewed by Yury Semikhatsky.

        WebInspector: Timeline instrumentation code can crash browser.

        Steps:
        1) load the site
        2) open inspector
        3) start timeline recording
        4) reload inspected page
        got NPE

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

        * loader/ResourceLoader.cpp:
        (WebCore::ResourceLoader::didReceiveResponse):
        (WebCore::ResourceLoader::didReceiveData):

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

10 years ago2010-09-02 Jessie Berlin <jberlin@apple.com>
jberlin@webkit.org [Thu, 2 Sep 2010 16:31:31 +0000 (16:31 +0000)]
2010-09-02  Jessie Berlin  <jberlin@apple.com>

        Windows build fix. Unreviewed.

        * UIProcess/API/win/WKAPICastWin.h:
        (toWK):
        * UIProcess/API/win/WKBaseWin.h:

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

10 years ago2010-09-02 Andrey Kosyakov <caseq@chromium.org>
caseq@chromium.org [Thu, 2 Sep 2010 16:30:09 +0000 (16:30 +0000)]
2010-09-02  Andrey Kosyakov  <caseq@chromium.org>

        Unreviewed test fix.
        Add size & bodySize to list of non-deterministic fields for HAR tests, as those tend to vary by platform
        in error responses.
        Remove platform-specific expectations that were previously added because of this.

        * http/tests/inspector/resource-har-conversion-expected.txt:
        * http/tests/inspector/resource-har-conversion.html:
        * http/tests/inspector/resource-test2.js:
        * platform/chromium-win/inspector/resource-har-conversion-expected.txt: Removed.
        * platform/win/http/tests/inspector/resource-har-conversion-expected.txt: Removed.

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

10 years ago2010-09-02 Nate Chapin <japhet@chromium.org>
japhet@chromium.org [Thu, 2 Sep 2010 16:19:36 +0000 (16:19 +0000)]
2010-09-02  Nate Chapin  <japhet@chromium.org>

        Reviewed by Adam Barth.

        Remove m_URL from FrameLoader and instead depend on Document's url.
        FrameLoader::url() will be removed in a later patch.

        http://bugs.webkit.org/show_bug.cgi?id=41165

        No new tests, since this predominantly a refactor. Updating
        fast/dom/early-frame-url.html.

        * WebCore.exp.in:
        * dom/Document.cpp:
        (WebCore::Document::Document):
        (WebCore::Document::updateURLForPushOrReplaceState):
        * loader/DocumentWriter.cpp:
        (WebCore::DocumentWriter::begin):
        * loader/FrameLoader.cpp:
        (WebCore::FrameLoader::iconURL):
        (WebCore::FrameLoader::didOpenURL):
        (WebCore::FrameLoader::didExplicitOpen):
        (WebCore::FrameLoader::receivedFirstData):
        (WebCore::FrameLoader::url):
        (WebCore::FrameLoader::setOutgoingReferrer):
        (WebCore::FrameLoader::startIconLoader):
        (WebCore::FrameLoader::commitIconURLToIconDatabase):
        (WebCore::FrameLoader::finishedParsing):
        (WebCore::FrameLoader::checkIfDisplayInsecureContent):
        (WebCore::FrameLoader::checkIfRunInsecureContent):
        (WebCore::FrameLoader::updateFirstPartyForCookies):
        (WebCore::FrameLoader::loadInSameDocument):
        (WebCore::FrameLoader::commitProvisionalLoad):
        (WebCore::FrameLoader::open):
        (WebCore::FrameLoader::shouldScrollToAnchor):
        * loader/FrameLoader.h:

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

10 years ago2010-09-01 Tony Gentilcore <tonyg@chromium.org>
tonyg@chromium.org [Thu, 2 Sep 2010 15:45:43 +0000 (15:45 +0000)]
2010-09-01  Tony Gentilcore  <tonyg@chromium.org>

        Reviewed by Adam Barth.

        Support <script defer> as specified by HTML5
        https://bugs.webkit.org/show_bug.cgi?id=40934

        * fast/dom/HTMLScriptElement/defer-double-defer-write-expected.txt: Added.
        * fast/dom/HTMLScriptElement/defer-double-defer-write.html: Added. Tests that a write of a deferred script from a deferred script will execute when the document is closed. The explicit close is necessary because this is a script created parser.
        * fast/dom/HTMLScriptElement/defer-double-write-expected.txt: Added.
        * fast/dom/HTMLScriptElement/defer-double-write.html: Added. Tests that a script block written from a deferred script will write into the new document.
        * fast/dom/HTMLScriptElement/defer-inline-script-expected.txt: Added.
        * fast/dom/HTMLScriptElement/defer-inline-script.html: Added. Tests that inline scripts are not deferred. This is consistent with HTML5 and inconsistent with IE.
        * fast/dom/HTMLScriptElement/defer-onbeforeload-expected.txt: Added.
        * fast/dom/HTMLScriptElement/defer-onbeforeload.html: Added. Tests that the beforeload event is fired immediately and is cancellable.
        * fast/dom/HTMLScriptElement/defer-script-invalid-url-expected.txt: Added.
        * fast/dom/HTMLScriptElement/defer-script-invalid-url.html: Added. Tests that deferred scripts with invalid URLs are ignored and that subsequent deferred scripts will be run.
        * fast/dom/HTMLScriptElement/defer-write-expected.txt: Added.
        * fast/dom/HTMLScriptElement/defer-write.html: Added. Tests that a basic write from a deferred script blows away the document.
        * fast/dom/HTMLScriptElement/resources/defer.js: Added.
        * fast/dom/HTMLScriptElement/resources/external.js: Added.
        * fast/dom/HTMLScriptElement/resources/shouldnotexecute.js: Added.
        * fast/dom/HTMLScriptElement/shouldnotexecute.js: Added.
        * fast/dom/HTMLScriptElement/two-defer-writes-expected.txt: Added.
        * fast/dom/HTMLScriptElement/two-defer-writes.html: Added. Tests that when a document.write from the first deferred script blows away the document, subsequent deferred scripts are not executed.
        * http/tests/misc/resources/defer-script.js: Added.
        * http/tests/misc/resources/external-script.js: Added.
        * http/tests/misc/resources/script-debug-body-background.js: Added.
        * http/tests/misc/resources/script-write-slow-stylesheet.js: Added.
        * http/tests/misc/resources/slow-defer-script.cgi: Added.
        * http/tests/misc/resources/slow-stylesheet.cgi: Added.
        * http/tests/misc/script-defer-after-slow-stylesheet-expected.txt: Added.
        * http/tests/misc/script-defer-after-slow-stylesheet.html: Added. Tests that deferred scripts respect blocking stylesheets.
        * http/tests/misc/script-defer-expected.txt: Added.
        * http/tests/misc/script-defer.html: Added. Tests basic ordering of deferred scripts.
2010-09-01  Tony Gentilcore  <tonyg@chromium.org>

        Reviewed by Adam Barth.

        Support <script defer> as specified by HTML5
        https://bugs.webkit.org/show_bug.cgi?id=40934

        Tests: fast/dom/HTMLScriptElement/defer-double-defer-write.html
               fast/dom/HTMLScriptElement/defer-double-write.html
               fast/dom/HTMLScriptElement/defer-inline-script.html
               fast/dom/HTMLScriptElement/defer-onbeforeload.html
               fast/dom/HTMLScriptElement/defer-script-invalid-url.html
               fast/dom/HTMLScriptElement/defer-write.html
               fast/dom/HTMLScriptElement/two-defer-writes.html
               http/tests/misc/script-defer-after-slow-stylesheet.html
               http/tests/misc/script-defer.html

        * dom/Document.cpp:
        (WebCore::Document::open): Allow implicit open for writes() while executing deferred scripts.
        * dom/DocumentParser.cpp:
        (WebCore::DocumentParser::DocumentParser):
        (WebCore::DocumentParser::startParsing):
        (WebCore::DocumentParser::prepareToStopParsing): If called when stopped or detached, it shouldn't reset to stopping.
        (WebCore::DocumentParser::stopParsing):
        (WebCore::DocumentParser::detach):
        * dom/DocumentParser.h:
        (WebCore::DocumentParser::isParsing):
        (WebCore::DocumentParser::isActive):
        (WebCore::DocumentParser::isStopping):
        (WebCore::DocumentParser::isDetached):
        * dom/RawDataDocumentParser.h:
        (WebCore::RawDataDocumentParser::finish):
        * dom/XMLDocumentParser.cpp:
        (WebCore::XMLDocumentParser::append):
        (WebCore::XMLDocumentParser::exitText):
        * dom/XMLDocumentParserLibxml2.cpp:
        (WebCore::XMLDocumentParser::doWrite):
        (WebCore::XMLDocumentParser::startElementNs):
        (WebCore::XMLDocumentParser::endElementNs):
        (WebCore::XMLDocumentParser::characters):
        (WebCore::XMLDocumentParser::error):
        (WebCore::XMLDocumentParser::processingInstruction):
        (WebCore::XMLDocumentParser::cdataBlock):
        (WebCore::XMLDocumentParser::comment):
        (WebCore::XMLDocumentParser::internalSubset):
        (WebCore::XMLDocumentParser::initializeParserContext):
        (WebCore::XMLDocumentParser::doEnd):
        * html/parser/HTMLDocumentParser.cpp:
        (WebCore::HTMLDocumentParser::prepareToStopParsing):
        (WebCore::HTMLDocumentParser::pumpTokenizerIfPossible):
        (WebCore::HTMLDocumentParser::pumpTokenizer):
        (WebCore::HTMLDocumentParser::insert):
        (WebCore::HTMLDocumentParser::append):
        (WebCore::HTMLDocumentParser::end):
        (WebCore::HTMLDocumentParser::attemptToEnd):
        (WebCore::HTMLDocumentParser::endIfDelayed):
        (WebCore::HTMLDocumentParser::notifyFinished):
        * html/parser/HTMLDocumentParser.h:
        * html/parser/HTMLScriptRunner.cpp:
        (WebCore::HTMLScriptRunner::~HTMLScriptRunner):
        (WebCore::HTMLScriptRunner::executeParsingBlockingScript):
        (WebCore::HTMLScriptRunner::executePendingScriptAndDispatchEvent):
        (WebCore::HTMLScriptRunner::executeScriptsWaitingForParsing):
        (WebCore::HTMLScriptRunner::requestDeferredScript):
        (WebCore::HTMLScriptRunner::runScript):
        * html/parser/HTMLScriptRunner.h:
        * loader/ImageDocument.cpp:
        (WebCore::ImageDocumentParser::finish):

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

10 years ago2010-09-02 Andrey Kosyakov <caseq@chromium.org>
caseq@chromium.org [Thu, 2 Sep 2010 15:29:03 +0000 (15:29 +0000)]
2010-09-02  Andrey Kosyakov  <caseq@chromium.org>

        Reviewed by Yury Semikhatsky.

        Web Inspector: HAR converter fails on POST requests with non-form content type.
        https://bugs.webkit.org/show_bug.cgi?id=45109

        * inspector/front-end/HAREntry.js:
        (WebInspector.HAREntry.prototype._buildPostData):

2010-09-02  Andrey Kosyakov  <caseq@chromium.org>

        Reviewed by Yury Semikhatsky.

        Web Inspector: HAR converter fails on POST requests with non-form content type.
        Migrated HAR tests to inspector-test2.js, enabled resource tracking, added test for XHR POST request.
        https://bugs.webkit.org/show_bug.cgi?id=45109

        * http/tests/inspector/resource-har-conversion-expected.txt:
        * http/tests/inspector/resource-har-conversion.html:
        * http/tests/inspector/resource-parameters-expected.txt:
        * http/tests/inspector/resource-test2.js: Added.
        (initialize_ResourceTest.InspectorTest.resourceURLComparer):
        (initialize_ResourceTest):
        * platform/chromium-win/http/tests/inspector/resource-parameters-expected.txt:
        * platform/chromium-win/http/tests/inspector/resource-har-conversion-expected.txt: Added.
        * platform/win/http/tests/inspector/console-xhr-logging-expected.txt: Added.
        * platform/win/http/tests/inspector/resource-har-conversion-expected.txt: Added.
        * platform/win/http/tests/inspector/resource-parameters-expected.txt:

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

10 years ago2010-09-02 Adam Barth <abarth@webkit.org>
abarth@webkit.org [Thu, 2 Sep 2010 13:35:54 +0000 (13:35 +0000)]
2010-09-02  Adam Barth  <abarth@webkit.org>

        Reviewed by Eric Seidel.

        Add WTFURL to the JavaScriptCore build on Mac
        https://bugs.webkit.org/show_bug.cgi?id=45075

        Building code is good.

        * JavaScriptCore.xcodeproj/project.pbxproj:

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

10 years ago2010-09-02 Andreas Kling <andreas.kling@nokia.com>
andreas.kling@nokia.com [Thu, 2 Sep 2010 13:25:55 +0000 (13:25 +0000)]
2010-09-02  Andreas Kling  <andreas.kling@nokia.com>

        Rubber-stamped by Simon Hausmann.

        [Qt] REGRESSION(r62898): tst_QWebFrame crashing
        https://bugs.webkit.org/show_bug.cgi?id=43039

        Rolling out the offending change <http://trac.webkit.org/changeset/62898>

        * tests/qwebframe/tst_qwebframe.cpp:
        (tst_QWebFrame::evalJSV):
2010-09-02  Andreas Kling  <andreas.kling@nokia.com>

        Rubber-stamped by Simon Hausmann.

        [Qt] REGRESSION(r62898): tst_QWebFrame crashing
        https://bugs.webkit.org/show_bug.cgi?id=43039

        Rolling out the offending change <http://trac.webkit.org/changeset/62898>

        * bridge/qt/qt_instance.cpp:
        (JSC::Bindings::QtInstance::markAggregate):

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

10 years ago2010-09-02 Peter Kasting <pkasting@google.com>
commit-queue@webkit.org [Thu, 2 Sep 2010 13:14:24 +0000 (13:14 +0000)]
2010-09-02  Peter Kasting  <pkasting@google.com>

        Reviewed by Dimitri Glazkov.

        Implement [continuous]MouseScrollBy() on Chromium, and partly on GTK.
        https://bugs.webkit.org/show_bug.cgi?id=45073

        * platform/chromium/test_expectations.txt: Unskip tests that should now pass.
        * platform/gtk/scrollbars/overflow-scrollbar-horizontal-wheel-scroll.html: Convert mouseWheelTo() to mouseScrollBy().
2010-09-02  Peter Kasting  <pkasting@google.com>

        Reviewed by Dimitri Glazkov.

        Implement [continuous]MouseScrollBy() on Chromium, and partly on GTK.
        https://bugs.webkit.org/show_bug.cgi?id=45073

        * DumpRenderTree/chromium/EventSender.cpp:
        (EventSender::EventSender):
        (EventSender::mouseScrollBy):
        (EventSender::continuousMouseScrollBy):
        (EventSender::sendCurrentTouchEvent):
        (EventSender::handleMouseWheel):
        * DumpRenderTree/chromium/EventSender.h:
        * DumpRenderTree/gtk/EventSender.cpp:
        (mouseScrollByCallback):
        (continuousMouseScrollByCallback):

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

10 years ago2010-09-02 Alexey Proskuryakov <ap@apple.com>
ap@apple.com [Thu, 2 Sep 2010 12:57:58 +0000 (12:57 +0000)]
2010-09-02  Alexey Proskuryakov  <ap@apple.com>

        Reviewed by Oliver Hunt.

        https://bugs.webkit.org/show_bug.cgi?id=43230
        <rdar://problem/8254215> REGRESSION: Memory leak within JSParser::JSParser

        One can't delete a ThreadSpecific object that has data in it. It's not even possible to
        enumerate data objects in all threads, much less destroy them from a thread that's destroying
        the ThreadSpecific.

        * parser/JSParser.cpp:
        (JSC::JSParser::JSParser):
        * runtime/JSGlobalData.h:
        * wtf/WTFThreadData.cpp:
        (WTF::WTFThreadData::WTFThreadData):
        * wtf/WTFThreadData.h:
        (WTF::WTFThreadData::approximatedStackStart):
        Moved stack guard tracking from JSGlobalData to WTFThreadData.

        * wtf/ThreadSpecific.h: Made destructor unimplemented. It's dangerous, and we probably won't
        ever face a situation where we'd want to delete a ThreadSpecific object.

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

10 years ago2010-09-02 Anton Muhin <antonm@chromium.org>
antonm@chromium.org [Thu, 2 Sep 2010 12:29:00 +0000 (12:29 +0000)]
2010-09-02  Anton Muhin  <antonm@chromium.org>

        Reviewed by Tony Chang.

        Fix indentation.
        https://bugs.webkit.org/show_bug.cgi?id=44678

        * bindings/scripts/CodeGeneratorV8.pm:

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

10 years ago2010-09-01 Ilya Tikhonovsky <loislo@chromium.org>
loislo@chromium.org [Thu, 2 Sep 2010 12:09:07 +0000 (12:09 +0000)]
2010-09-01  Ilya Tikhonovsky  <loislo@chromium.org>

        Reviewed by Yury Semikhatsky.

        WebInspector: protocol related Inspector's tests are failing in Chromium.

        The expectation is different because Chromium tests use test_shell.
        1) a lot of console messages automaticaly published by test_shell;
        2) debugger was enabled by default;
        3) for (i in an_array) produces some garbage.

        The solution:
        1) override reportProtocolError and console.error functions;
        2) debugger was explicitly disabled;
        3) just fixed.

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

        * inspector/report-API-errors.html:
        * inspector/report-protocol-errors.html:
        * LayoutTests/platform/chromium/test_expectations.txt

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

10 years ago2010-09-02 Sheriff Bot <webkit.review.bot@gmail.com>
andreas.kling@nokia.com [Thu, 2 Sep 2010 11:46:57 +0000 (11:46 +0000)]
2010-09-02  Sheriff Bot  <webkit.review.bot@gmail.com>

        Unreviewed, rolling out r66656.
        http://trac.webkit.org/changeset/66656
        https://bugs.webkit.org/show_bug.cgi?id=45105

        won't pass after 66655 rollout (Requested by kling on
        #webkit).

        * fast/dom/Selection/script-tests/wrong-document-err.js: Removed.
        * fast/dom/Selection/wrong-document-err-expected.txt: Removed.
        * fast/dom/Selection/wrong-document-err.html: Removed.

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

10 years ago2010-09-02 Sheriff Bot <webkit.review.bot@gmail.com>
andreas.kling@nokia.com [Thu, 2 Sep 2010 11:45:15 +0000 (11:45 +0000)]
2010-09-02  Sheriff Bot  <webkit.review.bot@gmail.com>

        Unreviewed, rolling out r66655.
        http://trac.webkit.org/changeset/66655
        https://bugs.webkit.org/show_bug.cgi?id=45104

        broke some editing tests (Requested by kling on #webkit).

        * page/DOMSelection.cpp:
        (WebCore::DOMSelection::collapse):
        (WebCore::DOMSelection::selectAllChildren):

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

10 years ago2010-09-02 Sheriff Bot <webkit.review.bot@gmail.com>
commit-queue@webkit.org [Thu, 2 Sep 2010 11:43:30 +0000 (11:43 +0000)]
2010-09-02  Sheriff Bot  <webkit.review.bot@gmail.com>

        Unreviewed, rolling out r66649.
        http://trac.webkit.org/changeset/66649
        https://bugs.webkit.org/show_bug.cgi?id=45103

        It broke ~2000 tests on Qt bot (Requested by Ossy on #webkit).

        * fast/dom/HTMLScriptElement/defer-double-defer-write-expected.txt: Removed.
        * fast/dom/HTMLScriptElement/defer-double-defer-write.html: Removed.
        * fast/dom/HTMLScriptElement/defer-double-write-expected.txt: Removed.
        * fast/dom/HTMLScriptElement/defer-double-write.html: Removed.
        * fast/dom/HTMLScriptElement/defer-inline-script-expected.txt: Removed.
        * fast/dom/HTMLScriptElement/defer-inline-script.html: Removed.
        * fast/dom/HTMLScriptElement/defer-onbeforeload-expected.txt: Removed.
        * fast/dom/HTMLScriptElement/defer-onbeforeload.html: Removed.
        * fast/dom/HTMLScriptElement/defer-script-invalid-url-expected.txt: Removed.
        * fast/dom/HTMLScriptElement/defer-script-invalid-url.html: Removed.
        * fast/dom/HTMLScriptElement/defer-write-expected.txt: Removed.
        * fast/dom/HTMLScriptElement/defer-write.html: Removed.
        * fast/dom/HTMLScriptElement/resources/defer.js: Removed.
        * fast/dom/HTMLScriptElement/resources/external.js: Removed.
        * fast/dom/HTMLScriptElement/resources/shouldnotexecute.js: Removed.
        * fast/dom/HTMLScriptElement/shouldnotexecute.js: Removed.
        * fast/dom/HTMLScriptElement/two-defer-writes-expected.txt: Removed.
        * fast/dom/HTMLScriptElement/two-defer-writes.html: Removed.
        * http/tests/misc/resources/defer-script.js: Removed.
        * http/tests/misc/resources/external-script.js: Removed.
        * http/tests/misc/resources/script-debug-body-background.js: Removed.
        * http/tests/misc/resources/script-write-slow-stylesheet.js: Removed.
        * http/tests/misc/resources/slow-defer-script.cgi: Removed.
        * http/tests/misc/resources/slow-stylesheet.cgi: Removed.
        * http/tests/misc/script-defer-after-slow-stylesheet-expected.txt: Removed.
        * http/tests/misc/script-defer-after-slow-stylesheet.html: Removed.
        * http/tests/misc/script-defer-expected.txt: Removed.
        * http/tests/misc/script-defer.html: Removed.
2010-09-02  Sheriff Bot  <webkit.review.bot@gmail.com>

        Unreviewed, rolling out r66649.
        http://trac.webkit.org/changeset/66649
        https://bugs.webkit.org/show_bug.cgi?id=45103

        It broke ~2000 tests on Qt bot (Requested by Ossy on #webkit).

        * dom/Document.cpp:
        (WebCore::Document::open):
        * dom/DocumentParser.cpp:
        (WebCore::DocumentParser::DocumentParser):
        (WebCore::DocumentParser::detach):
        * dom/DocumentParser.h:
        (WebCore::DocumentParser::isDetached):
        (WebCore::DocumentParser::stopParsing):
        * dom/RawDataDocumentParser.h:
        (WebCore::RawDataDocumentParser::finish):
        * dom/XMLDocumentParser.cpp:
        (WebCore::XMLDocumentParser::append):
        (WebCore::XMLDocumentParser::exitText):
        * dom/XMLDocumentParserLibxml2.cpp:
        (WebCore::XMLDocumentParser::doWrite):
        (WebCore::XMLDocumentParser::startElementNs):
        (WebCore::XMLDocumentParser::endElementNs):
        (WebCore::XMLDocumentParser::characters):
        (WebCore::XMLDocumentParser::error):
        (WebCore::XMLDocumentParser::processingInstruction):
        (WebCore::XMLDocumentParser::cdataBlock):
        (WebCore::XMLDocumentParser::comment):
        (WebCore::XMLDocumentParser::internalSubset):
        (WebCore::XMLDocumentParser::initializeParserContext):
        (WebCore::XMLDocumentParser::doEnd):
        * dom/XMLDocumentParserQt.cpp:
        (WebCore::XMLDocumentParser::initializeParserContext):
        (WebCore::XMLDocumentParser::doEnd):
        (WebCore::XMLDocumentParser::parse):
        * html/parser/HTMLDocumentParser.cpp:
        (WebCore::HTMLDocumentParser::pumpTokenizerIfPossible):
        (WebCore::HTMLDocumentParser::pumpTokenizer):
        (WebCore::HTMLDocumentParser::insert):
        (WebCore::HTMLDocumentParser::append):
        (WebCore::HTMLDocumentParser::end):
        (WebCore::HTMLDocumentParser::attemptToEnd):
        (WebCore::HTMLDocumentParser::endIfDelayed):
        (WebCore::HTMLDocumentParser::notifyFinished):
        * html/parser/HTMLDocumentParser.h:
        * html/parser/HTMLScriptRunner.cpp:
        (WebCore::HTMLScriptRunner::~HTMLScriptRunner):
        (WebCore::HTMLScriptRunner::executeParsingBlockingScript):
        (WebCore::HTMLScriptRunner::executePendingScriptAndDispatchEvent):
        (WebCore::HTMLScriptRunner::runScript):
        * html/parser/HTMLScriptRunner.h:
        * loader/ImageDocument.cpp:
        (WebCore::ImageDocumentParser::finish):

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

10 years ago2010-09-02 Eric Seidel <eric@webkit.org>
eric@webkit.org [Thu, 2 Sep 2010 11:29:26 +0000 (11:29 +0000)]
2010-09-02  Eric Seidel  <eric@webkit.org>

        Reviewed by Dimitri Glazkov.

        Share more code between HTMLObjectElement and HTMLEmbedElement
        https://bugs.webkit.org/show_bug.cgi?id=45054

        This pushes more of HTMLObjectElement code down into
        HTMLPlugInImageElement so that it can be shared with
        HTMLEmbedElement.

        The most notable changes are:
        - HTMLEmbedElement now "delays" updating the widget until
          all of its children are parsed (this matches HTMLObjectElement).
          However, since HTMLEmbedElement can't have children, this is actually
          no delay.
        - useFallbackContent is now virtual, allowing HTMLEmbedElement and
          HTMLObjectElement to share the same code paths, and the <embed>
          case to just always return false for useFallbackContent().

        This is the final (fourth) part of this change.

        No functional change, thus no tests.

        * html/HTMLEmbedElement.cpp:
        * html/HTMLEmbedElement.h:
        * html/HTMLObjectElement.cpp:
        (WebCore::HTMLObjectElement::rendererIsNeeded):
        * html/HTMLObjectElement.h:
        * html/HTMLPlugInImageElement.cpp:
        (WebCore::HTMLPlugInImageElement::HTMLPlugInImageElement):
        (WebCore::HTMLPlugInImageElement::recalcStyle):
        (WebCore::HTMLPlugInImageElement::attach):
        (WebCore::HTMLPlugInImageElement::detach):
        (WebCore::HTMLPlugInImageElement::finishParsingChildren):
        * html/HTMLPlugInImageElement.h:

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

10 years ago2010-09-02 Adam Barth <abarth@webkit.org>
abarth@webkit.org [Thu, 2 Sep 2010 11:02:08 +0000 (11:02 +0000)]
2010-09-02  Adam Barth  <abarth@webkit.org>

        Reviewed by Eric Seidel.

        Move takeAllChildrenFrom to ContainerNode
        https://bugs.webkit.org/show_bug.cgi?id=45066

        We're going to reuse this method for XMLDocumentLoader, so it's better
        to put it in a more general location.

        * dom/ContainerNode.cpp:
        (WebCore::ContainerNode::takeAllChildrenFrom):
        * dom/ContainerNode.h:
        * html/parser/HTMLTreeBuilder.cpp:
        (WebCore::HTMLTreeBuilder::FragmentParsingContext::finished):

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

10 years ago2010-09-02 Eric Seidel <eric@webkit.org>
eric@webkit.org [Thu, 2 Sep 2010 10:58:04 +0000 (10:58 +0000)]
2010-09-02  Eric Seidel  <eric@webkit.org>

        Reviewed by Dimitri Glazkov.

        Share more code between HTMLObjectElement and HTMLEmbedElement
        https://bugs.webkit.org/show_bug.cgi?id=45054

        This pushes more of HTMLObjectElement code down into
        HTMLPlugInImageElement so that it can be shared with HTMLEmbedElement.

        This patch was originally written in one piece and reviewed by Dimitri.
        I'm landing it as four separate changes for easier readability and less
        chance of regression.

        No functional change, thus no tests.

        * html/HTMLEmbedElement.cpp:
        (WebCore::HTMLEmbedElement::HTMLEmbedElement):
        (WebCore::HTMLEmbedElement::create):
        * html/HTMLEmbedElement.h:
        * html/HTMLObjectElement.cpp:
        (WebCore::HTMLObjectElement::HTMLObjectElement):
        * html/HTMLObjectElement.h:
        * html/HTMLPlugInImageElement.cpp:
        (WebCore::HTMLPlugInImageElement::HTMLPlugInImageElement):
        (WebCore::HTMLPlugInImageElement::detach):
        (WebCore::HTMLPlugInImageElement::finishParsingChildren):
        * html/HTMLPlugInImageElement.h:
        * html/HTMLTagNames.in:

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

10 years ago2010-09-02 Andreas Kling <andreas.kling@nokia.com>
andreas.kling@nokia.com [Thu, 2 Sep 2010 10:54:23 +0000 (10:54 +0000)]
2010-09-02  Andreas Kling  <andreas.kling@nokia.com>

        Unreviewed, forgot to add the new layout test in last commit.

        * fast/dom/Selection/script-tests/wrong-document-err.js: Added.
        * fast/dom/Selection/wrong-document-err-expected.txt: Added.
        * fast/dom/Selection/wrong-document-err.html: Added.

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

10 years ago2010-09-01 Andreas Kling <andreas.kling@nokia.com>
andreas.kling@nokia.com [Thu, 2 Sep 2010 10:49:55 +0000 (10:49 +0000)]
2010-09-01  Andreas Kling  <andreas.kling@nokia.com>

        Reviewed by Darin Adler.

        DOM Selection: collapse() and selectAllChildren() should throw WRONG_DOCUMENT_ERR if node belongs to other document
        https://bugs.webkit.org/show_bug.cgi?id=44595

        Spec links:
        http://www.whatwg.org/specs/web-apps/current-work/#dom-selection-collapse
        http://www.whatwg.org/specs/web-apps/current-work/#dom-selection-selectallchildren

        Test: fast/dom/Selection/wrong-document-err.html

        * page/DOMSelection.cpp:
        (WebCore::DOMSelection::collapse):
        (WebCore::DOMSelection::selectAllChildren):
2010-09-01  Andreas Kling  <andreas.kling@nokia.com>

        Reviewed by Darin Adler.

        DOM Selection: collapse() and selectAllChildren() should throw WRONG_DOCUMENT_ERR if node belongs to other document
        https://bugs.webkit.org/show_bug.cgi?id=44595

        Spec links:
        http://www.whatwg.org/specs/web-apps/current-work/#dom-selection-collapse
        http://www.whatwg.org/specs/web-apps/current-work/#dom-selection-selectallchildren

        * fast/dom/Selection/script-tests/wrong-document-err.js: Added.
        * fast/dom/Selection/wrong-document-err-expected.txt: Added.
        * fast/dom/Selection/wrong-document-err.html: Added.

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

10 years ago[Chromium DevTools] Unreviewed DevTools tests fix after r66637.
mnaganov@chromium.org [Thu, 2 Sep 2010 10:18:13 +0000 (10:18 +0000)]
[Chromium DevTools] Unreviewed DevTools tests fix after r66637.

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

10 years ago2010-09-02 Eric Seidel <eric@webkit.org>
eric@webkit.org [Thu, 2 Sep 2010 10:05:36 +0000 (10:05 +0000)]
2010-09-02  Eric Seidel  <eric@webkit.org>

        Reviewed by Dimitri Glazkov.

        Share more code between HTMLObjectElement and HTMLEmbedElement
        https://bugs.webkit.org/show_bug.cgi?id=45054

        This pushes more of HTMLObjectElement code down into
        HTMLPlugInImageElement so that it can be shared with HTMLEmbedElement.

        I also moved a little code from HTMLPluginElement to HTMLPlugInImageElement
        since HTMLAppletElement does not need to share this same widget update logic.
        This is a small correction from the previous change.

        This patch was originally written in one piece and reviewed by Dimitri.
        I'm landing it as three separate changes for easier readability and less
        chance of regression.

        No functional change, thus no tests.

        * html/HTMLEmbedElement.cpp:
        * html/HTMLEmbedElement.h:
        * html/HTMLObjectElement.cpp:
        (WebCore::HTMLObjectElement::attach):
        (WebCore::HTMLObjectElement::finishParsingChildren):
        (WebCore::HTMLObjectElement::detach):
        (WebCore::HTMLObjectElement::recalcStyle):
        (WebCore::HTMLObjectElement::childrenChanged):
        (WebCore::HTMLObjectElement::renderFallbackContent):
        * html/HTMLObjectElement.h:
        (WebCore::HTMLObjectElement::useFallbackContent):
        * html/HTMLPlugInElement.cpp:
        * html/HTMLPlugInElement.h:
        * html/HTMLPlugInImageElement.cpp:
        (WebCore::HTMLPlugInImageElement::createRenderer):
        (WebCore::HTMLPlugInImageElement::updateWidget):
        (WebCore::HTMLPlugInImageElement::updateWidgetCallback):
        * html/HTMLPlugInImageElement.h:
        (WebCore::HTMLPlugInImageElement::canLazyAttach):
        (WebCore::HTMLPlugInImageElement::useFallbackContent):

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

10 years ago2010-09-02 Jer Noble <jer.noble@apple.com>
eric@webkit.org [Thu, 2 Sep 2010 09:32:05 +0000 (09:32 +0000)]
2010-09-02  Jer Noble  <jer.noble@apple.com>

        Reviewed by Darin Adler.

        WebKit should not accept PDFs as video.
        https://bugs.webkit.org/show_bug.cgi?id=45013

        The code in MediaPlayerPrivate::createQTMovie has been re-arranged.
        First, the component disabling is done only once. In 64-bit QTKit will
        store the list of disabled components and disable them once QTKitServer
        starts, so there is no need to disable them repeatedly.  However,
        because of a bug in 64-bit QTKit, additional requests of the exact same
        component description will be ignored if QTKitServer is not yet running.
        To work around this, we must provide the exact component flags for each
        eat/PDF and grip/PDF component we wish to disable.

        * platform/graphics/mac/MediaPlayerPrivateQTKit.mm:
        (WebCore::disableComponentsOnce): Added.
        (WebCore::MediaPlayerPrivate::createQTMovie): Moved the component
            disabling code into disableComponentsOnce.

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

10 years ago2010-09-02 Philippe Normand <pnormand@igalia.com>
philn@webkit.org [Thu, 2 Sep 2010 09:17:16 +0000 (09:17 +0000)]
2010-09-02  Philippe Normand  <pnormand@igalia.com>

        Unreviewed, GTK build fix.

        * platform/graphics/gstreamer/GStreamerGWorld.cpp:
        (WebCore::GStreamerGWorld::enterFullscreen):

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

10 years ago2010-09-02 Eric Seidel <eric@webkit.org>
eric@webkit.org [Thu, 2 Sep 2010 09:10:21 +0000 (09:10 +0000)]
2010-09-02  Eric Seidel  <eric@webkit.org>

        Reviewed by Dimitri Glazkov.

        Share more code between HTMLObjectElement and HTMLEmbedElement
        https://bugs.webkit.org/show_bug.cgi?id=45054

        This pushes more of HTMLObjectElement code down into
        HTMLPlugInImageElement so that it can be shared with HTMLEmbedElement.

        I also moved a little code from HTMLPluginElement to HTMLPlugInImageElement
        since HTMLAppletElement does not need to share this same widget update logic.
        This is a small correction from the previous change.

        This patch was originally written in one piece and reviewed by Dimitri.
        I'm landing it as two separate changes for easier readability and less
        chance of regression.

        No functional change, thus no tests.

        * html/HTMLEmbedElement.cpp:
        (WebCore::HTMLEmbedElement::HTMLEmbedElement):
        (WebCore::HTMLEmbedElement::mapToEntry):
        (WebCore::HTMLEmbedElement::parseMappedAttribute):
        (WebCore::HTMLEmbedElement::rendererIsNeeded):
        (WebCore::HTMLEmbedElement::attach):
        (WebCore::HTMLEmbedElement::updateWidget):
        (WebCore::HTMLEmbedElement::insertedIntoDocument):
        (WebCore::HTMLEmbedElement::removedFromDocument):
        (WebCore::HTMLEmbedElement::attributeChanged):
        * html/HTMLEmbedElement.h:
        * html/HTMLObjectElement.cpp:
        (WebCore::HTMLObjectElement::HTMLObjectElement):
        (WebCore::HTMLObjectElement::parseMappedAttribute):
        (WebCore::HTMLObjectElement::rendererIsNeeded):
        (WebCore::HTMLObjectElement::attach):
        (WebCore::HTMLObjectElement::updateWidget):
        (WebCore::HTMLObjectElement::finishParsingChildren):
        (WebCore::HTMLObjectElement::detach):
        (WebCore::HTMLObjectElement::insertedIntoDocument):
        (WebCore::HTMLObjectElement::removedFromDocument):
        (WebCore::HTMLObjectElement::recalcStyle):
        (WebCore::HTMLObjectElement::childrenChanged):
        (WebCore::HTMLObjectElement::renderFallbackContent):
        * html/HTMLObjectElement.h:
        * html/HTMLPlugInElement.cpp:
        * html/HTMLPlugInElement.h:
        * html/HTMLPlugInImageElement.cpp:
        (WebCore::HTMLPlugInImageElement::HTMLPlugInImageElement):
        (WebCore::HTMLPlugInImageElement::renderEmbeddedObject):
        * html/HTMLPlugInImageElement.h:
        (WebCore::HTMLPlugInImageElement::needsWidgetUpdate):
        (WebCore::HTMLPlugInImageElement::setNeedsWidgetUpdate):
        * loader/SubframeLoader.cpp:
        (WebCore::SubframeLoader::requestObject):
        (WebCore::SubframeLoader::loadPlugin):
        * loader/SubframeLoader.h:
        * rendering/RenderEmbeddedObject.cpp:
        (WebCore::updateWidgetForObjectElement):
        (WebCore::updateWidgetForEmbedElement):

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

10 years ago2010-09-02 Tony Gentilcore <tonyg@chromium.org>
tonyg@chromium.org [Thu, 2 Sep 2010 09:05:59 +0000 (09:05 +0000)]
2010-09-02  Tony Gentilcore  <tonyg@chromium.org>

        Reviewed by Adam Barth.

        Support <script defer> as specified by HTML5
        https://bugs.webkit.org/show_bug.cgi?id=40934

        * fast/dom/HTMLScriptElement/defer-double-defer-write-expected.txt: Added.
        * fast/dom/HTMLScriptElement/defer-double-defer-write.html: Added. Tests that a write of a deferred script from a deferred script will execute when the document is closed. The explicit close is necessary because this is a script created parser.
        * fast/dom/HTMLScriptElement/defer-double-write-expected.txt: Added.
        * fast/dom/HTMLScriptElement/defer-double-write.html: Added. Tests that a script block written from a deferred script will write into the new document.
        * fast/dom/HTMLScriptElement/defer-inline-script-expected.txt: Added.
        * fast/dom/HTMLScriptElement/defer-inline-script.html: Added. Tests that inline scripts are not deferred. This is consistent with HTML5 and inconsistent with IE.
        * fast/dom/HTMLScriptElement/defer-onbeforeload-expected.txt: Added.
        * fast/dom/HTMLScriptElement/defer-onbeforeload.html: Added. Tests that the beforeload event is fired immediately and is cancellable.
        * fast/dom/HTMLScriptElement/defer-script-invalid-url-expected.txt: Added.
        * fast/dom/HTMLScriptElement/defer-script-invalid-url.html: Added. Tests that deferred scripts with invalid URLs are ignored and that subsequent deferred scripts will be run.
        * fast/dom/HTMLScriptElement/defer-write-expected.txt: Added.
        * fast/dom/HTMLScriptElement/defer-write.html: Added. Tests that a basic write from a deferred script blows away the document.
        * fast/dom/HTMLScriptElement/resources/defer.js: Added.
        * fast/dom/HTMLScriptElement/resources/external.js: Added.
        * fast/dom/HTMLScriptElement/resources/shouldnotexecute.js: Added.
        * fast/dom/HTMLScriptElement/shouldnotexecute.js: Added.
        * fast/dom/HTMLScriptElement/two-defer-writes-expected.txt: Added.
        * fast/dom/HTMLScriptElement/two-defer-writes.html: Added. Tests that when a document.write from the first deferred script blows away the document, subsequent deferred scripts are not executed.
        * http/tests/misc/resources/defer-script.js: Added.
        * http/tests/misc/resources/external-script.js: Added.
        * http/tests/misc/resources/script-debug-body-background.js: Added.
        * http/tests/misc/resources/script-write-slow-stylesheet.js: Added.
        * http/tests/misc/resources/slow-defer-script.cgi: Added.
        * http/tests/misc/resources/slow-stylesheet.cgi: Added.
        * http/tests/misc/script-defer-after-slow-stylesheet-expected.txt: Added.
        * http/tests/misc/script-defer-after-slow-stylesheet.html: Added. Tests that deferred scripts respect blocking stylesheets.
        * http/tests/misc/script-defer-expected.txt: Added.
        * http/tests/misc/script-defer.html: Added. Tests basic ordering of deferred scripts.
2010-09-02  Tony Gentilcore  <tonyg@chromium.org>

        Reviewed by Adam Barth.

        Support <script defer> as specified by HTML5
        https://bugs.webkit.org/show_bug.cgi?id=40934

        Tests: fast/dom/HTMLScriptElement/defer-double-defer-write.html
               fast/dom/HTMLScriptElement/defer-double-write.html
               fast/dom/HTMLScriptElement/defer-inline-script.html
               fast/dom/HTMLScriptElement/defer-onbeforeload.html
               fast/dom/HTMLScriptElement/defer-script-invalid-url.html
               fast/dom/HTMLScriptElement/defer-write.html
               fast/dom/HTMLScriptElement/two-defer-writes.html
               http/tests/misc/script-defer-after-slow-stylesheet.html
               http/tests/misc/script-defer.html

        * dom/Document.cpp:
        (WebCore::Document::open): Allow implicit open for writes() while executing deferred scripts.
        * dom/DocumentParser.cpp:
        (WebCore::DocumentParser::DocumentParser):
        (WebCore::DocumentParser::startParsing):
        (WebCore::DocumentParser::prepareToStopParsing): If called when stopped or detached, it shouldn't reset to stopping.
        (WebCore::DocumentParser::stopParsing):
        (WebCore::DocumentParser::detach):
        * dom/DocumentParser.h:
        (WebCore::DocumentParser::isParsing):
        (WebCore::DocumentParser::isActive):
        (WebCore::DocumentParser::isStopping):
        (WebCore::DocumentParser::isDetached):
        * dom/RawDataDocumentParser.h:
        (WebCore::RawDataDocumentParser::finish):
        * dom/XMLDocumentParser.cpp:
        (WebCore::XMLDocumentParser::append):
        (WebCore::XMLDocumentParser::exitText):
        * dom/XMLDocumentParserLibxml2.cpp:
        (WebCore::XMLDocumentParser::doWrite):
        (WebCore::XMLDocumentParser::startElementNs):
        (WebCore::XMLDocumentParser::endElementNs):
        (WebCore::XMLDocumentParser::characters):
        (WebCore::XMLDocumentParser::error):
        (WebCore::XMLDocumentParser::processingInstruction):
        (WebCore::XMLDocumentParser::cdataBlock):
        (WebCore::XMLDocumentParser::comment):
        (WebCore::XMLDocumentParser::internalSubset):
        (WebCore::XMLDocumentParser::initializeParserContext):
        (WebCore::XMLDocumentParser::doEnd):
        * html/parser/HTMLDocumentParser.cpp:
        (WebCore::HTMLDocumentParser::prepareToStopParsing):
        (WebCore::HTMLDocumentParser::pumpTokenizerIfPossible):
        (WebCore::HTMLDocumentParser::pumpTokenizer):
        (WebCore::HTMLDocumentParser::insert):
        (WebCore::HTMLDocumentParser::append):
        (WebCore::HTMLDocumentParser::end):
        (WebCore::HTMLDocumentParser::attemptToEnd):
        (WebCore::HTMLDocumentParser::endIfDelayed):
        (WebCore::HTMLDocumentParser::notifyFinished):
        * html/parser/HTMLDocumentParser.h:
        * html/parser/HTMLScriptRunner.cpp:
        (WebCore::HTMLScriptRunner::~HTMLScriptRunner):
        (WebCore::HTMLScriptRunner::executeParsingBlockingScript):
        (WebCore::HTMLScriptRunner::executePendingScriptAndDispatchEvent):
        (WebCore::HTMLScriptRunner::executeScriptsWaitingForParsing):
        (WebCore::HTMLScriptRunner::requestDeferredScript):
        (WebCore::HTMLScriptRunner::runScript):
        * html/parser/HTMLScriptRunner.h:
        * loader/ImageDocument.cpp:
        (WebCore::ImageDocumentParser::finish):

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

10 years ago2010-09-02 Philippe Normand <pnormand@igalia.com>
philn@webkit.org [Thu, 2 Sep 2010 08:25:45 +0000 (08:25 +0000)]
2010-09-02  Philippe Normand  <pnormand@igalia.com>

        Unreviewed, skipping new failing media test.

        [Qt] media/media-can-play-mpeg4-video.html fails
        https://bugs.webkit.org/show_bug.cgi?id=45093

        * platform/qt/Skipped:

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

10 years ago2010-09-02 Ilya Sherman <isherman@google.com>
commit-queue@webkit.org [Thu, 2 Sep 2010 07:52:42 +0000 (07:52 +0000)]
2010-09-02  Ilya Sherman  <isherman@google.com>

        Reviewed by Eric Seidel.

        Decompose computing an element's inherited language, expose this
        capability to clients (in particular, for Chromium).
        https://bugs.webkit.org/show_bug.cgi?id=44803

        No new tests -- just refactoring + exposing code.

        * css/CSSStyleSelector.cpp:
        (WebCore::CSSStyleSelector::SelectorChecker::checkOneSelector):
        * dom/Element.cpp:
        (WebCore::Element::computeInheritedLang):
        * dom/Element.h:
2010-09-02  Ilya Sherman  <isherman@google.com>

        Reviewed by Eric Seidel.

        Exposing computing an element's inherited language, per the DOM, in the
        Chromium API -- primarily for use with autofill i18n.
        https://bugs.webkit.org/show_bug.cgi?id=44803

        * public/WebElement.h:
        * src/WebElement.cpp:
        (WebKit::WebElement::computeInheritedLanguage):

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

10 years ago2010-08-31 Philippe Normand <pnormand@igalia.com>
philn@webkit.org [Thu, 2 Sep 2010 07:07:27 +0000 (07:07 +0000)]
2010-08-31  Philippe Normand  <pnormand@igalia.com>

        Reviewed by Eric Carlson.

        [GStreamer] can't play m4v videos
        https://bugs.webkit.org/show_bug.cgi?id=44951

        Fixed registration of the m4v media type in the hashtable used by
        the player to report if it supports a given media type.

        Test: media/media-can-play-mpeg4-video.html

        * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:
        (WebCore::mimeTypeCache):

LayoutTests:

        Reviewed by Eric Carlson.

        [GStreamer] can't play m4v videos
        https://bugs.webkit.org/show_bug.cgi?id=44951

        Test similar to media-can-play-mpeg-audio.html but for videos. For
        now only m4v and mp4 types are tested.

        * media/media-can-play-mpeg4-video-expected.txt: Added.
        * media/media-can-play-mpeg4-video.html: Added.

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

10 years ago2010-09-01 Philippe Normand <pnormand@igalia.com>
philn@webkit.org [Thu, 2 Sep 2010 06:49:23 +0000 (06:49 +0000)]
2010-09-01  Philippe Normand  <pnormand@igalia.com>

        Reviewed by Martin Robinson.

        [GTK] warning: unused variable "queryResult"
        https://bugs.webkit.org/show_bug.cgi?id=44998

        Fix the misbehavior introduced in r66573. The gst_element_query()
        call needs to be done whatever the GStreamer version used.

        * platform/graphics/gstreamer/GStreamerGWorld.cpp:
        (WebCore::GStreamerGWorld::enterFullscreen):

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

10 years agoUpdated Radar link
mitz@apple.com [Thu, 2 Sep 2010 06:45:52 +0000 (06:45 +0000)]
Updated Radar link

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

10 years agoAdd support for autocorrection UI on Mac OS X.
mitz@apple.com [Thu, 2 Sep 2010 06:43:50 +0000 (06:43 +0000)]
Add support for autocorrection UI on Mac OS X.
https://bugs.webkit.org/show_bug.cgi?id=44958
<rdar://problem/7299621>

Patch by Jia Pu <jpu@apple.com> on 2010-09-01
Reviewed by Dan Bernstein.

WebCore:

Several new member methods are added to EditorClient for communication
between WebCore and WebKit. A new handler, executeCancelOperation(), is
added to EditorCommand.cpp so that WebCore can intercept the ESC key event
to dismiss autocorrection UI. A new DocumentMarker value, RejectedCorrection,
is added to keep track of the corrections that user has rejected, so that it
will not be suggested again later. The autocorrection is driven by a timer.
Every time the editor inserts a new letter, the timer is reset. If the timer
fires, it means neither has user entered any new letter for current word, nor
has he entered whitespace or punctuation to complete the word. In this case,
we query for autocorrection.

* WebCore.exp.in: Updated

* dom/DocumentMarker.h: Added RejectedCorrection to indicate word on which user
  has rejected autocorrection.

* editing/Editor.cpp:
(WebCore::Editor::Editor): Initialize autocorrection timer.
(WebCore::Editor::~Editor): Make sure autocorrection UI is dismissed before
  destroying Editor object.
(WebCore::Editor::markMisspellingsAfterTypingToPosition): Adopted new signature
  of markAllMisspellingsAndBadGrammarInRanges().
(WebCore::Editor::markAllMisspellingsAndBadGrammarInRanges): Consolidated all
  boolean arguments into one bitfield. This improves readability and allows us to
  pass in a bit to indicate whether we want to show autocorrection UI. Also added
  code to show autocorrection UI if it is necessary.
(WebCore::Editor::markMisspellingsAndBadGrammar): Adopted new signature of
  markAllMisspellingsAndBadGrammarInRanges().
(WebCore::Editor::correctionPanelTimerFired): Check to see if we should show
  autocorrection UI when user pauses during typing.
(WebCore::Editor::handleRejectedCorrection): Update user dictionary when an autocorrection is rejected.
(WebCore::Editor::startCorrectionPanelTimer): Start autocorrection timer.
(WebCore::Editor::handleCancelOperation): Dismiss autocorrection UI when ESC key is pressed.

* editing/Editor.h: Added autocorrection related member methods and variables.

* editing/EditorCommand.cpp:
(WebCore::executeCancelOperation): Handle ESC key event. Dismiss autocorrection UI.
(WebCore::createCommandMap): Updated for executeCancelOperation().

* editing/TypingCommand.cpp:
(WebCore::TypingCommand::markMisspellingsAfterTyping): Reset autocorrection timer after insertion.

* loader/EmptyClients.h:
(WebCore::EmptyEditorClient::showCorrectionPanel): Dummy implementation.
(WebCore::EmptyEditorClient::dismissCorrectionPanel): Ditto

* page/EditorClient.h: Added methods for communication between WebCore and WebKit regarding autocorrection.

* page/Frame.cpp:
(WebCore::Frame::respondToChangedSelection): Remove Replacement marker where we used to only remove Spelling
  mark, because whenever we need to remove spelling underline we also should remove autocorrection underline.

* platform/graphics/GraphicsContext.h: Added enum TextCheckingLineStyle to specify the underline
  for different type of text checking result. Replaced drawLineForMisspellingOrBadGrammar() with
  drawLineForTextChecking(), which allows autocorrection to have different indication from misspelling
  and grammatical error.

* platform/graphics/cairo/GraphicsContextCairo.cpp:
(WebCore::GraphicsContext::drawLineForTextChecking): Replaced drawLineForMisspellingOrBadGrammar() with drawLineForTextChecking().

* platform/graphics/haiku/GraphicsContextHaiku.cpp:
(WebCore::GraphicsContext::drawLineForTextChecking): Ditto

* platform/graphics/mac/GraphicsContextMac.mm:
(WebCore::GraphicsContext::drawLineForTextChecking): Ditto

* platform/graphics/openvg/GraphicsContextOpenVG.cpp:
(WebCore::GraphicsContext::drawLineForTextChecking): Ditto

* platform/graphics/qt/GraphicsContextQt.cpp:
(WebCore::GraphicsContext::drawLineForTextChecking): Ditto

* platform/graphics/skia/GraphicsContextSkia.cpp:
(WebCore::GraphicsContext::drawLineForTextChecking): Ditto

* platform/graphics/win/GraphicsContextCGWin.cpp:
(WebCore::GraphicsContext::drawLineForTextChecking): Ditto

* platform/graphics/wince/GraphicsContextWince.cpp:
(WebCore::GraphicsContext::drawLineForTextChecking): Ditto

* platform/graphics/wx/GraphicsContextWx.cpp:
(WebCore::GraphicsContext::drawLineForTextChecking): Ditto

* rendering/InlineTextBox.cpp:
(WebCore::textCheckingLineStyleForMarkerType): Return line style for a given document marker type.
(WebCore::InlineTextBox::paintSpellingOrGrammarMarker):  Replaced drawLineForMisspellingOrBadGrammar() with drawLineForTextChecking().
(WebCore::InlineTextBox::paintDocumentMarkers): Handle new marker value, RejectedCorrection.

WebKit/mac:

See detailed high level description in WebCore/ChangeLog.

* WebCoreSupport/WebEditorClient.h: Added new member methods declared in
  EditorClient. Added m_correctionPanelTag to store the ID of current autocorrection UI object.

* WebCoreSupport/WebEditorClient.mm:
(WebEditorClient::WebEditorClient): Initialize m_correctionPanelTag.
(WebEditorClient::~WebEditorClient): Make sure the autocorrection UI is
  dismissed before destroying the object.
(WebEditorClient::respondToChangedSelection): Dismiss autocorrection UI whenever the selection changes.
(WebEditorClient::showCorrectionPanel): Show autocorrection UI.
(WebEditorClient::dismissCorrectionPanel): Dismiss autocorrection UI.

WebKit2:

See detailed high level description in WebCore/ChangeLog.

* WebProcess/WebCoreSupport/WebEditorClient.cpp:
(WebKit::WebEditorClient::showCorrectionPanel): Dummy implementation.
(WebKit::WebEditorClient::dismissCorrectionPanel): Ditto

* WebProcess/WebCoreSupport/WebEditorClient.h: Added new methods declared in base class.

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

10 years ago2010-09-01 Kinuko Yasuda <kinuko@google.com>
kinuko@chromium.org [Thu, 2 Sep 2010 06:17:52 +0000 (06:17 +0000)]
2010-09-01  Kinuko Yasuda  <kinuko@google.com>

        Reviewed by Adam Barth.

        [V8] Support readonly Date attribute
        https://bugs.webkit.org/show_bug.cgi?id=43943

        Adds Date to non_wrapper_types in CodeGeneratorV8.pm.

        New tests will be added for Metadata when we add FileSystem implementation.

        * bindings/scripts/CodeGeneratorV8.pm:
        * fileapi/Metadata.h:
        * fileapi/Metadata.idl:

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

10 years ago2010-09-01 Mihai Parparita <mihaip@chromium.org>
commit-queue@webkit.org [Thu, 2 Sep 2010 05:27:04 +0000 (05:27 +0000)]
2010-09-01  Mihai Parparita  <mihaip@chromium.org>

        Reviewed by Chris Marrin.

        animations/suspend-resume-animation.html does not pass when accelerated compositing is off
        https://bugs.webkit.org/show_bug.cgi?id=45057

        animations/suspend-resume-animation.html now passes with the Chromium DRT
        (it still fails with test_shell, since that doesn't have the suspend/resumeAnimations
        API implemented)

        * platform/chromium/drt_expectations.txt:
        * platform/chromium/test_expectations.txt:
2010-09-01  Mihai Parparita  <mihaip@chromium.org>

        Reviewed by Chris Marrin.

        animations/suspend-resume-animation.html does not pass when accelerated compositing is off
        https://bugs.webkit.org/show_bug.cgi?id=45057

        Fix incorrect logic when resuming the animation (KeyframeAnimation::startAnimation
        and RenderLayerBacking::startAnimation return true when running an accelerated
        animation).

        * page/animation/AnimationBase.cpp:
        (WebCore::AnimationBase::updateStateMachine):

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

10 years ago2010-09-01 Dirk Pranke <dpranke@chromium.org>
dpranke@chromium.org [Thu, 2 Sep 2010 04:47:42 +0000 (04:47 +0000)]
2010-09-01  Dirk Pranke  <dpranke@chromium.org>

        Reviewed by Tony Chang.

        Land a patched version of r66542 - change TestRunner to have an
        separate cleanup method and fix the ordering of cleanup between
        TestRunner and the printing module, and then wrap everything in a
        try/finally block to ensure reliable cleanup without needing to
        rely on stuff happening in the destructor of the TestRunner.

        Also refactor run_webkit_tests.run() to be much smaller and cleaner
        by creating a bunch of helper methods and moving more stuff into
        the TestRunner class.

        This fixes the crash at the end of the linux test run of
        new-run-webkit-tests (and undoes the rollout in 66547).

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

        * Scripts/webkitpy/layout_tests/data/failures/expected/exception.html: Added.
        * Scripts/webkitpy/layout_tests/data/failures/expected/keyboard.html: Added.
        * Scripts/webkitpy/layout_tests/data/passes/error-expected.txt: Added.
        * Scripts/webkitpy/layout_tests/data/passes/error.html: Added.
        * Scripts/webkitpy/layout_tests/data/platform/test/test_expectations.txt:
        * Scripts/webkitpy/layout_tests/layout_package/dump_render_tree_thread.py:
        * Scripts/webkitpy/layout_tests/layout_package/printing.py:
        * Scripts/webkitpy/layout_tests/layout_package/printing_unittest.py:
        * Scripts/webkitpy/layout_tests/port/base.py:
        * Scripts/webkitpy/layout_tests/port/test.py:
        * Scripts/webkitpy/layout_tests/run_webkit_tests.py:
        * Scripts/webkitpy/layout_tests/run_webkit_tests_unittest.py:

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

10 years agoFix the build.
weinig@apple.com [Thu, 2 Sep 2010 04:00:14 +0000 (04:00 +0000)]
Fix the build.

As with CF, const struct OpaqueType* should be the default type
so that const_casts are not necessary in user code.

* UIProcess/API/C/WKArray.cpp:
(WKArrayCreate):
* UIProcess/API/C/WKBase.h:
* UIProcess/API/C/WKType.cpp:
(WKGetTypeID):
(WKRetain):
(WKRelease):
* WebProcess/InjectedBundle/API/c/WKBundleAPICast.h:
(toWK):
* WebProcess/InjectedBundle/API/c/WKBundleBase.h:

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

10 years agoAdd mutable array API to WebKit2
weinig@apple.com [Thu, 2 Sep 2010 03:37:10 +0000 (03:37 +0000)]
Add mutable array API to WebKit2
https://bugs.webkit.org/show_bug.cgi?id=45082

Reviewed by Adam Roben.

Add a mutable API to WebKit2 called WKMutableArrayRef. Make it "inherit" from
WKArrayRef in the same way JSObjectRef can inherit from JSValueRef in the JSC
API, by abusing the c type system (WKArrayRef is defined as a const version of
WKMutableArrayRef). Add very basic mutable API to go along with it.

* Shared/ImmutableArray.h:
(WebKit::ImmutableArray::isMutable):
Add ability to ask it an array is mutable.

* Shared/MutableArray.cpp: Added.
(WebKit::MutableArray::MutableArray):
(WebKit::MutableArray::~MutableArray):
(WebKit::MutableArray::append):
* Shared/MutableArray.h: Added.
(WebKit::MutableArray::create):
(WebKit::MutableArray::isMutable):
Sketch out the mutable array interface.

* UIProcess/API/C/WKAPICast.h:
(toWK):
Now that the opaque types can be const, use template magic to const_cast
it away.

* UIProcess/API/C/WKBase.h:
Add new type and re-type WKArrayRef as const.

* UIProcess/API/C/WKMutableArray.cpp: Added.
(WKMutableArrayCreate):
(WKArrayIsMutable):
(WKArrayAppendItem):
* UIProcess/API/C/WKMutableArray.h: Added.
Fill in basic API.

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

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