WebKit-https.git
9 years agoAdd another HTMLProgressElement test to the Windows Skipped list to get the bots...
jberlin@webkit.org [Mon, 25 Apr 2011 15:13:41 +0000 (15:13 +0000)]
Add another HTMLProgressElement test to the Windows Skipped list to get the bots green,
since Windows does not have an implementation of HTMLProgressElement.

* platform/win/Skipped:
Add fast/dom/HTMLProgressElement/progress-writing-mode.html.

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

9 years ago2011-04-25 Pavel Feldman <pfeldman@google.com>
pfeldman@chromium.org [Mon, 25 Apr 2011 14:18:43 +0000 (14:18 +0000)]
2011-04-25  Pavel Feldman  <pfeldman@google.com>

        Not reviewed: Inspector.json cleanup.

        * inspector/Inspector.json:

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

9 years ago2011-04-25 Pavel Feldman <pfeldman@google.com>
pfeldman@chromium.org [Mon, 25 Apr 2011 14:12:28 +0000 (14:12 +0000)]
2011-04-25  Pavel Feldman  <pfeldman@google.com>

        Reviewed by Yury Semikhatsky.

        Web Inspector: move Frame and Resource Tree management into the Page agent.
        https://bugs.webkit.org/show_bug.cgi?id=59321

        * inspector/report-protocol-errors.html:
2011-04-25  Yury Semikhatsky  <yurys@chromium.org>

        Reviewed by Pavel Feldman.

        Web Inspector: introduce InspectorWorkerAgent
        https://bugs.webkit.org/show_bug.cgi?id=59320

        InspectorWorkerAgent is responsible for routing inspector messages
        between worker context inspector agents and corresponding worker
        inspector front-end.

        * CMakeLists.txt:
        * GNUmakefile.list.am:
        * WebCore.gypi:
        * WebCore.pro:
        * WebCore.vcproj/WebCore.vcproj:
        * WebCore.xcodeproj/project.pbxproj:
        * inspector/CodeGeneratorInspector.pm:
        * inspector/Inspector.json:
        * inspector/InspectorAgent.cpp:
        (WebCore::InspectorAgent::InspectorAgent):
        (WebCore::InspectorAgent::setFrontend):
        (WebCore::InspectorAgent::disconnectFrontend):
        * inspector/InspectorAgent.h:
        (WebCore::InspectorAgent::workerAgent):
        * inspector/InspectorController.cpp:
        (WebCore::InspectorController::connectFrontend):
        (WebCore::InspectorController::disconnectFrontend):
        * inspector/InspectorInstrumentation.cpp:
        (WebCore::InspectorInstrumentation::didStartWorkerContextImpl):
        * inspector/InspectorInstrumentation.h:
        (WebCore::InspectorInstrumentation::willStartWorkerContext):
        (WebCore::InspectorInstrumentation::didStartWorkerContext):
        * inspector/InspectorWorkerAgent.cpp: Added.
        (WebCore::InspectorWorkerAgent::WorkerFrontendChannel::WorkerFrontendChannel):
        (WebCore::InspectorWorkerAgent::WorkerFrontendChannel::~WorkerFrontendChannel):
        (WebCore::InspectorWorkerAgent::WorkerFrontendChannel::id):
        (WebCore::InspectorWorkerAgent::WorkerFrontendChannel::inspectorProxy):
        (WebCore::InspectorWorkerAgent::WorkerFrontendChannel::sendMessageToFrontend):
        (WebCore::InspectorWorkerAgent::create):
        (WebCore::InspectorWorkerAgent::InspectorWorkerAgent):
        (WebCore::InspectorWorkerAgent::~InspectorWorkerAgent):
        (WebCore::InspectorWorkerAgent::setFrontend):
        (WebCore::InspectorWorkerAgent::clearFrontend):
        (WebCore::InspectorWorkerAgent::dispatchMessageOnWorkerInspector):
        (WebCore::InspectorWorkerAgent::didStartWorkerContext):
        * inspector/InspectorWorkerAgent.h: Added.
        * inspector/InstrumentingAgents.h:
        (WebCore::InstrumentingAgents::InstrumentingAgents):
        (WebCore::InstrumentingAgents::inspectorWorkerAgent):
        (WebCore::InstrumentingAgents::setInspectorWorkerAgent):
        * inspector/WorkerInspectorController.cpp:
        (WebCore::WorkerInspectorController::connectFrontend):
        * inspector/generate-inspector-idl:
        * workers/Worker.cpp:
        (WebCore::Worker::notifyFinished):
        * workers/WorkerContextInspectorProxy.h: Added. Platform-specific transport for inspector
        messages sent from the inspected page worker agent to the worker context inspector agents.
        (WebCore::WorkerContextInspectorProxy::connectFrontend):
        (WebCore::WorkerContextInspectorProxy::disconnectFrontend):
        (WebCore::WorkerContextInspectorProxy::sendMessageToWorkerContextInspector):
        (WebCore::WorkerContextInspectorProxy::~WorkerContextInspectorProxy):
        * workers/WorkerContextProxy.h:
        (WebCore::WorkerContextProxy::inspectorProxy):

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

9 years ago2011-04-25 Yury Semikhatsky <yurys@chromium.org>
yurys@chromium.org [Mon, 25 Apr 2011 13:27:49 +0000 (13:27 +0000)]
2011-04-25  Yury Semikhatsky  <yurys@chromium.org>

        Reviewed by Pavel Feldman.

        Web Inspector: introduce InspectorWorkerAgent
        https://bugs.webkit.org/show_bug.cgi?id=59320

        InspectorWorkerAgent is responsible for routing inspector messages
        between worker context inspector agents and corresponding worker
        inspector front-end.

        * CMakeLists.txt:
        * GNUmakefile.list.am:
        * WebCore.gypi:
        * WebCore.pro:
        * WebCore.vcproj/WebCore.vcproj:
        * WebCore.xcodeproj/project.pbxproj:
        * inspector/CodeGeneratorInspector.pm:
        * inspector/Inspector.json:
        * inspector/InspectorAgent.cpp:
        (WebCore::InspectorAgent::InspectorAgent):
        (WebCore::InspectorAgent::setFrontend):
        (WebCore::InspectorAgent::disconnectFrontend):
        * inspector/InspectorAgent.h:
        (WebCore::InspectorAgent::workerAgent):
        * inspector/InspectorController.cpp:
        (WebCore::InspectorController::connectFrontend):
        (WebCore::InspectorController::disconnectFrontend):
        * inspector/InspectorInstrumentation.cpp:
        (WebCore::InspectorInstrumentation::didStartWorkerContextImpl):
        * inspector/InspectorInstrumentation.h:
        (WebCore::InspectorInstrumentation::willStartWorkerContext):
        (WebCore::InspectorInstrumentation::didStartWorkerContext):
        * inspector/InspectorWorkerAgent.cpp: Added.
        (WebCore::InspectorWorkerAgent::WorkerFrontendChannel::WorkerFrontendChannel):
        (WebCore::InspectorWorkerAgent::WorkerFrontendChannel::~WorkerFrontendChannel):
        (WebCore::InspectorWorkerAgent::WorkerFrontendChannel::id):
        (WebCore::InspectorWorkerAgent::WorkerFrontendChannel::inspectorProxy):
        (WebCore::InspectorWorkerAgent::WorkerFrontendChannel::sendMessageToFrontend):
        (WebCore::InspectorWorkerAgent::create):
        (WebCore::InspectorWorkerAgent::InspectorWorkerAgent):
        (WebCore::InspectorWorkerAgent::~InspectorWorkerAgent):
        (WebCore::InspectorWorkerAgent::setFrontend):
        (WebCore::InspectorWorkerAgent::clearFrontend):
        (WebCore::InspectorWorkerAgent::dispatchMessageOnWorkerInspector):
        (WebCore::InspectorWorkerAgent::didStartWorkerContext):
        * inspector/InspectorWorkerAgent.h: Added.
        * inspector/InstrumentingAgents.h:
        (WebCore::InstrumentingAgents::InstrumentingAgents):
        (WebCore::InstrumentingAgents::inspectorWorkerAgent):
        (WebCore::InstrumentingAgents::setInspectorWorkerAgent):
        * inspector/WorkerInspectorController.cpp:
        (WebCore::WorkerInspectorController::connectFrontend):
        * inspector/generate-inspector-idl:
        * workers/Worker.cpp:
        (WebCore::Worker::notifyFinished):
        * workers/WorkerContextInspectorProxy.h: Added. Platform-specific transport for inspector
        messages sent from the inspected page worker agent to the worker context inspector agents.
        (WebCore::WorkerContextInspectorProxy::connectFrontend):
        (WebCore::WorkerContextInspectorProxy::disconnectFrontend):
        (WebCore::WorkerContextInspectorProxy::sendMessageToWorkerContextInspector):
        (WebCore::WorkerContextInspectorProxy::~WorkerContextInspectorProxy):
        * workers/WorkerContextProxy.h:
        (WebCore::WorkerContextProxy::inspectorProxy):

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

9 years ago2011-04-25 Pavel Feldman <pfeldman@google.com>
pfeldman@chromium.org [Mon, 25 Apr 2011 11:25:35 +0000 (11:25 +0000)]
2011-04-25  Pavel Feldman  <pfeldman@google.com>

        Reviewed by Yury Semikhatsky.

        Web Inspector: few protocol improvements.
        https://bugs.webkit.org/show_bug.cgi?id=59319

        * http/tests/inspector/inspector-test.js:
        (initialize_InspectorTest.InspectorTest.reloadPage):
2011-04-25  Pavel Feldman  <pfeldman@google.com>

        Reviewed by Yury Semikhatsky.

        Web Inspector: few protocol improvements.
        https://bugs.webkit.org/show_bug.cgi?id=59319

        - Page domain is documented
        - setUserAgentOverride is moved to the Network agent
        - setSearchingForNode -> setInspectModeEnabled
        - highlightDOMNode -> highlightNode
        - reloadPage -> reload
        - openInNewWindow -> open with optional parameter

        * inspector/Inspector.json:
        * inspector/InspectorDOMAgent.cpp:
        (WebCore::InspectorDOMAgent::setInspectModeEnabled):
        (WebCore::InspectorDOMAgent::highlightNode):
        * inspector/InspectorDOMAgent.h:
        (WebCore::InspectorDOMAgent::hideNodeHighlight):
        * inspector/InspectorInstrumentation.cpp:
        (WebCore::InspectorInstrumentation::applyUserAgentOverrideImpl):
        * inspector/InspectorPageAgent.cpp:
        (WebCore::InspectorPageAgent::clearFrontend):
        (WebCore::InspectorPageAgent::reload):
        (WebCore::InspectorPageAgent::open):
        * inspector/InspectorPageAgent.h:
        * inspector/InspectorResourceAgent.cpp:
        (WebCore::InspectorResourceAgent::clearFrontend):
        (WebCore::InspectorResourceAgent::applyUserAgentOverride):
        (WebCore::InspectorResourceAgent::setUserAgentOverride):
        * inspector/InspectorResourceAgent.h:
        * inspector/front-end/AuditsPanel.js:
        (WebInspector.AuditsPanel.prototype._reloadResources):
        * inspector/front-end/ElementsPanel.js:
        (WebInspector.ElementsPanel.prototype.setSearchingForNode):
        * inspector/front-end/ExtensionServer.js:
        (WebInspector.ExtensionServer.prototype._onReload):
        * inspector/front-end/NetworkPanel.js:
        (WebInspector.NetworkDataGridNode.prototype._openInNewTab):
        * inspector/front-end/ResourcesPanel.js:
        (WebInspector.FrameResourceTreeElement.prototype.ondblclick):
        * inspector/front-end/inspector.js:
        (WebInspector.highlightDOMNode):
        (WebInspector.openResource):
        (WebInspector.documentKeyDown):

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

9 years ago2011-04-25 Ryuan Choi <ryuan.choi@samsung.com>
commit-queue@webkit.org [Mon, 25 Apr 2011 11:18:00 +0000 (11:18 +0000)]
2011-04-25  Ryuan Choi  <ryuan.choi@samsung.com>

        Reviewed by Antonio Gomes.

        [EFL] Remove ewk_eapi.h
        https://bugs.webkit.org/show_bug.cgi?id=59091

        * ewk/EWebKit.h:
        * ewk/ewk_contextmenu.h:
        * ewk/ewk_cookies.h:
        * ewk/ewk_eapi.h: Removed.
        * ewk/ewk_frame.h:
        * ewk/ewk_history.h:
        * ewk/ewk_main.h:
        * ewk/ewk_settings.h:
        * ewk/ewk_tiled_matrix.h:
        * ewk/ewk_tiled_model.h:
        * ewk/ewk_window_features.h:

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

9 years ago2011-04-25 Maciej Stachowiak <mjs@apple.com>
mjs@apple.com [Mon, 25 Apr 2011 09:59:58 +0000 (09:59 +0000)]
2011-04-25  Maciej Stachowiak  <mjs@apple.com>

        Reviewed by Cameron Zwarich.

        Fix tests after URL parsing fix
        https://bugs.webkit.org/show_bug.cgi?id=59317

        * fast/dom/HTMLAnchorElement/script-tests/set-href-attribute-host.js: Update
        expected behavior.
        * fast/dom/HTMLAnchorElement/script-tests/set-href-attribute-protocol.js: Update expected
        behavior.
        * fast/dom/HTMLAnchorElement/set-href-attribute-host-expected.txt: Update expectations.
        * fast/dom/HTMLAnchorElement/set-href-attribute-protocol-expected.txt: Update expectations.
        * fast/loader/url-parse-1-expected.txt: Update expectations.
        * http/tests/loading/cross-origin-XHR-willLoadRequest.html: Replace single slash
        in an http: URL with a double slash - the single slash seemed to be erroneous.

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

9 years ago2011-04-25 Jon Lee <jonlee@apple.com>
commit-queue@webkit.org [Mon, 25 Apr 2011 08:26:32 +0000 (08:26 +0000)]
2011-04-25  Jon Lee  <jonlee@apple.com>

        Reviewed by Maciej Stachowiak.

        Overlay scroller hard to see on pages with dark background (59183)
        https://bugs.webkit.org/show_bug.cgi?id=59183
        <rdar://problem/8975367>

        Switch the scrollbar's overlay style depending on its frame's background color.
        This refactors the getDocumentBackgroundColor method needed for gestures. The style
        is determined and set on every paint() call to the Mac scrollbar theme.

        * WebCore.exp.in: adding method to allow changing style
        * page/Frame.cpp:
        (WebCore::Frame::getDocumentBackgroundColor): moving code from WebFrame for reuse by FrameView
        * page/Frame.h:
        * page/FrameView.cpp:
        (WebCore::FrameView::recommendedScrollbarOverlayStyle): overridden to suggest a style based on CSS background color
        * page/FrameView.h:
        * platform/ScrollTypes.h: new enum to represent different overlay scrollbar styles
        * platform/ScrollableArea.h:
        (WebCore::ScrollableArea::recommendedScrollbarOverlayStyle): new virtual function to return a suggested overlay style
        * platform/mac/ScrollbarThemeMac.mm:
        (WebCore::ScrollbarThemeMac::paint):
        * platform/mac/WebCoreSystemInterface.h:
        * platform/mac/WebCoreSystemInterface.mm:
2011-04-25  Jon Lee  <jonlee@apple.com>

        Reviewed by Maciej Stachowiak.

        Overlay scroller hard to see on pages with dark background (59183)
        https://bugs.webkit.org/show_bug.cgi?id=59183
        <rdar://problem/8975367>

        * WebCoreSupport/WebSystemInterface.mm:
        (InitWebCoreSystemInterface): adding method to allow changing style
2011-04-25  Jon Lee  <jonlee@apple.com>

        Reviewed by Maciej Stachowiak.

        Overlay scroller hard to see on pages with dark background (59183)
        https://bugs.webkit.org/show_bug.cgi?id=59183
        <rdar://problem/8975367>

        * WebProcess/WebCoreSupport/mac/WebSystemInterface.mm:
        (InitWebCoreSystemInterface): adding method to allow changing style
        * WebProcess/WebPage/WebFrame.cpp:
        (WebKit::WebFrame::getDocumentBackgroundColor): refactoring to use common code for retrieving background color

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

9 years agoAdded Radar link
mitz@apple.com [Mon, 25 Apr 2011 07:28:18 +0000 (07:28 +0000)]
Added Radar link

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

9 years agoREGRESSION (WK2): Holding down Option while dragging scrollbar thumb has no effect...
mitz@apple.com [Mon, 25 Apr 2011 07:26:53 +0000 (07:26 +0000)]
REGRESSION (WK2): Holding down Option while dragging scrollbar thumb has no effect (should make scroll distance equal mouse translation)
https://bugs.webkit.org/show_bug.cgi?id=59315

Reviewed by Maciej Stachowiak.

* platform/Scrollbar.cpp:
(WebCore::Scrollbar::Scrollbar): Initialize new member variables.
(WebCore::Scrollbar::moveThumb): Added a boolean draggingDocument parameter. When true, the document
is scrolled a distance equal to the change in the mouse position.
(WebCore::Scrollbar::mouseMoved): Check with the theme whether the mouse move event should drag
the document rather than the thumb, and pass the result to moveThumb.
(WebCore::Scrollbar::mouseUp): Reset m_draggingDocument.
* platform/Scrollbar.h:
* platform/ScrollbarTheme.h:
(WebCore::ScrollbarTheme::shouldDragDocumentInsteadOfThumb): Added. The base class implementation
returns false.
* platform/mac/ScrollbarThemeMac.h:
* platform/mac/ScrollbarThemeMac.mm:
(WebCore::ScrollbarThemeMac::shouldDragDocumentInsteadOfThumb): Overridden to return true if the
Option key is down.

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

9 years ago2011-04-24 Dirk Pranke <dpranke@chromium.org>
dpranke@chromium.org [Mon, 25 Apr 2011 06:22:47 +0000 (06:22 +0000)]
2011-04-24  Dirk Pranke  <dpranke@chromium.org>

        Unreviewed, expectations change.

        Add Chromium baselines for fast/table/auto-100-percent-width.html.
        Mark fast/dom/HTMLMeterElement/meter-element.html and
        http/tests/misc/will-send-request-returns-null-on-redirect.html
        as failing - need triage.

        * platform/chromium-mac/fast/table/auto-100-percent-width-expected.png: Added.
        * platform/chromium-win/fast/table/auto-100-percent-width-expected.png: Added.
        * platform/chromium/test_expectations.txt:

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

9 years ago2011-04-24 Adam Barth <abarth@webkit.org>
abarth@webkit.org [Mon, 25 Apr 2011 05:36:32 +0000 (05:36 +0000)]
2011-04-24  Adam Barth  <abarth@webkit.org>

        Update Chromium results for standard-url.html (again).

        * platform/chromium-linux/fast/url/standard-url-expected.txt:
        * platform/chromium-mac/fast/url/standard-url-expected.txt:
        * platform/chromium-win/fast/url/standard-url-expected.txt:

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

9 years ago2011-04-24 Geoffrey Garen <ggaren@apple.com>
ggaren@apple.com [Mon, 25 Apr 2011 00:47:17 +0000 (00:47 +0000)]
2011-04-24  Geoffrey Garen  <ggaren@apple.com>

        Reviewed by Sam Weinig.

        Removed a use of markDOMObjectWrapper: WebGL, XHR, workers; plus, more autogeneration
        https://bugs.webkit.org/show_bug.cgi?id=59307

        * WebCore.xcodeproj/project.pbxproj: Added Blob.idl, so it's easier to edit.

        * bindings/js/JSCSSRuleCustom.cpp:
        * bindings/js/JSCSSStyleDeclarationCustom.cpp:
        * bindings/js/JSCanvasRenderingContextCustom.cpp:
        * bindings/js/JSDOMApplicationCacheCustom.cpp: Autogenerate these instead
        of hand-coding them.

        * bindings/js/JSDOMBinding.h:
        (WebCore::root): Moved some GC helpers here from JSNodeCustom.h, because
        they're reasonably generic.

        * bindings/js/JSDOMImplementationCustom.cpp:
        * bindings/js/JSDOMStringMapCustom.cpp:
        * bindings/js/JSDOMTokenListCustom.cpp:
        * bindings/js/JSHTMLCollectionCustom.cpp:
        * bindings/js/JSMediaListCustom.cpp: Autogenerate these instead of
        hand-coding them.

        * bindings/js/JSMessageChannelCustom.cpp:
        (WebCore::JSMessageChannel::visitChildren):
        * bindings/js/JSMessagePortCustom.cpp:
        (WebCore::JSMessagePort::visitChildren): Use addOpaqueRoot instead of
        markDOMObjectWrapper. This is one of the few cases where a DOM object is
        considered a stand-alone root. It's not as efficient as the shared root
        case, but workers and message ports are very rare objects, so it's no
        big deal.

        * bindings/js/JSNamedNodeMapCustom.cpp: Autogenerate!

        * bindings/js/JSNodeCustom.h: Moved to JSDOMBinding.h.

        * bindings/js/JSSharedWorkerCustom.cpp:
        (WebCore::JSSharedWorker::visitChildren): Use addOpaqueRoot instead of
        markDOMObjectWrapper, as above. Once again, a stand-alone root.

        * bindings/js/JSStyleSheetCustom.cpp:
        * bindings/js/JSStyleSheetListCustom.cpp: Autogenerate!

        * bindings/js/JSWebGLRenderingContextCustom.cpp:
        (WebCore::JSWebGLRenderingContext::visitChildren): Use the opaque roots
        system for marking WebGL contexts and their associated satellite objects.

        * bindings/js/JSWorkerContextCustom.cpp:
        (WebCore::JSWorkerContext::visitChildren):
        * bindings/js/JSXMLHttpRequestCustom.cpp: Use addOpaqueRoot instead of
        markDOMObjectWrapper, as above. Once again, stand-alone roots.

        (WebCore::JSXMLHttpRequest::visitChildren):
        * bindings/js/JSXMLHttpRequestUploadCustom.cpp: No need to mark our owner
        XHR because it is not reachable from us.

        * bindings/scripts/CodeGeneratorJS.pm: Added autogeneration support for a
        bunch of repetitive cases of isReachableFromOpaqueRoots callbacks.

        * css/CSSRule.idl:
        * css/CSSStyleDeclaration.idl:
        * css/MediaList.idl:
        * css/StyleMedia.idl:
        * css/StyleSheet.idl:
        * css/StyleSheetList.idl:
        * dom/DOMImplementation.idl:
        * dom/DOMStringMap.idl:
        * dom/MessagePort.idl:
        * dom/NamedNodeMap.idl:
        * fileapi/Blob.idl:
        * html/DOMTokenList.idl: Opt in to autogeneration.

        * html/HTMLCanvasElement.cpp:
        (WebCore::HTMLCanvasElement::getContext): Standardized on PassOwnPtr/OwnPtr
        usage, to reduce human error and make ownership rules more obvious.

        * html/HTMLCollection.idl:
        * html/canvas/ArrayBuffer.idl: Opt in to autogeneration.

        * html/canvas/CanvasRenderingContext.cpp:
        * html/canvas/CanvasRenderingContext.h:
        (WebCore::CanvasRenderingContext::ref):
        (WebCore::CanvasRenderingContext::deref):
        * html/canvas/CanvasRenderingContext2D.h:
        (WebCore::CanvasRenderingContext2D::create):
        (WebCore::CanvasRenderingContext2D::state): Standardized on PassOwnPtr/OwnPtr
        usage, to reduce human error and make ownership rules more obvious.

        Inlined some functions to match our standard idiom and to make the code
        in the header document itself.

        * html/canvas/CanvasRenderingContext.idl: Opt in to autogeneration.

        * html/canvas/OESStandardDerivatives.cpp:
        (WebCore::OESStandardDerivatives::OESStandardDerivatives):
        (WebCore::OESStandardDerivatives::create):
        * html/canvas/OESStandardDerivatives.h:
        * html/canvas/OESStandardDerivatives.idl:
        * html/canvas/OESTextureFloat.cpp:
        (WebCore::OESTextureFloat::OESTextureFloat):
        (WebCore::OESTextureFloat::create):
        * html/canvas/OESTextureFloat.h:
        * html/canvas/OESTextureFloat.idl:
        * html/canvas/OESVertexArrayObject.cpp:
        (WebCore::OESVertexArrayObject::OESVertexArrayObject):
        (WebCore::OESVertexArrayObject::create):
        * html/canvas/OESVertexArrayObject.h:
        * html/canvas/OESVertexArrayObject.idl:
        * html/canvas/WebGLExtension.cpp:
        (WebCore::WebGLExtension::WebGLExtension):
        * html/canvas/WebGLExtension.h:
        (WebCore::WebGLExtension::ref):
        (WebCore::WebGLExtension::deref):
        (WebCore::WebGLExtension::context):
        * html/canvas/WebGLRenderingContext.cpp:
        (WebCore::WebGLRenderingContext::~WebGLRenderingContext):
        (WebCore::WebGLRenderingContext::getExtension):
        * html/canvas/WebGLRenderingContext.h:
        * html/canvas/WebKitLoseContext.cpp:
        (WebCore::WebKitLoseContext::WebKitLoseContext):
        (WebCore::WebKitLoseContext::create):
        (WebCore::WebKitLoseContext::loseContext):
        * html/canvas/WebKitLoseContext.h:
        * html/canvas/WebKitLoseContext.idl: Updated the ownership model for WebGL
        canavs rendering contexts to match the model for 2D canvas rendering
        contexts. This makes garbage collection a lot more straightforward, but
        it also makes the behavior of these objects more reliable. (Previously,
        satellite objects would magically stop working when the last reference
        to their owner object was dropped. Now, satellite objects keep their owner
        alive through reference counting.)

        * loader/appcache/DOMApplicationCache.idl:
        * page/BarInfo.idl:
        * page/Console.idl:
        * page/DOMSelection.idl:
        * page/Geolocation.idl:
        * page/History.idl:
        * page/Location.idl:
        * page/Navigator.idl:
        * page/Screen.idl:
        * page/WorkerNavigator.idl:
        * plugins/DOMMimeTypeArray.h:
        (WebCore::DOMMimeTypeArray::frame):
        * plugins/DOMMimeTypeArray.idl:
        * plugins/DOMPluginArray.h:
        (WebCore::DOMPluginArray::frame):
        * plugins/DOMPluginArray.idl:
        * storage/Storage.idl:
        * workers/WorkerLocation.idl: Opt in to autogeneration.

        * xml/XMLHttpRequest.cpp:
        (WebCore::XMLHttpRequest::~XMLHttpRequest):
        * xml/XMLHttpRequest.h:
        * xml/XMLHttpRequestUpload.cpp:
        (WebCore::XMLHttpRequestUpload::scriptExecutionContext):
        * xml/XMLHttpRequestUpload.h:
        (WebCore::XMLHttpRequestUpload::create):
        (WebCore::XMLHttpRequestUpload::ref):
        (WebCore::XMLHttpRequestUpload::deref):
        (WebCore::XMLHttpRequestUpload::xmlHttpRequest):
        (WebCore::XMLHttpRequestUpload::toXMLHttpRequestUpload):
        * xml/XMLHttpRequestUpload.idl: Updated the ownership model for XHR and
        its associated upload object to match the model for canvas. This makes
        garbage collection a lot more straightforward, but it also makes the
        behavior of these objects more reliable.

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

9 years ago2011-04-24 Sheriff Bot <webkit.review.bot@gmail.com>
commit-queue@webkit.org [Sun, 24 Apr 2011 23:09:39 +0000 (23:09 +0000)]
2011-04-24  Sheriff Bot  <webkit.review.bot@gmail.com>

        Unreviewed, rolling out r84759.
        http://trac.webkit.org/changeset/84759
        https://bugs.webkit.org/show_bug.cgi?id=59306

        Caused gc-shadow.html to start crashing in V8. (Requested by
        dglazkov|away on #webkit).

        * fast/dom/shadow/append-child-text-expected.txt: Removed.
        * fast/dom/shadow/append-child-text.html: Removed.
2011-04-24  Sheriff Bot  <webkit.review.bot@gmail.com>

        Unreviewed, rolling out r84759.
        http://trac.webkit.org/changeset/84759
        https://bugs.webkit.org/show_bug.cgi?id=59306

        Caused gc-shadow.html to start crashing in V8. (Requested by
        dglazkov|away on #webkit).

        * dom/Node.cpp:
        (WebCore::NodeRendererFactory::createRendererAndStyle):
        (WebCore::Node::styleForRenderer):

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

9 years ago2011-04-24 Maciej Stachowiak <mjs@apple.com>
mjs@apple.com [Sun, 24 Apr 2011 22:53:59 +0000 (22:53 +0000)]
2011-04-24  Maciej Stachowiak  <mjs@apple.com>

        Reviewed by George Staikos.

        Handling of URLs like http:/example.com/ is incorrect
        https://bugs.webkit.org/show_bug.cgi?id=59300
        <rdar://problem/9231956>

        URLs like http:/example.com/ or http:example.com/ are now correctly
        canonicalized as http://example.com/

        The code still doesn't quite match other browsers - at least some
        other browsers seem to base parsing behavior on whether they
        recongize a scheme from a fixed list, and ignore whether // is
        present in the URL or not.

        * platform/KURL.cpp:
        (WebCore::isNonFileHierarchicalScheme): New helper function.
        (WebCore::KURL::parse): For a particular list of whitelisted schemes,
        assume they are hierarchical and need an authority even if there is no //
        after the :/
2011-04-24  Maciej Stachowiak  <mjs@apple.com>

        Reviewed by George Staikos.

        Handling of URLs like http:/example.com/ is incorrect
        https://bugs.webkit.org/show_bug.cgi?id=59300
        <rdar://problem/9231956>

        Added some new test cases. Also updated results for the
        change. The changes are progressions.

        * fast/url/relative-expected.txt:
        * fast/url/script-tests/segments.js:
        * fast/url/script-tests/standard-url.js:
        * fast/url/segments-expected.txt:
        * fast/url/segments-from-data-url-expected.txt:
        * fast/url/standard-url-expected.txt:

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

9 years ago2011-04-24 Adam Barth <abarth@webkit.org>
abarth@webkit.org [Sun, 24 Apr 2011 21:48:02 +0000 (21:48 +0000)]
2011-04-24  Adam Barth  <abarth@webkit.org>

        Update Chromium results for standard-url.html

        * platform/chromium-linux/fast/url/standard-url-expected.txt: Added.
        * platform/chromium-mac/fast/url/standard-url-expected.txt:
        * platform/chromium-win/fast/url/standard-url-expected.txt:

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

9 years agoLLVM Compiler build fix.
mitz@apple.com [Sun, 24 Apr 2011 21:37:34 +0000 (21:37 +0000)]
LLVM Compiler build fix.

* page/ContentSecurityPolicy.cpp: Removed an unused function.

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

9 years ago2011-04-24 Dominic Cooney <dominicc@chromium.org>
commit-queue@webkit.org [Sun, 24 Apr 2011 21:20:42 +0000 (21:20 +0000)]
2011-04-24  Dominic Cooney  <dominicc@chromium.org>

        Reviewed by Dimitri Glazkov.

        Crash when adding a text node to a shadow root
        https://bugs.webkit.org/show_bug.cgi?id=59304

        * fast/dom/shadow/append-child-text-expected.txt: Added.
        * fast/dom/shadow/append-child-text.html: Added.
2011-04-24  Dominic Cooney  <dominicc@chromium.org>

        Reviewed by Dimitri Glazkov.

        Crash when adding a text node to a shadow root
        https://bugs.webkit.org/show_bug.cgi?id=59304

        Text nodes need to consult their host element for style.

        Test: fast/dom/shadow/append-child-text.html

        * dom/Node.cpp:
        (WebCore::NodeRendererFactory::styleForRenderer):
        (WebCore::NodeRendererFactory::createRendererAndStyle):
        (WebCore::Node::styleForRenderer): forward to NodeRendererFactory

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

9 years ago2011-04-24 Adam Barth <abarth@webkit.org>
abarth@webkit.org [Sun, 24 Apr 2011 18:36:55 +0000 (18:36 +0000)]
2011-04-24  Adam Barth  <abarth@webkit.org>

        Reviewed by Eric Seidel.

        Update Content-Security-Policy syntax to match new version of spec
        https://bugs.webkit.org/show_bug.cgi?id=59291

        Update tests to use the new syntax.

        * http/tests/security/contentSecurityPolicy/eval-scripts-setInterval-allowed.html:
        * http/tests/security/contentSecurityPolicy/eval-scripts-setInterval-blocked.html:
        * http/tests/security/contentSecurityPolicy/eval-scripts-setTimeout-allowed.html:
        * http/tests/security/contentSecurityPolicy/eval-scripts-setTimeout-blocked.html:
        * http/tests/security/contentSecurityPolicy/image-allowed.html:
        * http/tests/security/contentSecurityPolicy/image-blocked.html:
        * http/tests/security/contentSecurityPolicy/inline-script-allowed.html:
        * http/tests/security/contentSecurityPolicy/style-allowed.html:
        * http/tests/security/contentSecurityPolicy/style-blocked.html:
        * http/tests/security/contentSecurityPolicy/xsl-allowed.php:
        * http/tests/security/contentSecurityPolicy/xsl-blocked.php:
2011-04-24  Adam Barth  <abarth@webkit.org>

        Reviewed by Eric Seidel.

        Update Content-Security-Policy syntax to match new version of spec
        https://bugs.webkit.org/show_bug.cgi?id=59291

        Brandon removed disable-xss-protection in favor of unsafe-inline and
        allow-eval in favor of unsafe-eval.  This change in syntax also means
        the options directive no longer exists.

        * page/ContentSecurityPolicy.cpp:
        (WebCore::CSPSourceList::allowInline):
        (WebCore::CSPSourceList::allowEval):
        (WebCore::CSPSourceList::CSPSourceList):
        (WebCore::CSPSourceList::parseSource):
        (WebCore::CSPSourceList::addSourceUnsafeInline):
        (WebCore::CSPSourceList::addSourceUnsafeEval):
        (WebCore::CSPDirective::allowInline):
        (WebCore::CSPDirective::allowEval):
        (WebCore::ContentSecurityPolicy::allowJavaScriptURLs):
        (WebCore::ContentSecurityPolicy::allowInlineEventHandlers):
        (WebCore::ContentSecurityPolicy::allowInlineScript):
        (WebCore::ContentSecurityPolicy::allowEval):
        (WebCore::ContentSecurityPolicy::addDirective):
        * page/ContentSecurityPolicy.h:

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

9 years ago../WebCore: Manual test for <rdar://problem/9329741> Reproducible crash in WebChromeC...
mitz@apple.com [Sun, 24 Apr 2011 18:29:49 +0000 (18:29 +0000)]
../WebCore: Manual test for <rdar://problem/9329741> Reproducible crash in WebChromeClient::invalidateContentsAndWindow() on simonscat.com
https://bugs.webkit.org/show_bug.cgi?id=59299

Reviewed by Maciej Stachowiak.

* manual-tests/back-from-document-with-scrollbar.html: Added.

../WebKit2: <rdar://problem/9329741> Reproducible crash in WebChromeClient::invalidateContentsAndWindow() on simonscat.com
https://bugs.webkit.org/show_bug.cgi?id=59299

Reviewed by Maciej Stachowiak.

* WebProcess/WebCoreSupport/WebChromeClient.cpp:
(WebKit::WebChromeClient::invalidateContentsAndWindow): Null-check the document.
(WebKit::WebChromeClient::invalidateContentsForSlowScroll): Ditto.

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

9 years ago2011-04-24 Adam Barth <abarth@webkit.org>
abarth@webkit.org [Sun, 24 Apr 2011 09:14:35 +0000 (09:14 +0000)]
2011-04-24  Adam Barth  <abarth@webkit.org>

        Reviewed by Maciej Stachowiak.

        Test canonicalization of scheme:/host
        https://bugs.webkit.org/show_bug.cgi?id=59296

        * fast/url/script-tests/segments.js:
        * fast/url/script-tests/standard-url.js:
        * fast/url/segments-expected.txt:
        * fast/url/standard-url-expected.txt:

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

9 years ago2011-04-24 Rik Cabanier <cabanier@adobe.com>
commit-queue@webkit.org [Sun, 24 Apr 2011 08:17:39 +0000 (08:17 +0000)]
2011-04-24  Rik Cabanier  <cabanier@adobe.com>

        Reviewed by Simon Fraser.

        Tables are not rendered correctly
        https://bugs.webkit.org/show_bug.cgi?id=59138

        * fast/table/auto-100-percent-width.html: Added.
        * platform/mac/fast/table/auto-100-percent-width-expected.txt: Added.
2011-04-24  Rik Cabanier  <cabanier@adobe.com>

        Reviewed by Simon Fraser.

        Tables are not rendered correctly
        https://bugs.webkit.org/show_bug.cgi?id=59138

        Test: fast/table/auto-100-percent-width.html

        * rendering/AutoTableLayout.cpp:
        (WebCore::AutoTableLayout::computePreferredLogicalWidths):

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

9 years ago[WinCairo] Unreviewed build change.
bfulgham@webkit.org [Sun, 24 Apr 2011 06:22:37 +0000 (06:22 +0000)]
[WinCairo] Unreviewed build change.

Activate Geolocation API, as it will work with WinCairo assuming
an appropriate Geolocation Provider is registered.

* win/tools/vsprops/FeatureDefinesCairo.vsprops: Activate the
  Geolocation features.

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

9 years ago2011-04-23 Simon Fraser <simon.fraser@apple.com>
simon.fraser@apple.com [Sun, 24 Apr 2011 06:01:47 +0000 (06:01 +0000)]
2011-04-23  Simon Fraser  <simon.fraser@apple.com>

        Fix Windows build, which complains about unreachable code.

        * platform/ScrollableArea.cpp:
        (WebCore::ScrollableArea::hasLayerForHorizontalScrollbar):
        (WebCore::ScrollableArea::hasLayerForVerticalScrollbar):
        (WebCore::ScrollableArea::hasLayerForScrollCorner):

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

9 years ago2011-04-23 Simon Fraser <simon.fraser@apple.com>
simon.fraser@apple.com [Sun, 24 Apr 2011 05:53:06 +0000 (05:53 +0000)]
2011-04-23  Simon Fraser  <simon.fraser@apple.com>

        Reviewed by Dan Bernstein.

        Area under composited scrollbars not repainted in WebKit2 on scrolling
        https://bugs.webkit.org/show_bug.cgi?id=59294
        <rdar://problem/9299062>

        When computing the rect that can be copied on scrolling, we normally
        exclude the areas occupied by overlay scrollbars to avoid smeared scrollbars;
        the assumption is that other code will repaint these areas. However, when
        scrollbars are in their own compositing layers, we can, and should
        copy the entire area.

        Not testable in DRT because it does not allow tests to use overlay scrollbars.

        * platform/ScrollView.h:
        * platform/ScrollView.cpp:
        (WebCore::ScrollView::rectToCopyOnScroll):
        New method, with code moved from scrollContents and fixed to look
        for scrollbars in layers.
        (WebCore::ScrollView::scrollContents):
        Call rectToCopyOnScroll().

        * platform/ScrollableArea.h:
        * platform/ScrollableArea.cpp:
        (WebCore::ScrollableArea::hasLayerForHorizontalScrollbar):
        (WebCore::ScrollableArea::hasLayerForVerticalScrollbar):
        (WebCore::ScrollableArea::hasLayerForScrollCorner):
        Methods we can call outside of the ACCELERATED_COMPOSITING #ifdef.

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

9 years ago2011-04-23 Sheriff Bot <webkit.review.bot@gmail.com>
commit-queue@webkit.org [Sun, 24 Apr 2011 03:59:21 +0000 (03:59 +0000)]
2011-04-23  Sheriff Bot  <webkit.review.bot@gmail.com>

        Unreviewed, rolling out r84740.
        http://trac.webkit.org/changeset/84740
        https://bugs.webkit.org/show_bug.cgi?id=59290

        change breaks apple internal builds and is incorrect
        (Requested by smfr on #webkit).

        * WebCore.exp.in:
        * page/FrameView.cpp:
        * page/FrameView.h:
        * platform/ScrollTypes.h:
        * platform/ScrollableArea.h:
        * platform/mac/ScrollbarThemeMac.mm:
        (WebCore::ScrollbarThemeMac::paint):
        * platform/mac/WebCoreSystemInterface.h:
        * platform/mac/WebCoreSystemInterface.mm:
2011-04-23  Sheriff Bot  <webkit.review.bot@gmail.com>

        Unreviewed, rolling out r84740.
        http://trac.webkit.org/changeset/84740
        https://bugs.webkit.org/show_bug.cgi?id=59290

        change breaks apple internal builds and is incorrect
        (Requested by smfr on #webkit).

        * WebCoreSupport/WebSystemInterface.mm:
        (InitWebCoreSystemInterface):
2011-04-23  Sheriff Bot  <webkit.review.bot@gmail.com>

        Unreviewed, rolling out r84740.
        http://trac.webkit.org/changeset/84740
        https://bugs.webkit.org/show_bug.cgi?id=59290

        change breaks apple internal builds and is incorrect
        (Requested by smfr on #webkit).

        * WebProcess/WebCoreSupport/mac/WebSystemInterface.mm:
        (InitWebCoreSystemInterface):

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

9 years ago<rdar://problem/8970549> WebFindOptionsAtWordStarts fails with Japanese words
mitz@apple.com [Sun, 24 Apr 2011 03:56:07 +0000 (03:56 +0000)]
<rdar://problem/8970549> WebFindOptionsAtWordStarts fails with Japanese words
https://bugs.webkit.org/show_bug.cgi?id=59288

Reviewed by Simon Fraser.

Source/WebCore:

* platform/text/mac/TextBoundaries.mm:
(WebCore::wordStringTokenizer): Added this helper function.
(WebCore::findNextWordFromIndex): Changed to use a CFStringTokenizer with kCFStringTokenizerUnitWord,
whose behavior is not locale-dependent.

LayoutTests:

* editing/text-iterator/findString-expected.txt:
* editing/text-iterator/findString.html:

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

9 years ago2011-04-23 Dominic Cooney <dominicc@chromium.org>
morrita@google.com [Sun, 24 Apr 2011 01:31:23 +0000 (01:31 +0000)]
2011-04-23  Dominic Cooney  <dominicc@chromium.org>

        Reviewed by Dimitri Glazkov.

        [V8] Nodes in shadow DOM should not be GCed while their hosts are alive
        https://bugs.webkit.org/show_bug.cgi?id=59284

        * fast/dom/shadow/gc-shadow-expected.txt: Added.
        * fast/dom/shadow/gc-shadow.html: Added.
2011-04-23  Dominic Cooney  <dominicc@chromium.org>

        Reviewed by Dimitri Glazkov.

        [V8] Nodes in shadow DOM should not be GCed while their hosts are alive
        https://bugs.webkit.org/show_bug.cgi?id=59284

        Test: fast/dom/shadow/gc-shadow.html

        * bindings/v8/V8GCController.cpp:
        (WebCore::calculateGroupId): group shadow nodes with their hosts
2011-04-23  Dominic Cooney  <dominicc@chromium.org>

        Reviewed by Dimitri Glazkov.

        [V8] Nodes in shadow DOM should not be GCed while their hosts are alive
        https://bugs.webkit.org/show_bug.cgi?id=59284

        Chromium DRT over-refcounted the NPObject wrappers it used to
        marshal shadowRoot nodes back to tests (WebBindings::makeNode
        births NPObjects with referenceCount == 1). This masked the GC bug
        59284 in tests by making shadowRoot nodes live forever.

        * DumpRenderTree/chromium/LayoutTestController.cpp:
        (LayoutTestController::shadowRoot):
        (LayoutTestController::ensureShadowRoot):

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

9 years agoBug 59287 - DFG JIT - Handle temporaries as vars, allowing support for ?:
barraclough@apple.com [Sun, 24 Apr 2011 01:05:59 +0000 (01:05 +0000)]
Bug 59287 - DFG JIT - Handle temporaries as vars, allowing support for ?:

Reviewed by Oliver Hunt.

SetLocals to temporaries will only be generated if they are used within other
blocks, due to the SSA based DCE.

* dfg/DFGByteCodeParser.cpp:
(JSC::DFG::ByteCodeParser::ByteCodeParser):
(JSC::DFG::ByteCodeParser::get):
(JSC::DFG::ByteCodeParser::set):
(JSC::DFG::ByteCodeParser::getLocal):
(JSC::DFG::ByteCodeParser::setLocal):
(JSC::DFG::ByteCodeParser::parseBlock):
(JSC::DFG::ByteCodeParser::processPhiStack):
(JSC::DFG::ByteCodeParser::allocateVirtualRegisters):
(JSC::DFG::ByteCodeParser::parse):
* dfg/DFGGraph.h:
(JSC::DFG::BasicBlock::BasicBlock):

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

9 years ago2011-04-23 MORITA Hajime <morrita@google.com>
morrita@google.com [Sun, 24 Apr 2011 00:51:54 +0000 (00:51 +0000)]
2011-04-23  MORITA Hajime <morrita@google.com>

        Reviewed by Dimitri Glazkov.

        [Refactoring] NodeRenderParentDetector should be NodeRenderFactory
        https://bugs.webkit.org/show_bug.cgi?id=59280

        - Rename NodeRenderParentDetector to NodeRendererFactory
        - move createRendererAndStyle() and createRendererIfNeeded to
          NodeRendererFactory

        No new test, no behavioral change.

        * dom/Node.cpp:
        (WebCore::NodeRendererFactory::NodeRendererFactory):
        (WebCore::NodeRendererFactory::document):
        (WebCore::NodeRendererFactory::nextRenderer):
        (WebCore::NodeRendererFactory::findVisualParent):
        (WebCore::NodeRendererFactory::shouldCreateRenderer):
        (WebCore::NodeRendererFactory::createRendererAndStyle):
        (WebCore::NodeRendererFactory::createRendererIfNeeded):
        (WebCore::Node::parentNodeForRenderingAndStyle):
        (WebCore::Node::createRendererIfNeeded):
        * dom/Node.h:
        * html/HTMLDetailsElement.cpp:
        (WebCore::DetailsSummaryElement::detailsElement): Added const_cast due to the chage on parentNodeForRenderingAndStyle()

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

9 years ago2011-04-23 MORITA Hajime <morrita@google.com>
morrita@google.com [Sun, 24 Apr 2011 00:17:52 +0000 (00:17 +0000)]
2011-04-23  MORITA Hajime <morrita@google.com>

        Unreviewed test_expectations.txt update.
        r84745 didn't fix meter-element.html break on chromium.

        * platform/chromium/test_expectations.txt:

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

9 years ago2011-04-23 MORITA Hajime <morrita@google.com>
morrita@google.com [Sat, 23 Apr 2011 23:16:23 +0000 (23:16 +0000)]
2011-04-23  MORITA Hajime  <morrita@google.com>

        Reviewed by Kent Tamura.

        REGRESSION: (non-Mac) <meter>'s bar part isn't rendered for with -webkit-writing-mode: vertical-lr from r82899
        https://bugs.webkit.org/show_bug.cgi?id=59281

        * fast/dom/HTMLMeterElement/meter-writing-mode.html: Added.
        * fast/dom/HTMLProgressElement/progress-writing-mode.html: Added.
        * platform/chromium/test_expectations.txt:
        * platform/mac/fast/dom/HTMLMeterElement/meter-writing-mode-expected.png: Added.
        * platform/mac/fast/dom/HTMLMeterElement/meter-writing-mode-expected.txt: Added.
        * platform/mac/fast/dom/HTMLProgressElement/progress-writing-mode-expected.png: Added.
        * platform/mac/fast/dom/HTMLProgressElement/progress-writing-mode-expected.txt: Added.
2011-04-23  MORITA Hajime  <morrita@google.com>

        Reviewed by Kent Tamura.

        REGRESSION: (non-Mac) <meter>'s bar part isn't rendered for with -webkit-writing-mode: vertical-lr from r82899
        https://bugs.webkit.org/show_bug.cgi?id=59281

        Styles for -webkit-meter-bar and -webkit-progress-bar missed width property, which caused unexpected layout results
        for vertical writing modes. This fix added a width property for each of them.

        Tests: fast/dom/HTMLMeterElement/meter-writing-mode.html
               fast/dom/HTMLProgressElement/progress-writing-mode.html

        * css/html.css:
        (meter::-webkit-meter-bar):
        (progress::-webkit-progress-bar):

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

9 years agoBug 59266 - DFG JIT - Add SSA style DCE
barraclough@apple.com [Sat, 23 Apr 2011 20:16:10 +0000 (20:16 +0000)]
Bug 59266 - DFG JIT - Add SSA style DCE

Reviewed by Sam Weinig & Geoff Garen.

This works by making GetLocal nodes reference SetLocal nodes from prior blocks,
via intermediate Phi nodes. Whenever we add a GetLocal to the graph, also add a
matching child Phi, and add the Phi to a work queue to add references to prior
definitions once we have the full CFG & can determine predecessors. This process
is iterative, inserting new phis into predecessors as necessary.

* dfg/DFGByteCodeParser.cpp:
(JSC::DFG::ByteCodeParser::getVariable):
(JSC::DFG::ByteCodeParser::setVariable):
(JSC::DFG::ByteCodeParser::getArgument):
(JSC::DFG::ByteCodeParser::setArgument):
(JSC::DFG::ByteCodeParser::parseBlock):
(JSC::DFG::ByteCodeParser::processWorkQueue):
(JSC::DFG::ByteCodeParser::allocateVirtualRegisters):
(JSC::DFG::ByteCodeParser::parse):
* dfg/DFGGraph.cpp:
(JSC::DFG::Graph::dump):
(JSC::DFG::Graph::refChildren):
* dfg/DFGGraph.h:
(JSC::DFG::Graph::ref):
* dfg/DFGNode.h:
(JSC::DFG::Node::ref):
* dfg/DFGNonSpeculativeJIT.cpp:
(JSC::DFG::NonSpeculativeJIT::compile):
* dfg/DFGScoreBoard.h:
(JSC::DFG::ScoreBoard::~ScoreBoard):
(JSC::DFG::ScoreBoard::dump):
* dfg/DFGSpeculativeJIT.cpp:
(JSC::DFG::SpeculativeJIT::compile):

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

9 years ago[wx] Unreviewed build fixes for recent trunk changes.
kevino@webkit.org [Sat, 23 Apr 2011 20:05:34 +0000 (20:05 +0000)]
[wx] Unreviewed build fixes for recent trunk changes.

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

9 years ago2011-04-23 Alexey Proskuryakov <ap@apple.com>
ap@apple.com [Sat, 23 Apr 2011 19:14:05 +0000 (19:14 +0000)]
2011-04-23  Alexey Proskuryakov  <ap@apple.com>

        Unreviewed.

        REGRESSION (r80812): window.print();window.close() doesn't work in WebKit2
        https://bugs.webkit.org/show_bug.cgi?id=59241
        <rdar://problem/9150861>

        * http/tests/misc/will-send-request-returns-null-on-redirect-expected.txt:
        * http/tests/security/XFrameOptions/x-frame-options-deny-expected.txt:
        * http/tests/security/XFrameOptions/x-frame-options-parent-same-origin-deny-expected.txt:
        Resource load delegates for cancelled loads are now correctly sent before frame load
        delegate's didFinishLoading, so cancellation errors get logged by DumpRenderTree.
2011-04-23  Alexey Proskuryakov  <ap@apple.com>

        Reviewed by Maciej Stachowiak.

        REGRESSION (r80812): window.print();window.close() doesn't work in WebKit2
        https://bugs.webkit.org/show_bug.cgi?id=59241
        <rdar://problem/9150861>

        Covered by manual-tests/print-after-window-close.html.

        Re-fixing <https://bugs.webkit.org/show_bug.cgi?id=51357> in a way that doesn't cause the
        regression.

        * loader/MainResourceLoader.cpp: (WebCore::MainResourceLoader::didCancel): We shouldn't be
        doing complicated work while the loader is half-canceled.

        * manual-tests/print-after-window-close.html: Extended to actually print a non-empty page,
        thus being more practical.

        * page/Chrome.cpp: (WebCore::Chrome::print): Added a FIXME about a need for PageGroupLoadDeferrer.
        It's too scary for me to try now.

        * page/DOMWindow.cpp:
        (WebCore::DOMWindow::DOMWindow):
        (WebCore::DOMWindow::finishedLoading):
        * page/DOMWindow.h:
        Reverted the previous fix for <https://bugs.webkit.org/show_bug.cgi?id=51357>.

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

9 years ago2011-04-19 Vitaly Repeshko <vitalyr@chromium.org>
vitalyr@chromium.org [Sat, 23 Apr 2011 07:11:38 +0000 (07:11 +0000)]
2011-04-19  Vitaly Repeshko  <vitalyr@chromium.org>

        Reviewed by Adam Barth.

        [V8] Use implicit references for V8 listeners on DOM nodes.
        https://bugs.webkit.org/show_bug.cgi?id=58953

        Instead of allocating an auxiliary V8 array referencing V8
        listener objects associated with a DOM node and using an extra
        pointer in every DOM node wrapper, we can register implicit
        references between nodes and their listeners during GC. This also
        makes V8 bindings more aligned with JSC bindings.

        No new tests because this is a refactoring.

        * bindings/scripts/CodeGeneratorV8.pm: Stopped generating the
        listener cache internal field for DOM nodes.
        * bindings/v8/V8AbstractEventListener.h: Exposed the lister handle
        to the GC.
        (WebCore::V8AbstractEventListener::existingListenerObjectPeristentHandle):
        * bindings/v8/V8GCController.cpp: Started using implicit references.
        (WebCore::GrouperVisitor::visitDOMWrapper):
        * dom/EventTarget.h: Implemented an iterator over all listeners.
        (WebCore::EventListenerIterator):

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

9 years ago2011-04-22 Jon Lee <jonlee@apple.com>
commit-queue@webkit.org [Sat, 23 Apr 2011 06:22:59 +0000 (06:22 +0000)]
2011-04-22  Jon Lee  <jonlee@apple.com>

        Reviewed by Beth Dakin.

        Overlay scroller hard to see on pages with dark background (59183)
        https://bugs.webkit.org/show_bug.cgi?id=59183
        <rdar://problem/8975367>

        * WebCore.exp.in: adding method to allow changing style
        * page/FrameView.cpp:
        (WebCore::FrameView::recommendedScrollbarOverlayStyle): overridden to suggest a style based on CSS background color
        * page/FrameView.h:
        * platform/ScrollTypes.h: new enum to represent different overlay scrollbar styles
        * platform/ScrollableArea.cpp:
        (WebCore::ScrollableArea::recommendedScrollbarOverlayStyle): new virtual function to return a suggested overlay style
        * platform/ScrollableArea.h:
        * platform/mac/ScrollbarThemeMac.mm:
        (WebCore::ScrollbarThemeMac::paint):
        * platform/mac/WebCoreSystemInterface.h:
        * platform/mac/WebCoreSystemInterface.mm:
2011-04-22  Jon Lee  <jonlee@apple.com>

        Reviewed by Beth Dakin.

        Overlay scroller hard to see on pages with dark background (59183)
        https://bugs.webkit.org/show_bug.cgi?id=59183
        <rdar://problem/8975367>

        * WebCoreSupport/WebSystemInterface.mm:
        (InitWebCoreSystemInterface): adding method to allow changing style
2011-04-22  Jon Lee  <jonlee@apple.com>

        Reviewed by Beth Dakin.

        Overlay scroller hard to see on pages with dark background (59183)
        https://bugs.webkit.org/show_bug.cgi?id=59183
        <rdar://problem/8975367>

        * WebProcess/WebCoreSupport/mac/WebSystemInterface.mm:
        (InitWebCoreSystemInterface): adding method to allow changing style

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

9 years ago2011-04-22 Chris Evans <cevans@chromium.org>
commit-queue@webkit.org [Sat, 23 Apr 2011 05:55:32 +0000 (05:55 +0000)]
2011-04-22  Chris Evans  <cevans@chromium.org>

        Reviewed by Adam Barth.

        Upgrade CSS loads from mixed content warning (displayed) to mixed
        content error (ran)
        https://bugs.webkit.org/show_bug.cgi?id=59056

        * http/tests/security/mixedContent/insecure-css-in-iframe-expected.txt: Update expectation.
        * http/tests/security/mixedContent/insecure-css-in-main-frame-expected.txt: Update expectation.
        * http/tests/security/mixedContent/insecure-css-in-iframe.html: Update expectation.
        * http/tests/security/mixedContent/insecure-css-in-main-frame.html: Update expectation.
        * http/tests/security/mixedContent/resources/frame-with-insecure-css.html: Fix typo.
2011-04-22  Chris Evans  <cevans@chromium.org>

        Reviewed by Adam Barth.

        Upgrade CSS loads from mixed content warning (displayed) to mixed
        content error (ran)
        https://bugs.webkit.org/show_bug.cgi?id=59056

        Test: http/tests/security/mixedContent/insecure-css-in-iframe.html
        Test: http/tests/security/mixedContent/insecure-css-in-main-frame.html

        * loader/cache/CachedResourceLoader.cpp:
        (WebCore::CachedResourceLoader::canRequest): CSS loads are running rather than displaying content.

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

9 years ago[Qt][WK2] Add some failing tests to the Skipped list because of a WTR sideeffect...
ossy@webkit.org [Sat, 23 Apr 2011 05:09:09 +0000 (05:09 +0000)]
[Qt][WK2] Add some failing tests to the Skipped list because of a WTR sideeffect bug.

* platform/qt-wk2/Skipped:

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

9 years agoFixed an upside-down conditional in my last check-in.
ggaren@apple.com [Sat, 23 Apr 2011 04:44:11 +0000 (04:44 +0000)]
Fixed an upside-down conditional in my last check-in.

* bindings/js/JSDOMApplicationCacheCustom.cpp:
(WebCore::isObservable):

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

9 years ago2011-04-22 Geoffrey Garen <ggaren@apple.com>
ggaren@apple.com [Sat, 23 Apr 2011 04:41:54 +0000 (04:41 +0000)]
2011-04-22  Geoffrey Garen  <ggaren@apple.com>

        Rolled back in r84725 and r84728 with appcache crash fixed.

        Reviewed by Oliver Hunt.

        Removed a use of markDOMObjectWrapper: DOMWindow
        https://bugs.webkit.org/show_bug.cgi?id=59260

        * bindings/js/JSDOMWindowCustom.cpp:
        (WebCore::JSDOMWindow::visitChildren): No need to mark explicitly, since
        we use the opaque roots system now.

        * bindings/js/JSNavigatorCustom.cpp: Ditto.

        * bindings/scripts/CodeGeneratorJS.pm: Added autogeneration for objects
        whose opaque roots are frames.

        * css/StyleMedia.h:
        (WebCore::StyleMedia::frame): Added an accessor for the sake of GC.

        * css/StyleMedia.idl:
        * loader/appcache/DOMApplicationCache.idl:
        * page/BarInfo.idl:
        * page/Console.idl:
        * page/DOMSelection.idl:
        * page/Geolocation.idl:
        * page/History.idl:
        * page/Location.idl:
        * page/Navigator.idl:
        * page/Screen.idl:
        * storage/Storage.idl: Updated to use the opaque roots system.

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

9 years ago[Qt] Unskip a bunch of passing tests and update their expected files.
ossy@webkit.org [Sat, 23 Apr 2011 04:37:37 +0000 (04:37 +0000)]
[Qt] Unskip a bunch of passing tests and update their expected files.
This patch based on work of Kristóf Kosztyó <Kosztyo.Kristof@stud.u-szeged.hu>

* platform/qt/Skipped:
* platform/qt/fast/[...]: Added, updated.
* platform/qt/scrollbars/[...]: Added, updated.

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

9 years ago2011-04-22 Sheriff Bot <webkit.review.bot@gmail.com>
commit-queue@webkit.org [Sat, 23 Apr 2011 03:41:53 +0000 (03:41 +0000)]
2011-04-22  Sheriff Bot  <webkit.review.bot@gmail.com>

        Unreviewed, rolling out r84627.
        http://trac.webkit.org/changeset/84627
        https://bugs.webkit.org/show_bug.cgi?id=59271

        It broke Symbian build (Requested by Ossy on #webkit).

        * Source/WebKit.pro:
2011-04-22  Sheriff Bot  <webkit.review.bot@gmail.com>

        Unreviewed, rolling out r84627.
        http://trac.webkit.org/changeset/84627
        https://bugs.webkit.org/show_bug.cgi?id=59271

        It broke Symbian build (Requested by Ossy on #webkit).

        * QtWebKit.pro:
        * symbian/platformplugin/WebPlugin.cpp: Removed.
        * symbian/platformplugin/WebPlugin.h: Removed.
        * symbian/platformplugin/platformplugin.pro: Removed.
        * symbian/platformplugin/qwebkitplatformplugin.h: Removed.
2011-04-22  Sheriff Bot  <webkit.review.bot@gmail.com>

        Unreviewed, rolling out r84627.
        http://trac.webkit.org/changeset/84627
        https://bugs.webkit.org/show_bug.cgi?id=59271

        It broke Symbian build (Requested by Ossy on #webkit).

        * Scripts/webkitpy/style/checker.py:
        * Scripts/webkitpy/style/checker_unittest.py:

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

9 years ago2011-04-22 Dirk Pranke <dpranke@chromium.org>
dpranke@chromium.org [Sat, 23 Apr 2011 03:22:19 +0000 (03:22 +0000)]
2011-04-22  Dirk Pranke  <dpranke@chromium.org>

        Unreviewed, expectations change - clean up some flakiness.

        * platform/chromium/test_expectations.txt:

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

9 years ago2011-04-22 Nate Chapin <japhet@chromium.org>
japhet@chromium.org [Sat, 23 Apr 2011 03:20:07 +0000 (03:20 +0000)]
2011-04-22  Nate Chapin  <japhet@chromium.org>

        Reviewed by Adam Barth.

        Don't use XMLTreeViewer when script is disabled (it uses Javascript
        to build a prettified version of the xml document).
        https://bugs.webkit.org/show_bug.cgi?id=59113

        * xml/XMLTreeViewer.cpp:
        (WebCore::XMLTreeViewer::transformDocumentToTreeView):

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

9 years ago2011-04-22 Sheriff Bot <webkit.review.bot@gmail.com>
ossy@webkit.org [Sat, 23 Apr 2011 03:17:49 +0000 (03:17 +0000)]
2011-04-22  Sheriff Bot  <webkit.review.bot@gmail.com>

        Unreviewed, rolling out r84725 and r84728.
        http://trac.webkit.org/changeset/84725
        http://trac.webkit.org/changeset/84728
        https://bugs.webkit.org/show_bug.cgi?id=59270

        It broke http/tests/appcache tests (Requested by Ossy on
        #webkit).

        * bindings/js/JSDOMWindowCustom.cpp:
        (WebCore::JSDOMWindow::visitChildren):
        * bindings/js/JSNavigatorCustom.cpp:
        (WebCore::JSNavigator::visitChildren):
        * bindings/scripts/CodeGeneratorJS.pm:
        * css/StyleMedia.h:
        * css/StyleMedia.idl:
        * loader/appcache/DOMApplicationCache.idl:
        * page/BarInfo.idl:
        * page/Console.idl:
        * page/DOMSelection.idl:
        * page/DOMWindow.h:
        (WebCore::DOMWindow::optionalScreen):
        (WebCore::DOMWindow::optionalSelection):
        (WebCore::DOMWindow::optionalHistory):
        (WebCore::DOMWindow::optionalCrypto):
        (WebCore::DOMWindow::optionalLocationbar):
        (WebCore::DOMWindow::optionalMenubar):
        (WebCore::DOMWindow::optionalPersonalbar):
        (WebCore::DOMWindow::optionalScrollbars):
        (WebCore::DOMWindow::optionalStatusbar):
        (WebCore::DOMWindow::optionalToolbar):
        (WebCore::DOMWindow::optionalConsole):
        (WebCore::DOMWindow::optionalNavigator):
        (WebCore::DOMWindow::optionalLocation):
        (WebCore::DOMWindow::optionalMedia):
        (WebCore::DOMWindow::optionalSessionStorage):
        (WebCore::DOMWindow::optionalLocalStorage):
        (WebCore::DOMWindow::optionalPerformance):
        * page/Geolocation.idl:
        * page/History.idl:
        * page/Location.idl:
        * page/Navigator.h:
        (WebCore::Navigator::optionalGeolocation):
        * page/Navigator.idl:
        * page/Screen.idl:
        * storage/Storage.idl:

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

9 years ago2011-04-22 Dirk Pranke <dpranke@chromium.org>
dpranke@chromium.org [Sat, 23 Apr 2011 03:17:41 +0000 (03:17 +0000)]
2011-04-22  Dirk Pranke  <dpranke@chromium.org>

        Reviewed by Adam Barth.

        rebaseline-chromium-webkit-tests: clean up output
        https://bugs.webkit.org/show_bug.cgi?id=59240

        This change dramatically changes the output the tool provides
        by default. The previous output (more or less) is still there
        in -v / verbose / debug mode, but the default output is
        way terser and more readable. It mostly says which files are
        updated, which are duplicates, and which are not found in an
        archive. Feedback desired :).

        This change also adds a scm.exists() method to the SCM object
        so that we can cleanly figure out what we're doing while
        rebaselining.

        * Scripts/webkitpy/layout_tests/rebaseline_chromium_webkit_tests.py:
        * Scripts/webkitpy/layout_tests/rebaseline_chromium_webkit_tests_unittest.py:
        * Scripts/webkitpy/common/system/filesystem_mock.py:
        * Scripts/webkitpy/common/checkout/scm.py:
        * Scripts/webkitpy/common/checkout/scm_unittest.py:

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

9 years ago2011-04-22 Dimitri Glazkov <dglazkov@chromium.org>
dglazkov@chromium.org [Sat, 23 Apr 2011 03:09:13 +0000 (03:09 +0000)]
2011-04-22  Dimitri Glazkov  <dglazkov@chromium.org>

        Reviewed by Kent Tamura.

        Change SVG-related shadow root checks to use isSVGShadowRoot.
        https://bugs.webkit.org/show_bug.cgi?id=59237

        Covered by existing tests, no behavior change.

        * css/CSSStyleSelector.cpp:
        (WebCore::CSSStyleSelector::SelectorChecker::checkSelector): Use isSVGShadowRoot.
        * svg/SVGUseElement.cpp:
        (WebCore::ShadowTreeUpdateBlocker::while): Ditto.
        * svg/animation/SVGSMILElement.cpp:
        (WebCore::SVGSMILElement::insertedIntoDocument): Ditto.

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

9 years agoMac build fix.
ggaren@apple.com [Sat, 23 Apr 2011 02:22:57 +0000 (02:22 +0000)]
Mac build fix.

* page/DOMWindow.h:
(WebCore::DOMWindow::optionalApplicationCache): Restored this function,
which is used after all.

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

9 years ago2011-04-22 Ilya Sherman <isherman@chromium.org>
commit-queue@webkit.org [Sat, 23 Apr 2011 02:19:49 +0000 (02:19 +0000)]
2011-04-22  Ilya Sherman  <isherman@chromium.org>

        Reviewed by Alexey Proskuryakov.

        Add Ilya Sherman (isherman@chromium.org) to the list of contributors
        https://bugs.webkit.org/show_bug.cgi?id=59231

        * Scripts/webkitpy/common/config/committers.py:

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

9 years ago2011-04-22 Ojan Vafai <ojan@chromium.org>
ojan@chromium.org [Sat, 23 Apr 2011 02:16:33 +0000 (02:16 +0000)]
2011-04-22  Ojan Vafai  <ojan@chromium.org>

        Reviewed by Eric Seidel.

        don't white-space:nowrap the results iframes
        https://bugs.webkit.org/show_bug.cgi?id=59259

        * fast/harness/results.html:

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

9 years ago2011-04-22 Geoffrey Garen <ggaren@apple.com>
ggaren@apple.com [Sat, 23 Apr 2011 02:09:10 +0000 (02:09 +0000)]
2011-04-22  Geoffrey Garen  <ggaren@apple.com>

        Reviewed by Oliver Hunt.

        Removed a use of markDOMObjectWrapper: DOMWindow
        https://bugs.webkit.org/show_bug.cgi?id=59260

        * bindings/js/JSDOMWindowCustom.cpp:
        (WebCore::JSDOMWindow::visitChildren): No need to mark explicitly, since
        we use the opaque roots system now.

        * bindings/js/JSNavigatorCustom.cpp: Ditto.

        * bindings/scripts/CodeGeneratorJS.pm: Added autogeneration for objects
        whose opaque roots are frames.

        * css/StyleMedia.h:
        (WebCore::StyleMedia::frame): Added an accessor for the sake of GC.

        * css/StyleMedia.idl:
        * loader/appcache/DOMApplicationCache.idl:
        * page/BarInfo.idl:
        * page/Console.idl:
        * page/DOMSelection.idl:
        * page/Geolocation.idl:
        * page/History.idl:
        * page/Location.idl:
        * page/Navigator.idl:
        * page/Screen.idl:
        * storage/Storage.idl: Updated to use the opaque roots system.

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

9 years ago2011-04-22 Dirk Pranke <dpranke@chromium.org>
dpranke@chromium.org [Sat, 23 Apr 2011 02:05:23 +0000 (02:05 +0000)]
2011-04-22  Dirk Pranke  <dpranke@chromium.org>

        Unreviewed, expectations change. Roll in deps bots failures.

        * platform/chromium/test_expectations.txt:

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

9 years agoWebKit2: Stop responsiveness timer before calling runOpenPanel
bweinstein@apple.com [Sat, 23 Apr 2011 02:03:20 +0000 (02:03 +0000)]
WebKit2: Stop responsiveness timer before calling runOpenPanel
https://bugs.webkit.org/show_bug.cgi?id=59268
<rdar://problem/9327944>

Reviewed by Sam Weinig.

* UIProcess/WebPageProxy.cpp:
(WebKit::WebPageProxy::runOpenPanel): Stop the timer before calling WebUIClient::runOpenPanel,
    because runOpenPanel can spin a nested run loop.

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

9 years ago2011-04-22 Yuta Kitamura <yutak@chromium.org>
yutak@chromium.org [Sat, 23 Apr 2011 01:48:52 +0000 (01:48 +0000)]
2011-04-22  Yuta Kitamura  <yutak@chromium.org>

        Reviewed by Ojan Vafai.

        new-run-webkit-tests: Exception raised when stderr contains binary data
        https://bugs.webkit.org/show_bug.cgi?id=59083

        * Scripts/webkitpy/layout_tests/layout_package/test_result_writer.py:
        Use write_binary_file() instead of write_text_file().

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

9 years ago2011-04-22 Chang Shu <cshu@webkit.org>
commit-queue@webkit.org [Sat, 23 Apr 2011 01:14:15 +0000 (01:14 +0000)]
2011-04-22  Chang Shu  <cshu@webkit.org>

        Reviewed by Kenneth Rohde Christiansen.

        WebKitTestRunner needs layoutTestController.setFrameFlatteningEnabled
        https://bugs.webkit.org/show_bug.cgi?id=42536

        Unskip passed tests.

        * platform/mac-wk2/Skipped:
        * platform/qt-wk2/Skipped:
2011-04-22  Chang Shu  <cshu@webkit.org>

        Reviewed by Kenneth Rohde Christiansen.

        WebKitTestRunner needs layoutTestController.setFrameFlatteningEnabled
        https://bugs.webkit.org/show_bug.cgi?id=42536

        * WebProcess/InjectedBundle/API/c/WKBundle.cpp:
        (WKBundleSetFrameFlatteningEnabled):
        * WebProcess/InjectedBundle/API/c/WKBundlePrivate.h:
        * WebProcess/InjectedBundle/InjectedBundle.cpp:
        (WebKit::InjectedBundle::setFrameFlatteningEnabled):
        * WebProcess/InjectedBundle/InjectedBundle.h:
2011-04-22  Chang Shu  <cshu@webkit.org>

        Reviewed by Kenneth Rohde Christiansen.

        WebKitTestRunner needs layoutTestController.setFrameFlatteningEnabled
        https://bugs.webkit.org/show_bug.cgi?id=42536

        * WebKitTestRunner/InjectedBundle/Bindings/LayoutTestController.idl:
        * WebKitTestRunner/InjectedBundle/LayoutTestController.cpp:
        (WTR::LayoutTestController::setFrameFlatteningEnabled):
        * WebKitTestRunner/InjectedBundle/LayoutTestController.h:

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

9 years ago2011-04-22 Xiaomei Ji <xji@chromium.org>
xji@chromium.org [Sat, 23 Apr 2011 01:09:28 +0000 (01:09 +0000)]
2011-04-22  Xiaomei Ji  <xji@chromium.org>

        [QT] move-by-word-visually.html failed in QT.
        https://bugs.webkit.org/show_bug.cgi?id=59265

        Temporarily skip the test in QT while investigating.

        * platform/qt/Skipped:

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

9 years ago2011-04-22 Alejandro G. Castro <alex@igalia.com>
alex@webkit.org [Sat, 23 Apr 2011 01:03:44 +0000 (01:03 +0000)]
2011-04-22  Alejandro G. Castro  <alex@igalia.com>

        Undo rebaseline done in r84677 for this test, it was a flaky
        execution.

        * platform/gtk/media/video-controls-rendering-expected.txt:

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

9 years ago2011-04-22 Vitaly Repeshko <vitalyr@chromium.org>
vitalyr@chromium.org [Sat, 23 Apr 2011 00:59:28 +0000 (00:59 +0000)]
2011-04-22  Vitaly Repeshko  <vitalyr@chromium.org>

        Reviewed by Adam Barth.

        Add missing default constructors for HashMap iterator specializations.
        https://bugs.webkit.org/show_bug.cgi?id=59250

        * wtf/HashIterators.h:
        * wtf/HashTable.h:
        (WTF::HashTableConstIterator::HashTableConstIterator): Added cast
        to help compiler find the function template.

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

9 years agoBug 59262 - DFG JIT - reduce size of VariableRecord
barraclough@apple.com [Sat, 23 Apr 2011 00:54:37 +0000 (00:54 +0000)]
Bug 59262 - DFG JIT - reduce size of VariableRecord

Reviewed by Sam Weinig.

We never need both the get & set node, only the most recent
(which is always a set, if both exist).

* dfg/DFGByteCodeParser.cpp:
(JSC::DFG::ByteCodeParser::getVariable):
(JSC::DFG::ByteCodeParser::setVariable):
(JSC::DFG::ByteCodeParser::getArgument):
(JSC::DFG::ByteCodeParser::setArgument):
(JSC::DFG::ByteCodeParser::parseBlock):
* dfg/DFGGraph.h:
(JSC::DFG::VariableRecord::VariableRecord):

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

9 years agoVersioning.
lforschler@apple.com [Sat, 23 Apr 2011 00:39:53 +0000 (00:39 +0000)]
Versioning.

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

9 years agoUnreviewed: Updated bug ID for geolocation skipped cases
mahesh.kulkarni@nokia.com [Sat, 23 Apr 2011 00:37:23 +0000 (00:37 +0000)]
Unreviewed: Updated bug ID for geolocation skipped cases

* platform/mac-wk2/Skipped:
* platform/qt-wk2/Skipped:

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

9 years agoroll out incorrect versioning info (included extra file).
lforschler@apple.com [Sat, 23 Apr 2011 00:34:56 +0000 (00:34 +0000)]
roll out incorrect versioning info (included extra file).

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

9 years ago2011-04-22 Martin Robinson <mrobinson@igalia.com>
mrobinson@webkit.org [Sat, 23 Apr 2011 00:30:54 +0000 (00:30 +0000)]
2011-04-22  Martin Robinson  <mrobinson@igalia.com>

        Reviewed by Xan Lopez.

        [GTK] fast/events/overflow-viewport-renderer-deleted.html crashes
        https://bugs.webkit.org/show_bug.cgi?id=58976

        * platform/gtk/Skipped: Unskip a test which is no longer crashing.
2011-04-22  Martin Robinson  <mrobinson@igalia.com>

        Reviewed by Xan Lopez.

        [GTK] fast/events/overflow-viewport-renderer-deleted.html crashes
        https://bugs.webkit.org/show_bug.cgi?id=58976

        * WebCoreSupport/DumpRenderTreeSupportGtk.cpp:
        (DumpRenderTreeSupportGtk::getInnerText): Guard against situations when the documentElement
        method of the document returns null.

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

9 years ago2011-04-22 Alejandro G. Castro <alex@igalia.com> and Martin Robinson <mrobinson...
mrobinson@webkit.org [Sat, 23 Apr 2011 00:25:55 +0000 (00:25 +0000)]
2011-04-22  Alejandro G. Castro  <alex@igalia.com> and Martin Robinson  <mrobinson@igalia.com>

        Reviewed by Xan Lopez.

        [GTK] Use the libWebCore.a convenience library when compiling WebKit2
        https://bugs.webkit.org/show_bug.cgi?id=59258

        * GNUmakefile.am: Remove the libWebKit2 convenience library and use the
        libWebCore convenience library when compiling WebKit2. Not only does this
        maintain the CPPFLAGS isolation, it prevents double-compilation of WebCore
        in some cases.

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

9 years agoVersioning.
lforschler@apple.com [Sat, 23 Apr 2011 00:23:45 +0000 (00:23 +0000)]
Versioning.

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

9 years ago2011-04-22 Xiaomei Ji <xji@chromium.org>
xji@chromium.org [Sat, 23 Apr 2011 00:12:23 +0000 (00:12 +0000)]
2011-04-22  Xiaomei Ji  <xji@chromium.org>

        Reviewed by Ryosuke Niwa.

        move caret by word in visual order returns wrong result when caret itself is at word boundary.
        https://bugs.webkit.org/show_bug.cgi?id=58504.

        Add test case to test moving left/right by word visually on every character position.
        Remove a specific test added before for testing a specific code path since the test case
        is covered now.

        * editing/selection/move-by-word-visually-expected.txt:
        * editing/selection/move-by-word-visually.html:
2011-04-22  Xiaomei Ji  <xji@chromium.org>

        Reviewed by Ryosuke Niwa.

        move caret by word in visual order returns wrong result when caret itself is at word boundary.
        https://bugs.webkit.org/show_bug.cgi?id=58504.

        positionBeforeNextWord should take care that the current position is after current word.
        positionAfterPreviousWord should take care that the current positin is before current word.

        * editing/visible_units.cpp:
        (WebCore::positionBeforeNextWord):
        (WebCore::positionAfterPreviousWord):

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

9 years ago2011-04-22 Xiaomei Ji <xji@chromium.org>
xji@chromium.org [Sat, 23 Apr 2011 00:08:31 +0000 (00:08 +0000)]
2011-04-22  Xiaomei Ji  <xji@chromium.org>

        Rebaseline after r84655.

        * platform/chromium-linux/fast/block/positioning/rtl-fixed-positioning-expected.png: Added.
        * platform/chromium-linux/fast/block/positioning/vertical-rl/fixed-positioning-expected.png: Added.
        * platform/chromium-mac-leopard/fast/block/positioning/rtl-fixed-positioning-expected.png: Added.
        * platform/chromium-mac/fast/block/positioning/rtl-fixed-positioning-expected.checksum: Added.
        * platform/chromium-mac/fast/block/positioning/vertical-rl: Added.
        * platform/chromium-mac/fast/block/positioning/vertical-rl/fixed-positioning-expected.checksum: Added.
        * platform/chromium-mac/fast/block/positioning/vertical-rl/fixed-positioning-expected.txt: Added.
        * platform/chromium-win/fast/block/positioning/rtl-fixed-positioning-expected.png: Added.
        * platform/chromium-win/fast/block/positioning/vertical-rl/fixed-positioning-expected.png: Added.
        * platform/chromium-win/fast/block/positioning/vertical-rl/fixed-positioning-expected.txt: Added.

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

9 years ago2011-04-22 Xiaomei Ji <xji@chromium.org>
xji@chromium.org [Fri, 22 Apr 2011 23:59:05 +0000 (23:59 +0000)]
2011-04-22  Xiaomei Ji  <xji@chromium.org>

        Rebase after r84659.

        * platform/chromium-linux/editing/deleting/table-cells-expected.png:
        * platform/chromium-linux/fast/forms/cursor-at-editable-content-boundary-expected.txt: Added.
        * platform/chromium-linux/fast/inline-block/14498-positionForCoordinates-expected.png:
        * platform/chromium-mac-leopard/editing/deleting/table-cells-expected.png:
        * platform/chromium-mac-leopard/fast/inline-block/14498-positionForCoordinates-expected.png:
        * platform/chromium-mac/editing/deleting/table-cells-expected.png: Added.
        * platform/chromium-mac/fast/inline-block/14498-positionForCoordinates-expected.png: Added.
        * platform/chromium-win/editing/deleting/table-cells-expected.png:
        * platform/chromium-win/fast/forms/cursor-at-editable-content-boundary-expected.txt: Added.
        * platform/chromium-win/fast/inline-block/14498-positionForCoordinates-expected.png:

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

9 years ago2011-04-22 Eric Seidel <eric@webkit.org>
eric@webkit.org [Fri, 22 Apr 2011 23:54:22 +0000 (23:54 +0000)]
2011-04-22  Eric Seidel  <eric@webkit.org>

        Reviewed by Eric Carlson.

        Flaky Test: media/invalid-media-url-crash.html
        https://bugs.webkit.org/show_bug.cgi?id=51138

        Add one more test to the list of known crashers from rdar://9054715.

        * platform/mac-snowleopard/Skipped:

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

9 years ago2011-04-19 Jer Noble <jer.noble@apple.com>
jer.noble@apple.com [Fri, 22 Apr 2011 23:52:44 +0000 (23:52 +0000)]
2011-04-19  Jer Noble  <jer.noble@apple.com>

        Reviewed by Daniel Bates.

        Full Screen from within an <iframe> does not cause <iframe> to resize.
        https://bugs.webkit.org/show_bug.cgi?id=58638

        * fullscreen/full-screen-frameset-expected.txt: Added.
        * fullscreen/full-screen-frameset.html: Added.
        * fullscreen/content/inner.html: Added.
        * fullscreen/full-screen-iframe-allowed-expected.txt: Updated.
        * fullscreen/full-screen-iframe-allowed.html: Add a button with which to trigger
            full screen mode in Safari.
        * fullscreen/full-screen-iframe-not-allowed-expected.txt: Updated.
        * fullscreen/full-screen-iframe-not-allowed.html: Ditto.
        * fullscreen/resources/allowed.html: Added.
        * fullscreen/resources/inner.html: Added.
2011-04-19  Jer Noble  <jer.noble@apple.com>

        Reviewed by Daniel Bates.

        Full Screen from within an <iframe> does not cause <iframe> to resize.
        https://bugs.webkit.org/show_bug.cgi?id=58638

        Tests: fullscreen/full-screen-frameset.html

        * css/CSSStyleSelector.cpp:
        (WebCore::CSSStyleSelector::SelectorChecker::checkOneSelector): Add the
            -webkit-full-screen pseudo class to frame elements which contain
            full screen elements.
        * css/fullscreen.css:
        (iframe:-webkit-full-screen): Add iframe-specific styling rules.
        * dom/Document.cpp:
        (WebCore::Document::setContainsFullScreenElementRecursively): Added.  Walk up each
            successive document owner element, calling setContainsFullScreenElement() if
            owner is a frame element.
        (WebCore::Document::fullScreenIsAllowedForElement): Use the new Element::isFrameElementBase
            call instead of checking the element's tag name.
        (WebCore::Document::webkitWillEnterFullScreenForElement): Mark any containing
            iframes as containing a full screen element.
        (WebCore::Document::webkitWillExitFullScreenForElement): Ditto.
        * dom/Element.h:
        (WebCore::Element::isFrameElementBase): Added.
        * html/HTMLFrameElement.h:
        (WebCore::HTMLFrameElement::allowFullScreen): Disable full screen from within
            HTMLFrameElements.
        * html/HTMLFrameElementBase.cpp:
        (WebCore::HTMLFrameElementBase::setContainsFullScreenElement): Added.
        * html/HTMLFrameElementBase.h:
        (WebCore::HTMLFrameElementBase::containsFullScreenElement): Added.
        (WebCore::HTMLFrameElementBase::isFrameElementBase): Added.
2011-04-19  Jer Noble  <jer.noble@apple.com>

        Reviewed by Daniel Bates.

        Full Screen from within an <iframe> does not cause <iframe> to resize.
        https://bugs.webkit.org/show_bug.cgi?id=58638

        Tests: fullscreen/full-screen-frameset-allowed.html
               fullscreen/full-screen-frameset-not-allowed.html

        Return the _element's document instead of the WKView's document, which
        will be different in the case of elements within <iframe>s.

        * WebView/WebFullScreenController.mm:
        (-[WebFullScreenController _document]):
2011-04-19  Jer Noble  <jer.noble@apple.com>

        Reviewed by Daniel Bates.

        Full Screen from within an <iframe> does not cause <iframe> to resize.
        https://bugs.webkit.org/show_bug.cgi?id=58638

        Tests: fullscreen/full-screen-frameset-allowed.html
               fullscreen/full-screen-frameset-not-allowed.html

        * UIProcess/mac/WKFullScreenWindowController.mm:
        (-[WKFullScreenWindowController finishedEnterFullScreenAnimation:]): Cancel the background animation
            if the full screen animation finishes first.
        * WebProcess/FullScreen/mac/WebFullScreenManagerMac.mm:
        (WebKit::WebFullScreenManagerMac::WebFullScreenManagerMac): m_fullScreenRootLayer was uninitialized.

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

9 years agoBug 59254 - DFG JIT - retain VariableRecords for args/var in all basic blocks,
barraclough@apple.com [Fri, 22 Apr 2011 23:38:53 +0000 (23:38 +0000)]
Bug 59254 - DFG JIT - retain VariableRecords for args/var in all basic blocks,
such that this information is available for DCE.  Also, since this enlarges the
size of BasicBlock, make Graph hold a vector of pointers to basic blocks, not a
vector of blocks.

Reviewed by Geoffrey Garen.

* dfg/DFGByteCodeParser.cpp:
(JSC::DFG::ByteCodeParser::ByteCodeParser):
(JSC::DFG::ByteCodeParser::get):
(JSC::DFG::ByteCodeParser::set):
(JSC::DFG::ByteCodeParser::getVariable):
(JSC::DFG::ByteCodeParser::setVariable):
(JSC::DFG::ByteCodeParser::getArgument):
(JSC::DFG::ByteCodeParser::setArgument):
(JSC::DFG::ByteCodeParser::parseBlock):
(JSC::DFG::ByteCodeParser::setupPredecessors):
(JSC::DFG::ByteCodeParser::allocateVirtualRegisters):
(JSC::DFG::ByteCodeParser::parse):
* dfg/DFGGraph.cpp:
(JSC::DFG::Graph::dump):
* dfg/DFGGraph.h:
(JSC::DFG::VariableRecord::VariableRecord):
(JSC::DFG::BasicBlock::BasicBlock):
(JSC::DFG::BasicBlock::getBytecodeBegin):
(JSC::DFG::Graph::blockIndexForBytecodeOffset):
(JSC::DFG::Graph::blockForBytecodeOffset):
* dfg/DFGNonSpeculativeJIT.cpp:
(JSC::DFG::NonSpeculativeJIT::compile):
* dfg/DFGSpeculativeJIT.cpp:
(JSC::DFG::SpeculativeJIT::compile):
* dfg/DFGSpeculativeJIT.h:
(JSC::DFG::SpeculativeJIT::detectPeepHoleBranch):

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

9 years ago2011-04-22 Adam Barth <abarth@webkit.org>
abarth@webkit.org [Fri, 22 Apr 2011 23:35:44 +0000 (23:35 +0000)]
2011-04-22  Adam Barth  <abarth@webkit.org>

        Reviewed by Eric Seidel.

        CommitQueue should remember the expected failures from patch to patch
        https://bugs.webkit.org/show_bug.cgi?id=59253

        Previously, we stored the set of expected failures on the task object,
        which meant the commit-queue forgot about them after each patch.  This
        patch moves them to the CommitQueue object so they will have a longer
        lifetime.

        * Scripts/webkitpy/tool/bot/commitqueuetask_unittest.py:
        * Scripts/webkitpy/tool/bot/patchanalysistask.py:
        * Scripts/webkitpy/tool/commands/queues.py:

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

9 years ago2011-04-22 Sam Weinig <sam@webkit.org>
weinig@apple.com [Fri, 22 Apr 2011 23:29:02 +0000 (23:29 +0000)]
2011-04-22  Sam Weinig  <sam@webkit.org>

        Reviewed by Brian Weinstein.

        WebKit2: Implement JavaScript unresponsiveness timer/callbacks
        https://bugs.webkit.org/show_bug.cgi?id=59248

        Stub out shouldInterruptJavaScript callbacks.

        * MiniBrowser/mac/BrowserWindowController.m:
        (-[BrowserWindowController awakeFromNib]):
        * MiniBrowser/win/BrowserView.cpp:
        (BrowserView::create):
        * WebKitTestRunner/TestController.cpp:
        (WTR::TestController::createOtherPage):
        (WTR::TestController::initialize):
2011-04-22  Sam Weinig  <sam@webkit.org>

        Reviewed by Brian Weinstein.

        WebKit2: Implement JavaScript unresponsiveness callback
        https://bugs.webkit.org/show_bug.cgi?id=59248

        Add support for suspending JavaScript in response to a callback.

        * UIProcess/API/C/WKPage.h:
        * UIProcess/API/qt/qwkpage.cpp:
        (QWKPage::QWKPage):
        * UIProcess/WebPageProxy.cpp:
        (WebKit::WebPageProxy::shouldInterruptJavaScript):
        * UIProcess/WebPageProxy.h:
        * UIProcess/WebPageProxy.messages.in:
        * UIProcess/WebUIClient.cpp:
        (WebKit::WebUIClient::shouldInterruptJavaScript):
        * UIProcess/WebUIClient.h:
        * WebProcess/WebCoreSupport/WebChromeClient.cpp:
        (WebKit::WebChromeClient::shouldInterruptJavaScript):

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

9 years ago2011-04-22 Michael Saboff <msaboff@apple.com>
msaboff@apple.com [Fri, 22 Apr 2011 23:11:45 +0000 (23:11 +0000)]
2011-04-22  Michael Saboff  <msaboff@apple.com>

        Reviewed by Maciej Stachowiak.

        Creating copy of ContainerNode's when inserting or removing is inefficient
        https://bugs.webkit.org/show_bug.cgi?id=58695

        Eliminated node copying in willRemove() and insertedIntoDocument().

        No new tests as this is a more efficient implementation of
        existing code that is covered by existing tests.

        * dom/ContainerNode.cpp:
        (WebCore::ContainerNode::willRemove): Changed method to use
        RefPtr<> to protect against modification during removal.
        (WebCore::ContainerNode::insertedIntoDocument): Changed method to use
        RefPtr<> and two other deletion checks to protect against
        modification during insertion.

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

9 years agoErrk, build fix.
barraclough@apple.com [Fri, 22 Apr 2011 23:09:12 +0000 (23:09 +0000)]
Errk, build fix.

* dfg/DFGSpeculativeJIT.cpp:
(JSC::DFG::SpeculativeJIT::compile):

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

9 years ago2011-04-22 Geoffrey Garen <ggaren@apple.com>
ggaren@apple.com [Fri, 22 Apr 2011 23:04:12 +0000 (23:04 +0000)]
2011-04-22  Geoffrey Garen  <ggaren@apple.com>

        Reviewed by Sam Weinig.

        We have an autogenerator, so use it
        https://bugs.webkit.org/show_bug.cgi?id=59247

        * bindings/js/JSCSSRuleCustom.cpp:
        * bindings/js/JSCSSRuleListCustom.cpp:
        * bindings/js/JSCSSStyleDeclarationCustom.cpp:
        * bindings/js/JSCSSValueCustom.cpp:
        * bindings/js/JSCanvasRenderingContextCustom.cpp:
        * bindings/js/JSDOMImplementationCustom.cpp:
        * bindings/js/JSDOMStringMapCustom.cpp:
        * bindings/js/JSHTMLCollectionCustom.cpp:
        * bindings/js/JSNamedNodeMapCustom.cpp:
        * bindings/js/JSNodeCustom.h:
        * bindings/js/JSNodeListCustom.cpp:
        * bindings/js/JSStyleSheetCustom.cpp:
        * bindings/js/JSStyleSheetListCustom.cpp: Removed repetitive hand-written code.

        * bindings/scripts/CodeGeneratorJS.pm: Augmented autogenerator to do the job.

        * css/CSSRule.idl:
        * css/CSSRuleList.idl:
        * css/CSSStyleDeclaration.idl:
        * css/CSSValue.idl:
        * css/MediaList.idl:
        * css/StyleSheet.idl:
        * css/StyleSheetList.idl:
        * dom/DOMImplementation.idl:
        * dom/DOMStringMap.idl:
        * dom/NamedNodeMap.idl:
        * dom/Node.idl:
        * dom/NodeList.idl:
        * html/DOMTokenList.idl:
        * html/HTMLCollection.idl:
        * html/canvas/CanvasRenderingContext.idl: Updated attributes to plug into
        the autogenerator.

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

9 years ago2011-04-22 Dan Bernstein <mitz@apple.com>
jer.noble@apple.com [Fri, 22 Apr 2011 23:01:04 +0000 (23:01 +0000)]
2011-04-22  Dan Bernstein  <mitz@apple.com>

        Reviewed by Sam Weinig.

        Paint the bounding rect of the dirty region instead of individual rectangles when the region
        covers at least 3/4 of its bounds.

        * WebProcess/WebPage/DrawingAreaImpl.cpp:
        (WebKit::shouldPaintBoundsRect): Use floating point math so that the logic that was supposed to
        achieve this actually works.

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

9 years ago2011-04-22 Daniel Bates <dbates@webkit.org>
dbates@webkit.org [Fri, 22 Apr 2011 22:47:55 +0000 (22:47 +0000)]
2011-04-22  Daniel Bates  <dbates@webkit.org>

        Reviewed by Csaba Osztrogonác.

        webkit-patch land hangs if svn prompts for credentials
        https://bugs.webkit.org/show_bug.cgi?id=31500

        Make has_authorization_for_realm() return True only if there exists a credentials file
        that contains either the word "password" or "passtype". We assume that these words don't
        coincide with the actual credential data (e.g. a person's username is "password").

        * Scripts/webkitpy/common/checkout/scm.py:
        * Scripts/webkitpy/common/checkout/scm_unittest.py:
          - Added test cases:
            test_has_authorization_for_realm_using_credentials_with_passtype(),
            test_has_authorization_for_realm_using_credentials_with_password(),
            test_not_have_authorization_for_realm_with_credentials_missing_password_and_passtype()
          - Renamed test_not_have_authorization_for_realm() to test_not_have_authorization_for_realm_when_missing_credentials_file()
            to better describe what it's testing.
          - Repurposed test_has_authorization_for_realm() to take realm and credential data to use
            and return the result of calling has_authorization_for_realm() so that the caller can
            assert the result; Renamed to _test_has_authorization_for_realm_using_credentials() to
            better reflect its new purpose.

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

9 years ago2011-04-22 Xiaomei Ji <xji@chromium.org>
xji@chromium.org [Fri, 22 Apr 2011 22:45:39 +0000 (22:45 +0000)]
2011-04-22  Xiaomei Ji  <xji@chromium.org>

        Rebaseline after r84659.

        * platform/mac-wk2/fast/forms: Added.
        * platform/mac-wk2/fast/forms/cursor-at-editable-content-boundary-expected.txt: Added.
        * platform/win/fast/forms/cursor-at-editable-content-boundary-expected.txt: Added.

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

9 years ago2011-04-22 Joseph Pecoraro <joepeck@webkit.org>
joepeck@webkit.org [Fri, 22 Apr 2011 22:44:45 +0000 (22:44 +0000)]
2011-04-22  Joseph Pecoraro  <joepeck@webkit.org>

        Reviewed by Kent Tamura.

        Let the RenderTheme decide if an input type should have a spinner
        https://bugs.webkit.org/show_bug.cgi?id=59246

        Whether an input should have a spinner or not should
        be a UI decision made by the RenderTheme. Remove
        WebCore's default hasSpinButton values and defer
        to the RenderTheme.

        No change in functionality, covered by existing tests.

        * html/HTMLInputElement.cpp:
        (WebCore::HTMLInputElement::isRangeControl): expose isRangeControl
        for possible RenderTheme queries.
        * html/HTMLInputElement.h:

        * rendering/RenderTextControlSingleLine.cpp:
        (WebCore::RenderTextControlSingleLine::createSubtreeIfNeeded):
        (WebCore::RenderTextControlSingleLine::createInnerTextStyle):
        For both of these ask the render theme if the input should
        have a spinner.

        * rendering/RenderTheme.cpp:
        (WebCore::RenderTheme::shouldHaveSpinButtonForInputElement):
        Steppable inputs (number, date, and range) but not range
        should have spinners. This does not change existing behavior.
        * rendering/RenderTheme.h:

        * dom/InputElement.h:
        * html/BaseDateAndTimeInputType.cpp: remove hasSpinButton.
        * html/BaseDateAndTimeInputType.h: remove hasSpinButton.
        * html/InputType.cpp: remove hasSpinButton.
        * html/InputType.h: remove hasSpinButton.
        * html/NumberInputType.cpp: remove hasSpinButton.
        * html/NumberInputType.h: remove hasSpinButton.

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

9 years agohttps://bugs.webkit.org/show_bug.cgi?id=59223
bdakin@apple.com [Fri, 22 Apr 2011 22:42:50 +0000 (22:42 +0000)]
https://bugs.webkit.org/show_bug.cgi?id=59223
REGRESSION (r82185): iframe not displayed after navigation back to cached page

Reviewed by Maciej Stachowiak.

Manual test added.
* manual-tests/frame-layout-on-back.html: Added.
* manual-tests/resources/empty-document-goes-back.html: Added.
* manual-tests/resources/simple-iframe.html: Added.

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

9 years ago2011-04-22 Yael Aharon <yael.aharon@nokia.com>
yael.aharon@nokia.com [Fri, 22 Apr 2011 22:36:46 +0000 (22:36 +0000)]
2011-04-22  Yael Aharon  <yael.aharon@nokia.com>

        Reviewed by Sam Weinig.

        HTMLFormControlElement::labels should allow custom attributes.
        https://bugs.webkit.org/show_bug.cgi?id=59128

        * fast/forms/labels-custom-property-expected.txt: Added.
        * fast/forms/labels-custom-property.html: Added.
2011-04-22  Yael Aharon  <yael.aharon@nokia.com>

        Reviewed by Sam Weinig.

        HTMLFormControlElement::labels should allow custom attributes.
        https://bugs.webkit.org/show_bug.cgi?id=59128

        Cache the labels list when it is created and keep using it for future
        labels calls.

        Test: fast/forms/labels-custom-property.html

        * html/HTMLFormControlElement.cpp:
        (WebCore::HTMLFormControlElement::labels):

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

9 years ago2011-04-22 Adam Barth <abarth@webkit.org>
abarth@webkit.org [Fri, 22 Apr 2011 22:34:53 +0000 (22:34 +0000)]
2011-04-22  Adam Barth  <abarth@webkit.org>

        Remove double-negative.  (Sorry this was bugging me.)

        * Scripts/webkitpy/tool/bot/commitqueuetask.py:

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

9 years agoQuick cleanup to SpeculativeJIT/NonSpeculativeJIT compile loop,
barraclough@apple.com [Fri, 22 Apr 2011 22:27:54 +0000 (22:27 +0000)]
Quick cleanup to SpeculativeJIT/NonSpeculativeJIT compile loop,
move out the call to checkConsistency().

Reviewed by Sam Weinig.

* dfg/DFGNonSpeculativeJIT.cpp:
(JSC::DFG::NonSpeculativeJIT::compile):
* dfg/DFGSpeculativeJIT.cpp:
(JSC::DFG::SpeculativeJIT::compile):
* dfg/DFGSpeculativeJIT.h:
(JSC::DFG::SpeculativeJIT::SpeculativeJIT):
(JSC::DFG::SpeculativeJIT::terminateSpeculativeExecution):

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

9 years ago2011-04-22 Adrienne Walker <enne@google.com>
enne@google.com [Fri, 22 Apr 2011 22:21:39 +0000 (22:21 +0000)]
2011-04-22  Adrienne Walker  <enne@google.com>

        Reviewed by James Robinson.

        [chromium] Remove minimum texture size for compositor tiling
        https://bugs.webkit.org/show_bug.cgi?id=59236

        This was mistakenly committed in r83915 and causes bad filtering
        on very small textures.

        Tests: compositing/images/content-image-change.html

        * platform/graphics/chromium/LayerTilerChromium.cpp:
        (WebCore::LayerTilerChromium::setTileSize):

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

9 years ago2011-04-22 Adam Barth <abarth@webkit.org>
abarth@webkit.org [Fri, 22 Apr 2011 22:17:28 +0000 (22:17 +0000)]
2011-04-22  Adam Barth  <abarth@webkit.org>

        Reviewed by Eric Seidel.

        Factor LayoutTestResultsReader out of CommitQueue
        https://bugs.webkit.org/show_bug.cgi?id=59244

        This code will be shared with the EWS when they start running tests.

        * Scripts/webkitpy/tool/bot/layouttestresultsreader.py: Added.
        * Scripts/webkitpy/tool/bot/layouttestresultsreader_unittest.py: Added.
        * Scripts/webkitpy/tool/commands/queues.py:
        * Scripts/webkitpy/tool/commands/queues_unittest.py:

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

9 years agohttps://bugs.webkit.org/show_bug.cgi?id=59223
bdakin@apple.com [Fri, 22 Apr 2011 22:10:21 +0000 (22:10 +0000)]
https://bugs.webkit.org/show_bug.cgi?id=59223
REGRESSION (r82185): iframe not displayed after navigation back to cached page
-and corresponding-
<rdar://problem/9323763>

Reviewed by Maciej Stachowiak.

Cache the scroll position in Document::setInPageCache() instead of
FrameView::resetScrollbarsAndClearContentsSize(), and only clear the contents size
for the mainFrame(). Still resetScrollbars() for other frames, which matches pre-
r82185 code.
* dom/Document.cpp:
(WebCore::Document::setInPageCache):
* page/FrameView.cpp:
(WebCore::FrameView::resetScrollbarsAndClearContentsSize):

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

9 years ago2011-04-21 Vitaly Repeshko <vitalyr@chromium.org>
vitalyr@chromium.org [Fri, 22 Apr 2011 22:01:02 +0000 (22:01 +0000)]
2011-04-21  Vitaly Repeshko  <vitalyr@chromium.org>

        Reviewed by Adam Barth.

        Provide default constructors for HashMap iterators.
        https://bugs.webkit.org/show_bug.cgi?id=59151

        These will be used to implement an iterator over EventTarget's
        listeners.

        * wtf/HashTable.h:
        (WTF::HashTableConstIteratorAdapter::HashTableConstIteratorAdapter):
        (WTF::HashTableIteratorAdapter::HashTableIteratorAdapter):

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

9 years ago[Qt] REGRESSION(r84296): platform/qt/fast/history/back-to-unreachable-url-then-forwar...
ossy@webkit.org [Fri, 22 Apr 2011 21:56:38 +0000 (21:56 +0000)]
[Qt] REGRESSION(r84296): platform/qt/fast/history/back-to-unreachable-url-then-forward.html fails
https://bugs.webkit.org/show_bug.cgi?id=58977

r84604 fixed the bug, so we can unskip it.

* platform/qt/Skipped: Unskip platform/qt/fast/history/back-to-unreachable-url-then-forward.html.

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

9 years ago2011-04-22 Roland Steiner <rolandsteiner@chromium.org>
rolandsteiner@chromium.org [Fri, 22 Apr 2011 21:37:55 +0000 (21:37 +0000)]
2011-04-22  Roland Steiner  <rolandsteiner@chromium.org>

        Unreviewed: Updated Chromium expectations after WK r84606

        * platform/chromium-mac/fast/multicol/span/clone-anonymous-block-non-inline-child-crash-expected.txt:
        * platform/chromium-mac/fast/url/host-expected.txt: Removed.
        * platform/chromium-mac/fast/url/path-expected.txt: Removed.
        * platform/chromium-win/fast/multicol/span/clone-anonymous-block-non-inline-child-crash-expected.txt:
        * platform/chromium-win/fast/url/host-expected.txt: Removed.
        * platform/chromium-win/fast/url/path-expected.txt: Removed.

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

9 years agoBug 59232 - DFG JIT - Add predecessor links to BasicBlocks
barraclough@apple.com [Fri, 22 Apr 2011 21:33:36 +0000 (21:33 +0000)]
Bug 59232 - DFG JIT - Add predecessor links to BasicBlocks

Reviewed by Geoff Garen.

These will be necessary for DCE support.
Also factor allocateVirtualRegisters out into its own method.

* dfg/DFGByteCodeParser.cpp:
(JSC::DFG::ByteCodeParser::setupPredecessors):
(JSC::DFG::ByteCodeParser::allocateVirtualRegisters):
(JSC::DFG::ByteCodeParser::parse):
* dfg/DFGGraph.h:
(JSC::DFG::Graph::blockForBytecodeOffset):
* dfg/DFGNode.h:
(JSC::DFG::Node::isTerminal):

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

9 years ago2011-04-22 Joseph Pecoraro <joepeck@webkit.org>
joepeck@webkit.org [Fri, 22 Apr 2011 21:32:40 +0000 (21:32 +0000)]
2011-04-22  Joseph Pecoraro  <joepeck@webkit.org>

        Reviewed by Kent Tamura.

        Don't rely on hasSpinButton to check if an input type can be stepped
        https://bugs.webkit.org/show_bug.cgi?id=59224

        Add isSteppable to know for certain if an input type can
        be stepped or not. Previously we were checking if the input
        has a spin control or is the range input type. These are UI
        details, but the step functionality does not require there
        to be a UI.

        No change in behavior, covered by existing tests.

        * html/BaseDateAndTimeInputType.cpp:
        (WebCore::BaseDateAndTimeInputType::isSteppable):
        * html/BaseDateAndTimeInputType.h:
        * html/HTMLInputElement.cpp:
        (WebCore::HTMLInputElement::isSteppable):
        (WebCore::HTMLInputElement::stepUpFromRenderer): remove the
        check for a spinner and range control and instead ASSERT
        that the type is steppable.
        * html/HTMLInputElement.h:
        * html/InputType.cpp:
        (WebCore::InputType::isSteppable):
        * html/InputType.h:
        * html/NumberInputType.cpp:
        (WebCore::NumberInputType::isSteppable):
        * html/NumberInputType.h:
        * html/RangeInputType.cpp:
        (WebCore::RangeInputType::isSteppable):
        * html/RangeInputType.h:

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

9 years agoPaint the bounding rect of the dirty region instead of individual rectangles when...
mitz@apple.com [Fri, 22 Apr 2011 21:24:46 +0000 (21:24 +0000)]
Paint the bounding rect of the dirty region instead of individual rectangles when the region
covers at least 3/4 of its bounds.

Reviewed by Sam Weinig.

* WebProcess/WebPage/DrawingAreaImpl.cpp:
(WebKit::shouldPaintBoundsRect): Use floating point math so that the logic that was supposed to
achieve this actually works.

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

9 years ago2011-04-22 Adam Barth <abarth@webkit.org>
abarth@webkit.org [Fri, 22 Apr 2011 21:20:12 +0000 (21:20 +0000)]
2011-04-22  Adam Barth  <abarth@webkit.org>

        Reviewed by Eric Seidel.

        CSP frame-src is missing
        https://bugs.webkit.org/show_bug.cgi?id=58643

        Update expected result to show that this test is passing now.

        * http/tests/security/contentSecurityPolicy/frame-src-blocked-expected.txt:
2011-04-22  Adam Barth  <abarth@webkit.org>

        Reviewed by Eric Seidel.

        CSP frame-src is missing
        https://bugs.webkit.org/show_bug.cgi?id=58643

        In this patch, I've audited all the callers to
        SecurityOrigin::canDisplay to make sure they all the appropriate
        Content-Security-Policy method as well.  I'm not sure how to test all
        these cases, but making this changes fixed the frame-src test.

        * loader/SubframeLoader.cpp:
        (WebCore::SubframeLoader::loadMediaPlayerProxyPlugin):
        (WebCore::SubframeLoader::createJavaAppletWidget):
        (WebCore::SubframeLoader::loadSubframe):
        (WebCore::SubframeLoader::loadPlugin):
        * loader/SubresourceLoader.cpp:
        (WebCore::SubresourceLoader::create):
        * loader/cache/CachedResourceLoader.cpp:
        (WebCore::CachedResourceLoader::canRequest):
        (WebCore::CachedResourceLoader::requestResource):
            - While I was understanding this code, I fixed the FIXME here.
        * loader/cache/CachedResourceLoader.h:

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

9 years ago2011-04-22 Adrienne Walker <enne@google.com>
enne@google.com [Fri, 22 Apr 2011 21:17:45 +0000 (21:17 +0000)]
2011-04-22  Adrienne Walker  <enne@google.com>

        Reviewed by Simon Fraser.

        Clear shared graphics context when destroying CanvasRenderingContext2D.
        https://bugs.webkit.org/show_bug.cgi?id=59212

        * html/canvas/CanvasRenderingContext2D.cpp:
        (WebCore::CanvasRenderingContext2D::~CanvasRenderingContext2D):

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

9 years ago2011-04-22 Oliver Hunt <oliver@apple.com>
oliver@apple.com [Fri, 22 Apr 2011 21:17:20 +0000 (21:17 +0000)]
2011-04-22  Oliver Hunt  <oliver@apple.com>

        Reviewed by Geoffrey Garen.

        Object.create creates uncachable objects
        https://bugs.webkit.org/show_bug.cgi?id=59164

        Use the prototype object's inheritorID, as we
        should always have done

        * runtime/JSGlobalObject.cpp:
        (JSC::JSGlobalObject::reset):
        (JSC::JSGlobalObject::visitChildren):
        * runtime/JSGlobalObject.h:
        (JSC::JSGlobalObject::nullPrototypeObjectStructure):
        * runtime/ObjectConstructor.cpp:
        (JSC::objectConstructorCreate):

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

9 years ago2011-04-22 Levi Weintraub <leviw@chromium.org>
leviw@chromium.org [Fri, 22 Apr 2011 21:05:15 +0000 (21:05 +0000)]
2011-04-22  Levi Weintraub  <leviw@chromium.org>

        Reviewed by Ryosuke Niwa.

        End/Home keys do not work in a contentEditable element
        https://bugs.webkit.org/show_bug.cgi?id=50564

        Fixing modifying selection by lineboundary (home/end) for editable contexts that are
        inline and share a line with non-editable content.

        * editing/selection/modify-by-lineboundary-in-inline-editable-contexts-expected.txt: Added.
        * editing/selection/modify-by-lineboundary-in-inline-editable-contexts.html: Added.
        * editing/selection/script-tests/modify-by-lineboundary-in-inline-editable-contexts.js: Added.
        (testModifyByLine):
2011-04-22  Levi Weintraub  <leviw@chromium.org>

        Reviewed by Ryosuke Niwa.

        End/Home keys do not work in a contentEditable element
        https://bugs.webkit.org/show_bug.cgi?id=50564

        Changing logical[Start/End]OfLine to return a valid VisiblePosition for for editable contexts that are
        inline and share a line with non-editable content.

        Test: editing/selection/modify-by-lineboundary-in-inline-editable-contexts.html

        * editing/visible_units.cpp:
        (WebCore::logicalStartOfLine):
        (WebCore::logicalEndOfLine):

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

9 years ago2011-04-22 Dimitri Glazkov <dglazkov@chromium.org>
dglazkov@chromium.org [Fri, 22 Apr 2011 20:54:47 +0000 (20:54 +0000)]
2011-04-22  Dimitri Glazkov  <dglazkov@chromium.org>

        [Gtk] Update expectations after r84511.

        * platform/gtk/fast/html/details-add-summary-1-and-click-expected.txt:
        * platform/gtk/fast/html/details-add-summary-1-expected.txt:
        * platform/gtk/fast/html/details-add-summary-10-and-click-expected.txt:
        * platform/gtk/fast/html/details-add-summary-10-expected.txt:
        * platform/gtk/fast/html/details-add-summary-2-and-click-expected.txt:
        * platform/gtk/fast/html/details-add-summary-2-expected.txt:
        * platform/gtk/fast/html/details-add-summary-3-and-click-expected.txt:
        * platform/gtk/fast/html/details-add-summary-3-expected.txt:
        * platform/gtk/fast/html/details-add-summary-4-and-click-expected.txt:
        * platform/gtk/fast/html/details-add-summary-4-expected.txt:
        * platform/gtk/fast/html/details-add-summary-5-and-click-expected.txt:
        * platform/gtk/fast/html/details-add-summary-5-expected.txt:
        * platform/gtk/fast/html/details-add-summary-6-and-click-expected.txt:
        * platform/gtk/fast/html/details-add-summary-6-expected.txt:
        * platform/gtk/fast/html/details-add-summary-7-and-click-expected.txt:
        * platform/gtk/fast/html/details-add-summary-7-expected.txt:
        * platform/gtk/fast/html/details-add-summary-8-and-click-expected.txt:
        * platform/gtk/fast/html/details-add-summary-8-expected.txt:
        * platform/gtk/fast/html/details-add-summary-9-and-click-expected.txt:
        * platform/gtk/fast/html/details-add-summary-9-expected.txt:
        * platform/gtk/fast/html/details-no-summary1-expected.txt:
        * platform/gtk/fast/html/details-no-summary2-expected.txt:
        * platform/gtk/fast/html/details-no-summary3-expected.txt:
        * platform/gtk/fast/html/details-no-summary4-expected.txt:
        * platform/gtk/fast/html/details-open-javascript-expected.txt:
        * platform/gtk/fast/html/details-open1-expected.txt:
        * platform/gtk/fast/html/details-open2-expected.txt:
        * platform/gtk/fast/html/details-open3-expected.txt:
        * platform/gtk/fast/html/details-open4-expected.txt:
        * platform/gtk/fast/html/details-open5-expected.txt:
        * platform/gtk/fast/html/details-open6-expected.txt:
        * platform/gtk/fast/html/details-position-expected.txt:
        * platform/gtk/fast/html/details-remove-summary-1-and-click-expected.txt:
        * platform/gtk/fast/html/details-remove-summary-1-expected.txt:
        * platform/gtk/fast/html/details-remove-summary-2-and-click-expected.txt:
        * platform/gtk/fast/html/details-remove-summary-2-expected.txt:
        * platform/gtk/fast/html/details-remove-summary-3-and-click-expected.txt:
        * platform/gtk/fast/html/details-remove-summary-3-expected.txt:
        * platform/gtk/fast/html/details-remove-summary-4-and-click-expected.txt:
        * platform/gtk/fast/html/details-remove-summary-4-expected.txt:
        * platform/gtk/fast/html/details-remove-summary-5-and-click-expected.txt:
        * platform/gtk/fast/html/details-remove-summary-5-expected.txt:
        * platform/gtk/fast/html/details-remove-summary-6-and-click-expected.txt:
        * platform/gtk/fast/html/details-remove-summary-6-expected.txt:
        * platform/gtk/fast/html/details-writing-mode-expected.txt:
        * platform/gtk/media/video-controls-rendering-expected.txt:

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

9 years ago2011-04-22 Eric Seidel <eric@webkit.org>
eric@webkit.org [Fri, 22 Apr 2011 20:44:46 +0000 (20:44 +0000)]
2011-04-22  Eric Seidel  <eric@webkit.org>

        Reviewed by Dimitri Glazkov.

        webkit-patch rebaseline is broken
        https://bugs.webkit.org/show_bug.cgi?id=59207

        My recent changes to how LayoutTestResults.results_from_string
        uncovered a bug in our use of urllib2.
        We now are treating the return value from _fetch_results_html()
        (which returns urllib2.openurl()) as a string.  That's incorrect,
        the return value is a file-like object (which auto-converts to a
        string in most cases).

        I've updated our urllib2-using code to correctly call .read() on the
        resulting object before treating it like a string.
        Unfortunately there is no easy way to test this mis-understanding
        of the openurl() semantics.

        * Scripts/webkitpy/common/net/buildbot/buildbot.py:

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