WebKit-https.git
9 years ago[Qt] Add more tests to cover the behavior of loadFinished() signal
caio.oliveira@openbossa.org [Mon, 25 Jul 2011 15:51:16 +0000 (15:51 +0000)]
[Qt] Add more tests to cover the behavior of loadFinished() signal
https://bugs.webkit.org/show_bug.cgi?id=63490

Reviewed by Benjamin Poulain.

* tests/qwebframe/tst_qwebframe.cpp:
(FakeReply::FakeReply):
(FakeNetworkManager::createRequest): Add a fake reply that gives 404 error code.

(tst_QWebFrame::loadFinishedAfterNotFoundError): Verify that we get loadFinished(false)
after a 404 error without contents.

* tests/qwebpage/tst_qwebpage.cpp:
(tst_QWebPage::errorPageExtensionLoadFinished): Verify if the argument of loadFinished()
is true when we use error page extension to produce our own error pages.

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

9 years agoWeb Inspector: use dedicated type for object id in the protocol.
pfeldman@chromium.org [Mon, 25 Jul 2011 15:10:43 +0000 (15:10 +0000)]
Web Inspector: use dedicated type for object id in the protocol.
https://bugs.webkit.org/show_bug.cgi?id=65110

Reviewed by Yury Semikhatsky.

Source/WebCore:

* inspector/InjectedScript.cpp:
(WebCore::InjectedScript::callFunctionOn):
* inspector/InjectedScript.h:
* inspector/InjectedScriptSource.js:
(.):
* inspector/Inspector.json:
* inspector/InspectorRuntimeAgent.cpp:
(WebCore::InspectorRuntimeAgent::callFunctionOn):

LayoutTests:

* inspector/runtime/runtime-callFunctionOn-expected.txt:
* inspector/runtime/runtime-callFunctionOn.html:

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

9 years ago[Qt][WK2] Add multi-point touch mocking to MiniBrowser
vestbo@webkit.org [Mon, 25 Jul 2011 14:48:10 +0000 (14:48 +0000)]
[Qt][WK2] Add multi-point touch mocking to MiniBrowser

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

Reviewed by Benjamin Poulain.

Each mouse button generate a touch point. The touch point stay
virtually on screen if the mouse release happened while the Ctrl
modifier was pressed.

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

9 years ago[Chromium] Web Inspector: live edit error should be revealed in Console
yurys@chromium.org [Mon, 25 Jul 2011 14:42:45 +0000 (14:42 +0000)]
[Chromium] Web Inspector: live edit error should be revealed in Console
https://bugs.webkit.org/show_bug.cgi?id=65109

Reviewed by Pavel Feldman.

* inspector/front-end/SourceFrame.js:
(WebInspector.SourceFrame.prototype.commitEditing.didEditContent):
(WebInspector.SourceFrame.prototype.commitEditing):

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

9 years agoWeb Inspector: refactor remote object structure to contain value for primitive values.
pfeldman@chromium.org [Mon, 25 Jul 2011 14:24:55 +0000 (14:24 +0000)]
Web Inspector: refactor remote object structure to contain value for primitive values.
https://bugs.webkit.org/show_bug.cgi?id=65103

Reviewed by Yury Semikhatsky.

Source/WebCore:

* inspector/InjectedScriptSource.js:
* inspector/Inspector.json:
* inspector/front-end/ConsoleView.js:
(WebInspector.ConsoleView.prototype._format):
(WebInspector.ConsoleView.prototype._formatAsArrayEntry):
(WebInspector.ConsoleMessage.prototype._format):
* inspector/front-end/ElementsTreeOutline.js:
(WebInspector.ElementsTreeElement.prototype._createTooltipForNode.setTooltip):
* inspector/front-end/ObjectPropertiesSection.js:
(WebInspector.ObjectPropertyTreeElement.prototype.update):
* inspector/front-end/PropertiesSidebarPane.js:
(WebInspector.PropertiesSidebarPane.prototype.update.nodePrototypesReady):
* inspector/front-end/RemoteObject.js:
(WebInspector.RemoteObject):
(WebInspector.RemoteObject.fromPrimitiveValue):
(WebInspector.RemoteObject.fromPayload):
(WebInspector.RemoteObject.prototype.get subtype):
(WebInspector.RemoteObject.prototype.callFunction):
(WebInspector.LocalJSONObject.prototype.get type):
(WebInspector.LocalJSONObject.prototype.get subtype):
* inspector/front-end/SourceFrame.js:
(WebInspector.SourceFrame.prototype._showPopup.showObjectPopup):
(WebInspector.SourceFrame.prototype._showPopup):
* inspector/front-end/inspector.js:
(WebInspector.log.logMessage):
(WebInspector.log):
(WebInspector.inspect):

LayoutTests:

* inspector/protocol/console-agent-expected.txt:
* inspector/protocol/runtime-agent-expected.txt:
* inspector/runtime/runtime-callFunctionOn.html:

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

9 years ago[Qt][WK2] Use NRWT for Qt-WK2
kbalazs@webkit.org [Mon, 25 Jul 2011 14:01:02 +0000 (14:01 +0000)]
[Qt][WK2] Use NRWT for Qt-WK2
https://bugs.webkit.org/show_bug.cgi?id=65097

Reviewed by Andreas Kling.

* Scripts/run-webkit-tests:
(useNewRunWebKitTests):

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

9 years agoWeb Inspector: [Chromium] Fix mixing of retaining path in heap profiler.
mnaganov@chromium.org [Mon, 25 Jul 2011 12:52:37 +0000 (12:52 +0000)]
Web Inspector: [Chromium] Fix mixing of retaining path in heap profiler.
https://bugs.webkit.org/show_bug.cgi?id=65028

Reviewed by Pavel Feldman.

* inspector/front-end/DetailedHeapshotView.js:
(WebInspector.HeapSnapshotPathFinderState): Added
(WebInspector.HeapSnapshotRetainingPathsList): Extracted State-specific code

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

9 years ago[Qt] Lot of RenderTree mismatches in fast/multicol
ossy@webkit.org [Mon, 25 Jul 2011 12:47:21 +0000 (12:47 +0000)]
[Qt] Lot of RenderTree mismatches in fast/multicol
https://bugs.webkit.org/show_bug.cgi?id=65077

Unreviewed gardening. Add Qt specific expected results after r91474.

* platform/qt/Skipped:
* platform/qt/fast/multicol/client-rects-expected.txt:
* platform/qt/fast/multicol/float-avoidance-expected.png: Added.
* platform/qt/fast/multicol/float-avoidance-expected.txt:
* platform/qt/fast/multicol/float-multicol-expected.png: Added.
* platform/qt/fast/multicol/float-multicol-expected.txt:
* platform/qt/fast/multicol/scrolling-overflow-expected.png:
* platform/qt/fast/multicol/scrolling-overflow-expected.txt:
* platform/qt/fast/multicol/span/anonymous-before-child-parent-crash-expected.png:
* platform/qt/fast/multicol/span/anonymous-before-child-parent-crash-expected.txt:
* platform/qt/fast/multicol/span/anonymous-split-block-crash-expected.png:
* platform/qt/fast/multicol/span/anonymous-split-block-crash-expected.txt:
* platform/qt/fast/multicol/span/anonymous-style-inheritance-expected.png:
* platform/qt/fast/multicol/span/anonymous-style-inheritance-expected.txt:
* platform/qt/fast/multicol/span/clone-anonymous-block-non-inline-child-crash-expected.png:
* platform/qt/fast/multicol/span/clone-anonymous-block-non-inline-child-crash-expected.txt:
* platform/qt/fast/multicol/span/span-as-immediate-child-complex-splitting-expected.png:
* platform/qt/fast/multicol/span/span-as-immediate-child-complex-splitting-expected.txt:
* platform/qt/fast/multicol/span/span-as-immediate-child-generated-content-expected.png:
* platform/qt/fast/multicol/span/span-as-immediate-child-generated-content-expected.txt:
* platform/qt/fast/multicol/span/span-as-immediate-child-property-removal-expected.png:
* platform/qt/fast/multicol/span/span-as-immediate-child-property-removal-expected.txt:
* platform/qt/fast/multicol/span/span-as-immediate-columns-child-dynamic-expected.png:
* platform/qt/fast/multicol/span/span-as-immediate-columns-child-dynamic-expected.txt:
* platform/qt/fast/multicol/span/span-as-immediate-columns-child-expected.png:
* platform/qt/fast/multicol/span/span-as-immediate-columns-child-expected.txt:
* platform/qt/fast/multicol/span/span-as-immediate-columns-child-removal-expected.png:
* platform/qt/fast/multicol/span/span-as-immediate-columns-child-removal-expected.txt:
* platform/qt/fast/multicol/span/span-as-nested-columns-child-dynamic-expected.png:
* platform/qt/fast/multicol/span/span-as-nested-columns-child-dynamic-expected.txt:
* platform/qt/fast/multicol/span/span-as-nested-columns-child-expected.png:
* platform/qt/fast/multicol/span/span-as-nested-columns-child-expected.txt:
* platform/qt/fast/multicol/span/span-as-nested-inline-block-child-expected.png:
* platform/qt/fast/multicol/span/span-as-nested-inline-block-child-expected.txt:
* platform/qt/fast/multicol/span/span-margin-collapsing-expected.png:
* platform/qt/fast/multicol/span/span-margin-collapsing-expected.txt:
* platform/qt/fast/multicol/vertical-lr/float-avoidance-expected.png:
* platform/qt/fast/multicol/vertical-lr/float-avoidance-expected.txt:
* platform/qt/fast/multicol/vertical-lr/float-multicol-expected.png:
* platform/qt/fast/multicol/vertical-lr/float-multicol-expected.txt:
* platform/qt/fast/multicol/vertical-rl/float-avoidance-expected.png:
* platform/qt/fast/multicol/vertical-rl/float-avoidance-expected.txt:
* platform/qt/fast/multicol/vertical-rl/float-multicol-expected.png:
* platform/qt/fast/multicol/vertical-rl/float-multicol-expected.txt:

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

9 years agoWeb Inspector: worker inspector should show Scripts panel by default
yurys@chromium.org [Mon, 25 Jul 2011 12:17:50 +0000 (12:17 +0000)]
Web Inspector: worker inspector should show Scripts panel by default
https://bugs.webkit.org/show_bug.cgi?id=65099

Reviewed by Pavel Feldman.

* inspector/front-end/inspector.js:
(WebInspector._defaultPanelName):
(WebInspector.showPanel):

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

9 years ago[EFL] Implement EFL-specific current time and monotonicallyIncreasingTime.
ryuan.choi@samsung.com [Mon, 25 Jul 2011 07:18:49 +0000 (07:18 +0000)]
[EFL] Implement EFL-specific current time and monotonicallyIncreasingTime.
https://bugs.webkit.org/show_bug.cgi?id=64354

Use ecore_time_unix_get which returns unix time as double type for currentTime
and ecore_time_get which uses monotonic clock for monotonicallyIncreasingTime.

Reviewed by Kent Tamura.

* wtf/CurrentTime.cpp:
(WTF::currentTime):
(WTF::monotonicallyIncreasingTime):

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

9 years ago[EFL] Move macro checking inside ewk_view_context_menu_forward_event
commit-queue@webkit.org [Mon, 25 Jul 2011 07:10:45 +0000 (07:10 +0000)]
[EFL] Move macro checking inside ewk_view_context_menu_forward_event
https://bugs.webkit.org/show_bug.cgi?id=64682

When CONTEXT_MENUS macro is disabled method ewk_view_context_menu_forward_event just
returns EINA_FALSE and it avoid undefined reference during building.

Patch by Grzegorz Czajkowski <g.czajkowski@samsung.com> on 2011-07-25
Reviewed by Kent Tamura.

* ewk/ewk_view.cpp:
(ewk_view_context_menu_forward_event):

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

9 years ago[EFL] Method ewk_context_menu_destroy returns EINA_FALSE if CONTEXT_MENUS macro is...
commit-queue@webkit.org [Mon, 25 Jul 2011 07:09:36 +0000 (07:09 +0000)]
[EFL] Method ewk_context_menu_destroy returns EINA_FALSE if CONTEXT_MENUS macro is disabled
https://bugs.webkit.org/show_bug.cgi?id=64683

Fix returned value and omit NULL checking if CONTEXT_MENUS macro is disabled
in ewk_context_menu_destroy.

Patch by Grzegorz Czajkowski <g.czajkowski@samsung.com> on 2011-07-25
Reviewed by Kent Tamura.

* ewk/ewk_contextmenu.cpp:
(ewk_context_menu_destroy):

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

9 years agoSmall cleanup of m_fontDirty tracking in CSSStyleSelector
macpherson@chromium.org [Mon, 25 Jul 2011 05:10:33 +0000 (05:10 +0000)]
Small cleanup of m_fontDirty tracking in CSSStyleSelector
https://bugs.webkit.org/show_bug.cgi?id=65090

Reviewed by Darin Adler.

1) Use existing setFontDescription helper where appropriate.
2) Move always used m_fontDirty check into updateFont()

No new tests / cleanup only.

* css/CSSStyleSelector.cpp:
(WebCore::CSSStyleSelector::styleForElement):
(WebCore::CSSStyleSelector::styleForKeyframe):
(WebCore::CSSStyleSelector::pseudoStyleForElement):
(WebCore::CSSStyleSelector::styleForPage):
(WebCore::CSSStyleSelector::updateFontIfDirty):
(WebCore::CSSStyleSelector::applyProperty):
* css/CSSStyleSelector.h:

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

9 years ago[Chromium] Leftover of r91633 (SVG test move)
tkent@chromium.org [Mon, 25 Jul 2011 04:42:35 +0000 (04:42 +0000)]
[Chromium] Leftover of r91633 (SVG test move)

* platform/chromium-linux/fast/borders/svg-as-border-image-expected.png: Removed.
* platform/chromium-linux/svg/as-border-image/svg-as-border-image-expected.png: Copied from LayoutTests/platform/chromium-linux/fast/borders/svg-as-border-image-expected.png.
* platform/chromium-win/fast/borders/svg-as-border-image-expected.png: Removed.
* platform/chromium-win/fast/borders/svg-as-border-image-expected.txt: Removed.
* platform/chromium-win/svg/as-border-image/svg-as-border-image-expected.png: Copied from LayoutTests/platform/chromium-win/fast/borders/svg-as-border-image-expected.png.
* platform/chromium-win/svg/as-border-image/svg-as-border-image-expected.txt: Copied from LayoutTests/platform/chromium-win/fast/borders/svg-as-border-image-expected.txt.

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

9 years ago[Chromium] Update expectations for r91637.
tkent@chromium.org [Mon, 25 Jul 2011 04:38:46 +0000 (04:38 +0000)]
[Chromium] Update expectations for r91637.

* platform/chromium-linux/svg/custom/text-linking-expected.png:
* platform/chromium-linux/svg/custom/tref-own-content-removal-expected.png: Added.
* platform/chromium-linux/svg/dynamic-updates/SVGTRefElement-dom-href-attr-expected.png:
* platform/chromium-mac-leopard/svg/custom/text-linking-expected.png: Added.
* platform/chromium-mac-leopard/svg/dynamic-updates/SVGTRefElement-dom-href-attr-expected.png: Added.
* platform/chromium-mac/svg/custom/text-linking-expected.png: Added.
* platform/chromium-win/svg/custom/text-linking-expected.png:
* platform/chromium-win/svg/custom/text-linking-expected.txt:
* platform/chromium-win/svg/custom/tref-own-content-removal-expected.png: Added.
* platform/chromium-win/svg/custom/tref-own-content-removal-expected.txt: Added.
* platform/chromium-win/svg/dynamic-updates/SVGTRefElement-dom-href-attr-expected.png:

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

9 years agoValidation message bubble position is incorrect if the containing block has paddings.
tkent@chromium.org [Mon, 25 Jul 2011 03:36:52 +0000 (03:36 +0000)]
Validation message bubble position is incorrect if the containing block has paddings.
https://bugs.webkit.org/show_bug.cgi?id=65091

Reviewed by Hajime Morita.

Source/WebCore:

* html/ValidationMessage.cpp:
(WebCore::adjustBubblePosition):
We don't need to subtract paddings because the origin of
position:aboslute is inside borders and outside of the padding.

LayoutTests:

* fast/forms/validation-message-in-relative-body.html: Update the test to cover a padding case.

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

9 years ago2011-07-24 Rob Buis <rbuis@rim.com>
rwlbuis@webkit.org [Mon, 25 Jul 2011 02:16:57 +0000 (02:16 +0000)]
2011-07-24  Rob Buis  <rbuis@rim.com>

        Crash in SVGUseElement::updateContainerOffsets on <use> with no parent
        https://bugs.webkit.org/show_bug.cgi?id=63646

        Reviewed by Darin Adler.

        Prevent using invalid targetElementInstance->shadowTreeElement after shadow render tree recreation. This situation can
        only occur when there was a valid shadowTreeElement before setting xlink:href to empty/invalid.

        Test: svg/custom/use-shadow-root-parent-removal.svg

        * svg/SVGUseElement.cpp:
        (WebCore::SVGUseElement::svgAttributeChanged):

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

9 years agoFix AtomicString vs. String usage in JSC binding
paroga@webkit.org [Mon, 25 Jul 2011 01:27:05 +0000 (01:27 +0000)]
Fix AtomicString vs. String usage in JSC binding
https://bugs.webkit.org/show_bug.cgi?id=65085

Reviewed by Darin Adler.

Use ustringToAtomicString instead of ustringToString where appropriate.

* bindings/js/JSHTMLAllCollectionCustom.cpp:
* bindings/js/JSHTMLCollectionCustom.cpp:

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

9 years agoImplement CSSPropertyOutlineOffset in CSSStyleApplyProperty.
macpherson@chromium.org [Mon, 25 Jul 2011 00:38:25 +0000 (00:38 +0000)]
Implement CSSPropertyOutlineOffset in CSSStyleApplyProperty.
https://bugs.webkit.org/show_bug.cgi?id=64773

Reviewed by Dimitri Glazkov.

No new tests / refactoring only.

* css/CSSStyleApplyProperty.cpp:
(WebCore::CSSStyleApplyProperty::CSSStyleApplyProperty):
* css/CSSStyleSelector.cpp:
(WebCore::CSSStyleSelector::applyProperty):

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

9 years agoYet another unreviewed Qt fixery for the weekend.
kbalazs@webkit.org [Sun, 24 Jul 2011 20:54:23 +0000 (20:54 +0000)]
Yet another unreviewed Qt fixery for the weekend.

Don't use test_expectations until all of the Qt platforms switched to NRWT.
* platform/qt/Skipped:
* platform/qt/test_expectations.txt:

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

9 years agoUnreviewed, rolling out r91635.
commit-queue@webkit.org [Sun, 24 Jul 2011 19:49:29 +0000 (19:49 +0000)]
Unreviewed, rolling out r91635.
http://trac.webkit.org/changeset/91635
https://bugs.webkit.org/show_bug.cgi?id=65083

It broke the minimal build (Requested by Ossy___OFFLINE on
#webkit).

Patch by Sheriff Bot <webkit.review.bot@gmail.com> on 2011-07-24

* QtTestBrowser/launcherwindow.cpp:
(LauncherWindow::initializeView):
(LauncherWindow::createChrome):
* QtTestBrowser/launcherwindow.h:
(WindowOptions::WindowOptions):
* QtTestBrowser/main.cpp:
(LauncherApplication::handleUserOptions):

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

9 years agoRename garden-o-matic "alert" to "infobar" and increase the width to 100%.
abarth@webkit.org [Sun, 24 Jul 2011 18:48:54 +0000 (18:48 +0000)]
Rename garden-o-matic "alert" to "infobar" and increase the width to 100%.

* BuildSlaveSupport/build.webkit.org-config/public_html/TestFailures/config.js:
* BuildSlaveSupport/build.webkit.org-config/public_html/TestFailures/garden-o-matic.html:
* BuildSlaveSupport/build.webkit.org-config/public_html/TestFailures/main.css:
* BuildSlaveSupport/build.webkit.org-config/public_html/TestFailures/main.js:
* BuildSlaveSupport/build.webkit.org-config/public_html/TestFailures/ui.js:
* BuildSlaveSupport/build.webkit.org-config/public_html/TestFailures/ui_unittests.js:

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

9 years agoUnreviewed gardening for Qt.
kbalazs@webkit.org [Sun, 24 Jul 2011 16:03:33 +0000 (16:03 +0000)]
Unreviewed gardening for Qt.

* platform/qt/svg/custom/tref-own-content-removal-expected.txt: Added.

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

9 years ago[Qt] inspector/debugger/pause-in-internal-script.html fails
kbalazs@webkit.org [Sun, 24 Jul 2011 16:01:14 +0000 (16:01 +0000)]
[Qt] inspector/debugger/pause-in-internal-script.html fails
https://bugs.webkit.org/show_bug.cgi?id=65078

Unreviewed gardening for Qt.

* platform/qt/test_expectations.txt: Mark the test as expected TEXT failure.

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

9 years ago[Qt] Lot of RenderTree mismatches in fast/multicol
kbalazs@webkit.org [Sun, 24 Jul 2011 15:23:19 +0000 (15:23 +0000)]
[Qt] Lot of RenderTree mismatches in fast/multicol
https://bugs.webkit.org/show_bug.cgi?id=65077

Unreviewed gardening for Qt.

* platform/qt/test_expectations.txt: Add expected TEXT failures.

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

9 years ago2011-07-24 Rob Buis <rbuis@rim.com>
rwlbuis@webkit.org [Sun, 24 Jul 2011 13:57:24 +0000 (13:57 +0000)]
2011-07-24  Rob Buis  <rbuis@rim.com>

        SVG <use> element is not repositioned when moved to x=0 y=0 through script
        https://bugs.webkit.org/show_bug.cgi?id=53767

        Reviewed by Nikolas Zimmermann.

        Only bail out on zero offset if it is not explicitly set.

        Test: svg/custom/use-move-to-offset.svg

        * rendering/svg/RenderSVGTransformableContainer.cpp:
        (WebCore::RenderSVGTransformableContainer::calculateLocalTransform):
        * rendering/svg/SVGShadowTreeElements.cpp:
        (WebCore::SVGShadowTreeContainerElement::SVGShadowTreeContainerElement):
        (WebCore::SVGShadowTreeContainerElement::setContainerOffset):
        * rendering/svg/SVGShadowTreeElements.h:
        (WebCore::SVGShadowTreeContainerElement::containerOffsetChanged):
        (WebCore::SVGShadowTreeContainerElement::setContainerOffsetChanged):

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

9 years agoRefactor HTML tokenizer code in preparation for a new XML tokenizer
jpfau@apple.com [Sun, 24 Jul 2011 10:07:26 +0000 (10:07 +0000)]
Refactor HTML tokenizer code in preparation for a new XML tokenizer
https://bugs.webkit.org/show_bug.cgi?id=65000

Reviewed by Adam Barth.

* GNUmakefile.list.am:
* WebCore.gypi:
* WebCore.pro:
* WebCore.vcproj/WebCore.vcproj:
* WebCore.xcodeproj/project.pbxproj:
* html/parser/HTMLDocumentParser.cpp:
(WebCore::HTMLNames::tokenizerStateForContextElement):
(WebCore::HTMLDocumentParser::pumpTokenizer):
* html/parser/HTMLTokenizer.cpp:
(WebCore::HTMLNames::isEndTagBufferingState):
(WebCore::HTMLTokenizer::HTMLTokenizer):
(WebCore::::shouldSkipNullCharacters):
(WebCore::HTMLTokenizer::reset):
(WebCore::HTMLTokenizer::flushEmitAndResumeIn):
(WebCore::HTMLTokenizer::nextToken):
(WebCore::HTMLTokenizer::updateStateFor):
* html/parser/HTMLTokenizer.h:
(WebCore::HTMLTokenizer::emitAndResumeIn):
(WebCore::HTMLTokenizer::emitAndReconsumeIn):
(WebCore::HTMLTokenizer::saveEndTagNameIfNeeded):
* html/parser/HTMLTreeBuilder.cpp:
(WebCore::HTMLTreeBuilder::processStartTagForInBody):
(WebCore::HTMLTreeBuilder::processEndTag):
(WebCore::HTMLTreeBuilder::processGenericRCDATAStartTag):
(WebCore::HTMLTreeBuilder::processGenericRawTextStartTag):
(WebCore::HTMLTreeBuilder::processScriptStartTag):
* html/parser/TextDocumentParser.cpp:
(WebCore::TextDocumentParser::TextDocumentParser):
* html/parser/TextViewSourceParser.cpp:
(WebCore::TextViewSourceParser::TextViewSourceParser):
* xml/parser/MarkupTokenBase.h:
(WebCore::MarkupTokenBase::type):
* xml/parser/MarkupTokenizerBase.h: Added.
(WebCore::MarkupTokenizerBase::~MarkupTokenizerBase):
(WebCore::MarkupTokenizerBase::lineNumber):
(WebCore::MarkupTokenizerBase::columnNumber):
(WebCore::MarkupTokenizerBase::state):
(WebCore::MarkupTokenizerBase::setState):
(WebCore::MarkupTokenizerBase::forceNullCharacterReplacement):
(WebCore::MarkupTokenizerBase::setForceNullCharacterReplacement):
(WebCore::MarkupTokenizerBase::InputStreamPreprocessor::InputStreamPreprocessor):
(WebCore::MarkupTokenizerBase::InputStreamPreprocessor::nextInputCharacter):
(WebCore::MarkupTokenizerBase::InputStreamPreprocessor::peek):
(WebCore::MarkupTokenizerBase::InputStreamPreprocessor::advance):
(WebCore::MarkupTokenizerBase::InputStreamPreprocessor::shouldTreatNullAsEndOfFileMarker):
(WebCore::MarkupTokenizerBase::MarkupTokenizerBase):
(WebCore::MarkupTokenizerBase::bufferCharacter):
(WebCore::MarkupTokenizerBase::emitAndResumeIn):
(WebCore::MarkupTokenizerBase::emitAndReconsumeIn):
(WebCore::MarkupTokenizerBase::emitEndOfFile):
(WebCore::MarkupTokenizerBase::reset):
(WebCore::MarkupTokenizerBase::haveBufferedCharacterToken):
* xml/parser/MarkupTokenizerInlineMethods.h: Added.
(WebCore::isTokenizerWhitespace):
(WebCore::advanceStringAndASSERTIgnoringCase):
(WebCore::advanceStringAndASSERT):

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

9 years agoTestConfiguration should be hashable and comparable for equality.
dglazkov@chromium.org [Sun, 24 Jul 2011 03:30:17 +0000 (03:30 +0000)]
TestConfiguration should be hashable and comparable for equality.
https://bugs.webkit.org/show_bug.cgi?id=65070

Reviewed by Adam Barth.

* Scripts/webkitpy/layout_tests/models/test_configuration.py: Added __hash__ and __eq__ methods.
* Scripts/webkitpy/layout_tests/models/test_configuration_unittest.py: Added unit tests.

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

9 years agoRemove WTF namespace from isMainThread() calls
paroga@webkit.org [Sat, 23 Jul 2011 23:42:06 +0000 (23:42 +0000)]
Remove WTF namespace from isMainThread() calls
https://bugs.webkit.org/show_bug.cgi?id=65068

Reviewed by Sam Weinig.

Because of the using WTF::isMainThread in the header there is no
reason to include the namespace name when calling this function.

* bindings/js/JSMainThreadExecState.h:
* bindings/v8/DOMDataStore.cpp:
* bindings/v8/V8Binding.cpp:
* bindings/v8/V8DOMMap.cpp:
* bindings/v8/V8DOMWrapper.h:
* page/DOMWindow.cpp:
* page/History.cpp:

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

9 years ago[Chromium] Update expectations for r91636.
tkent@chromium.org [Sat, 23 Jul 2011 22:44:44 +0000 (22:44 +0000)]
[Chromium] Update expectations for r91636.

* platform/chromium-linux/fast/speech/input-appearance-numberandspeech-expected.png:
* platform/chromium-linux/fast/speech/input-appearance-numberandspeech-expected.txt:
* platform/chromium-mac-leopard/fast/speech/input-appearance-numberandspeech-expected.png:
* platform/chromium-mac/fast/speech/input-appearance-numberandspeech-expected.png:
* platform/chromium-mac/fast/speech/input-appearance-numberandspeech-expected.txt:
* platform/chromium-win/fast/speech/input-appearance-numberandspeech-expected.png:
* platform/chromium-win/fast/speech/input-appearance-numberandspeech-expected.txt:
* platform/chromium/test_expectations.txt:

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

9 years agoExtract TestConfiguration from base and write a few unit tests to capture current...
dglazkov@chromium.org [Sat, 23 Jul 2011 21:16:30 +0000 (21:16 +0000)]
Extract TestConfiguration from base and write a few unit tests to capture current behavior.
https://bugs.webkit.org/show_bug.cgi?id=65066

Reviewed by Adam Barth.

* Scripts/webkitpy/layout_tests/models/test_configuration.py: Added.
* Scripts/webkitpy/layout_tests/models/test_configuration_unittest.py: Added.
* Scripts/webkitpy/layout_tests/port/base.py: Moved code to test_configuration.py

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

9 years agoSwitching off acceleration for small canvas broke gpu tests
alokp@chromium.org [Sat, 23 Jul 2011 18:44:55 +0000 (18:44 +0000)]
Switching off acceleration for small canvas broke gpu tests
https://bugs.webkit.org/show_bug.cgi?id=65053

Reviewed by Stephen White.

Source/WebCore:

No new tests. These are supposed to fix existing canvas tests on gpu.

* html/canvas/CanvasRenderingContext2D.cpp:
(WebCore::shouldAccelerateCanvas):
* page/Settings.cpp:
(WebCore::Settings::Settings):
(WebCore::Settings::setLegacyAccelerated2dCanvasEnabled):
(WebCore::Settings::setMinimumAccelerated2dCanvasSize):
* page/Settings.h:
(WebCore::Settings::minimumAccelerated2dCanvasSize):

Source/WebKit/chromium:

* public/WebSettings.h:
* src/WebSettingsImpl.cpp:
(WebKit::WebSettingsImpl::setMinimumAccelerated2dCanvasSize):
* src/WebSettingsImpl.h:

Tools:

* DumpRenderTree/chromium/WebPreferences.cpp:
(WebPreferences::reset):
(WebPreferences::applyTo):
* DumpRenderTree/chromium/WebPreferences.h:

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

9 years ago2011-07-23 Rob Buis <rbuis@rim.com>
rwlbuis@webkit.org [Sat, 23 Jul 2011 18:17:03 +0000 (18:17 +0000)]
2011-07-23  Rob Buis  <rbuis@rim.com>

        Freed SVGTRefElement used in SVGStyledElement::buildPendingResourcesIfNeeded
        https://bugs.webkit.org/show_bug.cgi?id=64758

        Reviewed by Nikolas Zimmermann.

        Fix the crash by storing referenced content inside a shadow tree. This way removing child nodes of
        the <tref> does not remove the referenced content.

        * dom/Text.cpp:
        (WebCore::Text::recalcStyle):
        * dom/Text.h:
        * svg/SVGTRefElement.cpp:
        (WebCore::SVGShadowText::create):
        (WebCore::SVGShadowText::SVGShadowText):
        (WebCore::SVGShadowText::createRenderer):
        (WebCore::SVGShadowText::recalcStyle):
        (WebCore::SVGTRefElement::updateReferencedText):
        (WebCore::SVGTRefElement::childShouldCreateRenderer):

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

9 years agoSource/WebCore: Display number field without using a thousand separator.
commit-queue@webkit.org [Sat, 23 Jul 2011 16:21:14 +0000 (16:21 +0000)]
Source/WebCore: Display number field without using a thousand separator.
https://bugs.webkit.org/show_bug.cgi?id=65064

Patch by Shinya Kawanaka <shinyak@google.com> on 2011-07-23
Reviewed by Kent Tamura.

Separated formatters for parsing and displaying.
Removed a test for thousand separator.

* manual-tests/input-number-localization.html:
Removed a test for thousand separator.
Made the test description more specific.
* platform/text/LocalizedNumberICU.cpp:
(WebCore::createFormatterForCurrentLocaleToDisplay):
Added to introduce a formatter for display.
(WebCore::numberFormatterForParsing):
Changed the name to be clear.
(WebCore::numberFormatterForDisplay): Added.
(WebCore::parseLocalizedNumber): Used numberFormatterForParsing.
(WebCore::formatLocalizedNumber): Used numberFormatterForDisplay.
* platform/text/mac/LocalizedNumberMac.mm:
(WebCore::createFormatterForCurrentLocaleForDisplay):
Added to introduce a formatter for display.
(WebCore::numberFormatterForParsing):
Changed the name to be clear.
(WebCore::numberFormatterForDisplay): Added.
(WebCore::parseLocalizedNumber): Used numberFormatterForParsing.
(WebCore::formatLocalizedNumber): Used numberFormatterForDisplay.

LayoutTests: Marked fast/speech/input-appearance-numberandspeech.html flaky on Mac and Windows.
https://bugs.webkit.org/show_bug.cgi?id=65064

Patch by Shinya Kawanaka <shinyak@google.com> on 2011-07-23
Reviewed by Kent Tamura.

* platform/chromium/test_expectations.txt:
  Mark fast/speech/input-appearance-numberandspeech.html flaky on Mac and Windows.

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

9 years ago[Qt] Add option to turn on disk caching in QtTestBrowser
commit-queue@webkit.org [Sat, 23 Jul 2011 15:39:47 +0000 (15:39 +0000)]
[Qt] Add option to turn on disk caching in QtTestBrowser
https://bugs.webkit.org/show_bug.cgi?id=65007

Patch by Keith Kyzivat <keith.kyzivat@nokia.com> on 2011-07-23
Reviewed by Noam Rosenthal.

Add menu item and command line option to turn on disk caching in
QtTestBrowser. Simple QNetworkDiskCache added to the page's
QNetworkAccssManager.

* QtTestBrowser/launcherwindow.cpp:
(LauncherWindow::initializeView):
(LauncherWindow::createChrome):
(LauncherWindow::setDiskCache):
* QtTestBrowser/launcherwindow.h:
(WindowOptions::WindowOptions):
* QtTestBrowser/main.cpp:
(LauncherApplication::handleUserOptions):

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

9 years ago[Chromium] Turn on new WebSocket protocol in worker shadow page
yutak@chromium.org [Sat, 23 Jul 2011 14:54:52 +0000 (14:54 +0000)]
[Chromium] Turn on new WebSocket protocol in worker shadow page
https://bugs.webkit.org/show_bug.cgi?id=64852

Reviewed by Dmitry Titov.

* src/WebWorkerBase.cpp:
(WebKit::WebWorkerBase::initializeLoader):
Initialize the value of WebCore::Settings::useHixie76WebSocketProtocol()
for a new shadow page. The default value of this flag is overridden through
WebPreferences (located in webkit/glue in Chromium source tree) but a shadow
page does not receive the preference values from it.

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

9 years ago2011-07-23 Nikolas Zimmermann <nzimmermann@rim.com>
zimmermann@webkit.org [Sat, 23 Jul 2011 11:18:22 +0000 (11:18 +0000)]
2011-07-23  Nikolas Zimmermann  <nzimmermann@rim.com>

        Move several SVG specific tests out of fast/(backgrounds|borders) into svg/(as-background-image|as-border-image) as
        we're only running pixel tests for the svg/ subdirectory on a daily base. Also it's easier to spot errors this way.
        Updated all Skipped/test_expectations.txt files as well.

        Rubber-stamped by Maciej Stachowiak.

        * fast/backgrounds/animated-svg-as-background.html: Removed.
        * fast/backgrounds/resources/animated-rect-fixed-size.svg: Removed.
        * fast/backgrounds/resources/balloon.svg: Removed.
        * fast/backgrounds/resources/eyes.svg: Removed.
        * fast/backgrounds/resources/hearts.svg: Removed.
        * fast/backgrounds/resources/map.svg: Removed.
        * fast/backgrounds/resources/mouse-repel.svg: Removed.
        * fast/backgrounds/svg-as-background-1.html: Removed.
        * fast/backgrounds/svg-as-background-2.html: Removed.
        * fast/backgrounds/svg-as-background-3.html: Removed.
        * fast/backgrounds/svg-as-background-4.html: Removed.
        * fast/backgrounds/svg-as-background-5.html: Removed.
        * fast/backgrounds/svg-as-background-6.html: Removed.
        * fast/borders/resources/large-tiles.png: Removed.
        * fast/borders/resources/tiles-fixed-size.svg: Removed.
        * fast/borders/resources/tiles-relative-size.svg: Removed.
        * fast/borders/resources/tiles.png: Removed.
        * fast/borders/svg-as-border-image-2.html: Removed.
        * fast/borders/svg-as-border-image.html: Removed.
        * platform/chromium-linux/fast/backgrounds/animated-svg-as-background-expected.png: Removed.
        * platform/chromium-linux/fast/backgrounds/svg-as-background-1-expected.png: Removed.
        * platform/chromium-linux/fast/backgrounds/svg-as-background-2-expected.png: Removed.
        * platform/chromium-linux/fast/backgrounds/svg-as-background-3-expected.png: Removed.
        * platform/chromium-linux/fast/backgrounds/svg-as-background-4-expected.png: Removed.
        * platform/chromium-linux/fast/backgrounds/svg-as-background-5-expected.png: Removed.
        * platform/chromium-linux/fast/borders/svg-as-border-image-2-expected.png: Removed.
        * platform/chromium-linux/svg/as-background-image: Added.
        * platform/chromium-linux/svg/as-background-image/animated-svg-as-background-expected.png: Copied from platform/chromium-linux/fast/backgrounds/animated-svg-as-background-expected.png.
        * platform/chromium-linux/svg/as-background-image/svg-as-background-1-expected.png: Copied from platform/chromium-linux/fast/backgrounds/svg-as-background-1-expected.png.
        * platform/chromium-linux/svg/as-background-image/svg-as-background-2-expected.png: Copied from platform/chromium-linux/fast/backgrounds/svg-as-background-2-expected.png.
        * platform/chromium-linux/svg/as-background-image/svg-as-background-3-expected.png: Copied from platform/chromium-linux/fast/backgrounds/svg-as-background-3-expected.png.
        * platform/chromium-linux/svg/as-background-image/svg-as-background-4-expected.png: Copied from platform/chromium-linux/fast/backgrounds/svg-as-background-4-expected.png.
        * platform/chromium-linux/svg/as-background-image/svg-as-background-5-expected.png: Copied from platform/chromium-linux/fast/backgrounds/svg-as-background-5-expected.png.
        * platform/chromium-linux/svg/as-background-image/svg-as-background-with-relative-size-expected.png: Copied from platform/chromium-linux/svg/as-image/svg-as-background-with-relative-size-expected.png.
        * platform/chromium-linux/svg/as-background-image/svg-background-partial-redraw-expected.png: Copied from platform/chromium-linux/svg/as-image/svg-background-partial-redraw-expected.png.
        * platform/chromium-linux/svg/as-border-image: Added.
        * platform/chromium-linux/svg/as-border-image/svg-as-border-image-2-expected.png: Copied from platform/chromium-linux/fast/borders/svg-as-border-image-2-expected.png.
        * platform/chromium-linux/svg/as-image/svg-as-background-with-relative-size-expected.png: Removed.
        * platform/chromium-linux/svg/as-image/svg-background-partial-redraw-expected.png: Removed.
        * platform/chromium-mac-leopard/fast/backgrounds/svg-as-background-1-expected.png: Removed.
        * platform/chromium-mac-leopard/fast/backgrounds/svg-as-background-3-expected.png: Removed.
        * platform/chromium-mac-leopard/fast/borders/svg-as-border-image-2-expected.png: Removed.
        * platform/chromium-mac-leopard/svg/as-background-image: Added.
        * platform/chromium-mac-leopard/svg/as-background-image/svg-as-background-1-expected.png: Copied from platform/chromium-mac-leopard/fast/backgrounds/svg-as-background-1-expected.png.
        * platform/chromium-mac-leopard/svg/as-background-image/svg-as-background-3-expected.png: Copied from platform/chromium-mac-leopard/fast/backgrounds/svg-as-background-3-expected.png.
        * platform/chromium-mac-leopard/svg/as-background-image/svg-as-background-with-relative-size-expected.png: Copied from platform/chromium-mac-leopard/svg/as-image/svg-as-background-with-relative-size-expected.png.
        * platform/chromium-mac-leopard/svg/as-background-image/svg-background-partial-redraw-expected.png: Copied from platform/chromium-mac-leopard/svg/as-image/svg-background-partial-redraw-expected.png.
        * platform/chromium-mac-leopard/svg/as-border-image: Added.
        * platform/chromium-mac-leopard/svg/as-border-image/svg-as-border-image-2-expected.png: Copied from platform/chromium-mac-leopard/fast/borders/svg-as-border-image-2-expected.png.
        * platform/chromium-mac-leopard/svg/as-image/svg-as-background-with-relative-size-expected.png: Removed.
        * platform/chromium-mac-leopard/svg/as-image/svg-background-partial-redraw-expected.png: Removed.
        * platform/chromium-mac/fast/backgrounds/animated-svg-as-background-expected.png: Removed.
        * platform/chromium-mac/fast/backgrounds/svg-as-background-1-expected.png: Removed.
        * platform/chromium-mac/fast/backgrounds/svg-as-background-3-expected.png: Removed.
        * platform/chromium-mac/svg/as-background-image: Added.
        * platform/chromium-mac/svg/as-background-image/animated-svg-as-background-expected.png: Copied from platform/chromium-mac/fast/backgrounds/animated-svg-as-background-expected.png.
        * platform/chromium-mac/svg/as-background-image/svg-as-background-1-expected.png: Copied from platform/chromium-mac/fast/backgrounds/svg-as-background-1-expected.png.
        * platform/chromium-mac/svg/as-background-image/svg-as-background-3-expected.png: Copied from platform/chromium-mac/fast/backgrounds/svg-as-background-3-expected.png.
        * platform/chromium-mac/svg/as-background-image/svg-background-partial-redraw-expected.png: Copied from platform/chromium-mac/svg/as-image/svg-background-partial-redraw-expected.png.
        * platform/chromium-mac/svg/as-image/svg-background-partial-redraw-expected.png: Removed.
        * platform/chromium-win/fast/backgrounds/animated-svg-as-background-expected.png: Removed.
        * platform/chromium-win/fast/backgrounds/animated-svg-as-background-expected.txt: Removed.
        * platform/chromium-win/fast/backgrounds/svg-as-background-1-expected.png: Removed.
        * platform/chromium-win/fast/backgrounds/svg-as-background-1-expected.txt: Removed.
        * platform/chromium-win/fast/backgrounds/svg-as-background-2-expected.png: Removed.
        * platform/chromium-win/fast/backgrounds/svg-as-background-2-expected.txt: Removed.
        * platform/chromium-win/fast/backgrounds/svg-as-background-3-expected.png: Removed.
        * platform/chromium-win/fast/backgrounds/svg-as-background-3-expected.txt: Removed.
        * platform/chromium-win/fast/backgrounds/svg-as-background-4-expected.png: Removed.
        * platform/chromium-win/fast/backgrounds/svg-as-background-4-expected.txt: Removed.
        * platform/chromium-win/fast/backgrounds/svg-as-background-5-expected.png: Removed.
        * platform/chromium-win/fast/backgrounds/svg-as-background-5-expected.txt: Removed.
        * platform/chromium-win/fast/backgrounds/svg-as-background-6-expected.png: Removed.
        * platform/chromium-win/fast/backgrounds/svg-as-background-6-expected.txt: Removed.
        * platform/chromium-win/fast/borders/svg-as-border-image-2-expected.png: Removed.
        * platform/chromium-win/fast/borders/svg-as-border-image-2-expected.txt: Removed.
        * platform/chromium-win/svg/as-background-image: Added.
        * platform/chromium-win/svg/as-background-image/animated-svg-as-background-expected.png: Copied from platform/chromium-win/fast/backgrounds/animated-svg-as-background-expected.png.
        * platform/chromium-win/svg/as-background-image/animated-svg-as-background-expected.txt: Copied from platform/chromium-win/fast/backgrounds/animated-svg-as-background-expected.txt.
        * platform/chromium-win/svg/as-background-image/svg-as-background-1-expected.png: Copied from platform/chromium-win/fast/backgrounds/svg-as-background-1-expected.png.
        * platform/chromium-win/svg/as-background-image/svg-as-background-1-expected.txt: Copied from platform/chromium-win/fast/backgrounds/svg-as-background-1-expected.txt.
        * platform/chromium-win/svg/as-background-image/svg-as-background-2-expected.png: Copied from platform/chromium-win/fast/backgrounds/svg-as-background-2-expected.png.
        * platform/chromium-win/svg/as-background-image/svg-as-background-2-expected.txt: Copied from platform/chromium-win/fast/backgrounds/svg-as-background-2-expected.txt.
        * platform/chromium-win/svg/as-background-image/svg-as-background-3-expected.png: Copied from platform/chromium-win/fast/backgrounds/svg-as-background-3-expected.png.
        * platform/chromium-win/svg/as-background-image/svg-as-background-3-expected.txt: Copied from platform/chromium-win/fast/backgrounds/svg-as-background-3-expected.txt.
        * platform/chromium-win/svg/as-background-image/svg-as-background-4-expected.png: Copied from platform/chromium-win/fast/backgrounds/svg-as-background-4-expected.png.
        * platform/chromium-win/svg/as-background-image/svg-as-background-4-expected.txt: Copied from platform/chromium-win/fast/backgrounds/svg-as-background-4-expected.txt.
        * platform/chromium-win/svg/as-background-image/svg-as-background-5-expected.png: Copied from platform/chromium-win/fast/backgrounds/svg-as-background-5-expected.png.
        * platform/chromium-win/svg/as-background-image/svg-as-background-5-expected.txt: Copied from platform/chromium-win/fast/backgrounds/svg-as-background-5-expected.txt.
        * platform/chromium-win/svg/as-background-image/svg-as-background-6-expected.png: Copied from platform/chromium-win/fast/backgrounds/svg-as-background-6-expected.png.
        * platform/chromium-win/svg/as-background-image/svg-as-background-6-expected.txt: Copied from platform/chromium-win/fast/backgrounds/svg-as-background-6-expected.txt.
        * platform/chromium-win/svg/as-background-image/svg-as-background-expected.txt: Copied from platform/chromium-win/svg/as-image/svg-as-background-expected.txt.
        * platform/chromium-win/svg/as-background-image/svg-as-background-with-relative-size-expected.png: Copied from platform/chromium-win/svg/as-image/svg-as-background-with-relative-size-expected.png.
        * platform/chromium-win/svg/as-background-image/svg-as-background-with-relative-size-expected.txt: Copied from platform/chromium-win/svg/as-image/svg-as-background-with-relative-size-expected.txt.
        * platform/chromium-win/svg/as-background-image/svg-as-background-with-viewBox-expected.txt: Copied from platform/chromium-win/svg/as-image/svg-as-background-with-viewBox-expected.txt.
        * platform/chromium-win/svg/as-background-image/svg-as-tiled-background-expected.txt: Copied from platform/chromium-win/svg/as-image/svg-as-tiled-background-expected.txt.
        * platform/chromium-win/svg/as-background-image/svg-background-partial-redraw-expected.png: Copied from platform/chromium-win/svg/as-image/svg-background-partial-redraw-expected.png.
        * platform/chromium-win/svg/as-background-image/svg-background-partial-redraw-expected.txt: Copied from platform/chromium-win/svg/as-image/svg-background-partial-redraw-expected.txt.
        * platform/chromium-win/svg/as-background-image/svg-width-100p-as-background-expected.txt: Copied from platform/chromium-win/svg/as-image/svg-width-100p-as-background-expected.txt.
        * platform/chromium-win/svg/as-border-image: Added.
        * platform/chromium-win/svg/as-border-image/svg-as-border-image-2-expected.png: Copied from platform/chromium-win/fast/borders/svg-as-border-image-2-expected.png.
        * platform/chromium-win/svg/as-border-image/svg-as-border-image-2-expected.txt: Copied from platform/chromium-win/fast/borders/svg-as-border-image-2-expected.txt.
        * platform/chromium-win/svg/as-image/svg-as-background-expected.txt: Removed.
        * platform/chromium-win/svg/as-image/svg-as-background-with-relative-size-expected.png: Removed.
        * platform/chromium-win/svg/as-image/svg-as-background-with-relative-size-expected.txt: Removed.
        * platform/chromium-win/svg/as-image/svg-as-background-with-viewBox-expected.txt: Removed.
        * platform/chromium-win/svg/as-image/svg-as-tiled-background-expected.txt: Removed.
        * platform/chromium-win/svg/as-image/svg-background-partial-redraw-expected.png: Removed.
        * platform/chromium-win/svg/as-image/svg-background-partial-redraw-expected.txt: Removed.
        * platform/chromium-win/svg/as-image/svg-width-100p-as-background-expected.txt: Removed.
        * platform/chromium/test_expectations.txt:
        * platform/gtk/fast/backgrounds/animated-svg-as-background-expected.txt: Removed.
        * platform/gtk/fast/backgrounds/svg-as-background-1-expected.txt: Removed.
        * platform/gtk/fast/backgrounds/svg-as-background-2-expected.txt: Removed.
        * platform/gtk/fast/backgrounds/svg-as-background-3-expected.txt: Removed.
        * platform/gtk/fast/backgrounds/svg-as-background-4-expected.txt: Removed.
        * platform/gtk/fast/backgrounds/svg-as-background-5-expected.txt: Removed.
        * platform/gtk/fast/backgrounds/svg-as-background-6-expected.txt: Removed.
        * platform/gtk/fast/borders/svg-as-border-image-2-expected.png: Removed.
        * platform/gtk/fast/borders/svg-as-border-image-2-expected.txt: Removed.
        * platform/gtk/svg/as-background-image: Added.
        * platform/gtk/svg/as-background-image/animated-svg-as-background-expected.txt: Copied from platform/gtk/fast/backgrounds/animated-svg-as-background-expected.txt.
        * platform/gtk/svg/as-background-image/svg-as-background-1-expected.txt: Copied from platform/gtk/fast/backgrounds/svg-as-background-1-expected.txt.
        * platform/gtk/svg/as-background-image/svg-as-background-2-expected.txt: Copied from platform/gtk/fast/backgrounds/svg-as-background-2-expected.txt.
        * platform/gtk/svg/as-background-image/svg-as-background-3-expected.txt: Copied from platform/gtk/fast/backgrounds/svg-as-background-3-expected.txt.
        * platform/gtk/svg/as-background-image/svg-as-background-4-expected.txt: Copied from platform/gtk/fast/backgrounds/svg-as-background-4-expected.txt.
        * platform/gtk/svg/as-background-image/svg-as-background-5-expected.txt: Copied from platform/gtk/fast/backgrounds/svg-as-background-5-expected.txt.
        * platform/gtk/svg/as-background-image/svg-as-background-6-expected.txt: Copied from platform/gtk/fast/backgrounds/svg-as-background-6-expected.txt.
        * platform/gtk/svg/as-background-image/svg-as-background-expected.png: Copied from platform/gtk/svg/as-image/svg-as-background-expected.png.
        * platform/gtk/svg/as-background-image/svg-as-background-expected.txt: Copied from platform/gtk/svg/as-image/svg-as-background-expected.txt.
        * platform/gtk/svg/as-background-image/svg-as-background-with-relative-size-expected.png: Copied from platform/gtk/svg/as-image/svg-as-background-with-relative-size-expected.png.
        * platform/gtk/svg/as-background-image/svg-as-background-with-relative-size-expected.txt: Copied from platform/gtk/svg/as-image/svg-as-background-with-relative-size-expected.txt.
        * platform/gtk/svg/as-background-image/svg-as-background-with-viewBox-expected.png: Copied from platform/gtk/svg/as-image/svg-as-background-with-viewBox-expected.png.
        * platform/gtk/svg/as-background-image/svg-as-background-with-viewBox-expected.txt: Copied from platform/gtk/svg/as-image/svg-as-background-with-viewBox-expected.txt.
        * platform/gtk/svg/as-background-image/svg-as-tiled-background-expected.png: Copied from platform/gtk/svg/as-image/svg-as-tiled-background-expected.png.
        * platform/gtk/svg/as-background-image/svg-as-tiled-background-expected.txt: Copied from platform/gtk/svg/as-image/svg-as-tiled-background-expected.txt.
        * platform/gtk/svg/as-background-image/svg-background-partial-redraw-expected.txt: Copied from platform/gtk/svg/as-image/svg-background-partial-redraw-expected.txt.
        * platform/gtk/svg/as-background-image/svg-width-100p-as-background-expected.png: Copied from platform/gtk/svg/as-image/svg-width-100p-as-background-expected.png.
        * platform/gtk/svg/as-background-image/svg-width-100p-as-background-expected.txt: Copied from platform/gtk/svg/as-image/svg-width-100p-as-background-expected.txt.
        * platform/gtk/svg/as-border-image: Added.
        * platform/gtk/svg/as-border-image/svg-as-border-image-2-expected.png: Copied from platform/gtk/fast/borders/svg-as-border-image-2-expected.png.
        * platform/gtk/svg/as-border-image/svg-as-border-image-2-expected.txt: Copied from platform/gtk/fast/borders/svg-as-border-image-2-expected.txt.
        * platform/gtk/svg/as-image/svg-as-background-expected.png: Removed.
        * platform/gtk/svg/as-image/svg-as-background-expected.txt: Removed.
        * platform/gtk/svg/as-image/svg-as-background-with-relative-size-expected.png: Removed.
        * platform/gtk/svg/as-image/svg-as-background-with-relative-size-expected.txt: Removed.
        * platform/gtk/svg/as-image/svg-as-background-with-viewBox-expected.png: Removed.
        * platform/gtk/svg/as-image/svg-as-background-with-viewBox-expected.txt: Removed.
        * platform/gtk/svg/as-image/svg-as-tiled-background-expected.png: Removed.
        * platform/gtk/svg/as-image/svg-as-tiled-background-expected.txt: Removed.
        * platform/gtk/svg/as-image/svg-background-partial-redraw-expected.txt: Removed.
        * platform/gtk/svg/as-image/svg-width-100p-as-background-expected.png: Removed.
        * platform/gtk/svg/as-image/svg-width-100p-as-background-expected.txt: Removed.
        * platform/mac-leopard/fast/backgrounds/svg-as-background-1-expected.png: Removed.
        * platform/mac-leopard/fast/backgrounds/svg-as-background-2-expected.png: Removed.
        * platform/mac-leopard/fast/backgrounds/svg-as-background-3-expected.png: Removed.
        * platform/mac-leopard/fast/backgrounds/svg-as-background-5-expected.png: Removed.
        * platform/mac-leopard/fast/backgrounds/svg-as-background-6-expected.png: Removed.
        * platform/mac-leopard/fast/borders/svg-as-border-image-2-expected.png: Removed.
        * platform/mac-leopard/svg/as-background-image: Added.
        * platform/mac-leopard/svg/as-background-image/svg-as-background-1-expected.png: Copied from platform/mac-leopard/fast/backgrounds/svg-as-background-1-expected.png.
        * platform/mac-leopard/svg/as-background-image/svg-as-background-2-expected.png: Copied from platform/mac-leopard/fast/backgrounds/svg-as-background-2-expected.png.
        * platform/mac-leopard/svg/as-background-image/svg-as-background-3-expected.png: Copied from platform/mac-leopard/fast/backgrounds/svg-as-background-3-expected.png.
        * platform/mac-leopard/svg/as-background-image/svg-as-background-5-expected.png: Copied from platform/mac-leopard/fast/backgrounds/svg-as-background-5-expected.png.
        * platform/mac-leopard/svg/as-background-image/svg-as-background-6-expected.png: Copied from platform/mac-leopard/fast/backgrounds/svg-as-background-6-expected.png.
        * platform/mac-leopard/svg/as-background-image/svg-background-partial-redraw-expected.png: Copied from platform/mac-leopard/svg/as-image/svg-background-partial-redraw-expected.png.
        * platform/mac-leopard/svg/as-border-image: Added.
        * platform/mac-leopard/svg/as-border-image/svg-as-border-image-2-expected.png: Copied from platform/mac-leopard/fast/borders/svg-as-border-image-2-expected.png.
        * platform/mac-leopard/svg/as-image/svg-background-partial-redraw-expected.png: Removed.
        * platform/mac/fast/backgrounds/animated-svg-as-background-expected.png: Removed.
        * platform/mac/fast/backgrounds/animated-svg-as-background-expected.txt: Removed.
        * platform/mac/fast/backgrounds/svg-as-background-1-expected.png: Removed.
        * platform/mac/fast/backgrounds/svg-as-background-1-expected.txt: Removed.
        * platform/mac/fast/backgrounds/svg-as-background-2-expected.png: Removed.
        * platform/mac/fast/backgrounds/svg-as-background-2-expected.txt: Removed.
        * platform/mac/fast/backgrounds/svg-as-background-3-expected.png: Removed.
        * platform/mac/fast/backgrounds/svg-as-background-3-expected.txt: Removed.
        * platform/mac/fast/backgrounds/svg-as-background-4-expected.png: Removed.
        * platform/mac/fast/backgrounds/svg-as-background-4-expected.txt: Removed.
        * platform/mac/fast/backgrounds/svg-as-background-5-expected.png: Removed.
        * platform/mac/fast/backgrounds/svg-as-background-5-expected.txt: Removed.
        * platform/mac/fast/backgrounds/svg-as-background-6-expected.png: Removed.
        * platform/mac/fast/backgrounds/svg-as-background-6-expected.txt: Removed.
        * platform/mac/fast/borders/svg-as-border-image-2-expected.png: Removed.
        * platform/mac/fast/borders/svg-as-border-image-2-expected.txt: Removed.
        * platform/mac/fast/borders/svg-as-border-image-expected.png: Removed.
        * platform/mac/fast/borders/svg-as-border-image-expected.txt: Removed.
        * platform/mac/svg/as-background-image: Added.
        * platform/mac/svg/as-background-image/animated-svg-as-background-expected.png: Copied from platform/mac/fast/backgrounds/animated-svg-as-background-expected.png.
        * platform/mac/svg/as-background-image/animated-svg-as-background-expected.txt: Copied from platform/mac/fast/backgrounds/animated-svg-as-background-expected.txt.
        * platform/mac/svg/as-background-image/svg-as-background-1-expected.png: Copied from platform/mac/fast/backgrounds/svg-as-background-1-expected.png.
        * platform/mac/svg/as-background-image/svg-as-background-1-expected.txt: Copied from platform/mac/fast/backgrounds/svg-as-background-1-expected.txt.
        * platform/mac/svg/as-background-image/svg-as-background-2-expected.png: Copied from platform/mac/fast/backgrounds/svg-as-background-2-expected.png.
        * platform/mac/svg/as-background-image/svg-as-background-2-expected.txt: Copied from platform/mac/fast/backgrounds/svg-as-background-2-expected.txt.
        * platform/mac/svg/as-background-image/svg-as-background-3-expected.png: Copied from platform/mac/fast/backgrounds/svg-as-background-3-expected.png.
        * platform/mac/svg/as-background-image/svg-as-background-3-expected.txt: Copied from platform/mac/fast/backgrounds/svg-as-background-3-expected.txt.
        * platform/mac/svg/as-background-image/svg-as-background-4-expected.png: Copied from platform/mac/fast/backgrounds/svg-as-background-4-expected.png.
        * platform/mac/svg/as-background-image/svg-as-background-4-expected.txt: Copied from platform/mac/fast/backgrounds/svg-as-background-4-expected.txt.
        * platform/mac/svg/as-background-image/svg-as-background-5-expected.png: Copied from platform/mac/fast/backgrounds/svg-as-background-5-expected.png.
        * platform/mac/svg/as-background-image/svg-as-background-5-expected.txt: Copied from platform/mac/fast/backgrounds/svg-as-background-5-expected.txt.
        * platform/mac/svg/as-background-image/svg-as-background-6-expected.png: Copied from platform/mac/fast/backgrounds/svg-as-background-6-expected.png.
        * platform/mac/svg/as-background-image/svg-as-background-6-expected.txt: Copied from platform/mac/fast/backgrounds/svg-as-background-6-expected.txt.
        * platform/mac/svg/as-background-image/svg-as-background-expected.png: Copied from platform/mac/svg/as-image/svg-as-background-expected.png.
        * platform/mac/svg/as-background-image/svg-as-background-expected.txt: Copied from platform/mac/svg/as-image/svg-as-background-expected.txt.
        * platform/mac/svg/as-background-image/svg-as-background-with-relative-size-expected.png: Copied from platform/mac/svg/as-image/svg-as-background-with-relative-size-expected.png.
        * platform/mac/svg/as-background-image/svg-as-background-with-relative-size-expected.txt: Copied from platform/mac/svg/as-image/svg-as-background-with-relative-size-expected.txt.
        * platform/mac/svg/as-background-image/svg-as-background-with-viewBox-expected.png: Copied from platform/mac/svg/as-image/svg-as-background-with-viewBox-expected.png.
        * platform/mac/svg/as-background-image/svg-as-background-with-viewBox-expected.txt: Copied from platform/mac/svg/as-image/svg-as-background-with-viewBox-expected.txt.
        * platform/mac/svg/as-background-image/svg-as-tiled-background-expected.png: Copied from platform/mac/svg/as-image/svg-as-tiled-background-expected.png.
        * platform/mac/svg/as-background-image/svg-as-tiled-background-expected.txt: Copied from platform/mac/svg/as-image/svg-as-tiled-background-expected.txt.
        * platform/mac/svg/as-background-image/svg-background-partial-redraw-expected.png: Copied from platform/mac/svg/as-image/svg-background-partial-redraw-expected.png.
        * platform/mac/svg/as-background-image/svg-background-partial-redraw-expected.txt: Copied from platform/mac/svg/as-image/svg-background-partial-redraw-expected.txt.
        * platform/mac/svg/as-background-image/svg-width-100p-as-background-expected.png: Copied from platform/mac/svg/as-image/svg-width-100p-as-background-expected.png.
        * platform/mac/svg/as-background-image/svg-width-100p-as-background-expected.txt: Copied from platform/mac/svg/as-image/svg-width-100p-as-background-expected.txt.
        * platform/mac/svg/as-border-image: Added.
        * platform/mac/svg/as-border-image/svg-as-border-image-2-expected.png: Copied from platform/mac/fast/borders/svg-as-border-image-2-expected.png.
        * platform/mac/svg/as-border-image/svg-as-border-image-2-expected.txt: Copied from platform/mac/fast/borders/svg-as-border-image-2-expected.txt.
        * platform/mac/svg/as-border-image/svg-as-border-image-expected.png: Copied from platform/mac/fast/borders/svg-as-border-image-expected.png.
        * platform/mac/svg/as-border-image/svg-as-border-image-expected.txt: Copied from platform/mac/fast/borders/svg-as-border-image-expected.txt.
        * platform/mac/svg/as-image/svg-as-background-expected.png: Removed.
        * platform/mac/svg/as-image/svg-as-background-expected.txt: Removed.
        * platform/mac/svg/as-image/svg-as-background-with-relative-size-expected.png: Removed.
        * platform/mac/svg/as-image/svg-as-background-with-relative-size-expected.txt: Removed.
        * platform/mac/svg/as-image/svg-as-background-with-viewBox-expected.png: Removed.
        * platform/mac/svg/as-image/svg-as-background-with-viewBox-expected.txt: Removed.
        * platform/mac/svg/as-image/svg-as-tiled-background-expected.png: Removed.
        * platform/mac/svg/as-image/svg-as-tiled-background-expected.txt: Removed.
        * platform/mac/svg/as-image/svg-background-partial-redraw-expected.png: Removed.
        * platform/mac/svg/as-image/svg-background-partial-redraw-expected.txt: Removed.
        * platform/mac/svg/as-image/svg-width-100p-as-background-expected.png: Removed.
        * platform/mac/svg/as-image/svg-width-100p-as-background-expected.txt: Removed.
        * platform/qt-mac/Skipped:
        * platform/qt/Skipped:
        * platform/qt/fast/backgrounds/animated-svg-as-background-expected.txt: Removed.
        * platform/qt/fast/backgrounds/svg-as-background-1-expected.txt: Removed.
        * platform/qt/fast/backgrounds/svg-as-background-2-expected.txt: Removed.
        * platform/qt/fast/backgrounds/svg-as-background-3-expected.txt: Removed.
        * platform/qt/fast/backgrounds/svg-as-background-4-expected.txt: Removed.
        * platform/qt/fast/backgrounds/svg-as-background-5-expected.txt: Removed.
        * platform/qt/fast/backgrounds/svg-as-background-6-expected.txt: Removed.
        * platform/qt/svg/as-background-image: Added.
        * platform/qt/svg/as-background-image/animated-svg-as-background-expected.txt: Copied from platform/qt/fast/backgrounds/animated-svg-as-background-expected.txt.
        * platform/qt/svg/as-background-image/svg-as-background-1-expected.txt: Copied from platform/qt/fast/backgrounds/svg-as-background-1-expected.txt.
        * platform/qt/svg/as-background-image/svg-as-background-2-expected.txt: Copied from platform/qt/fast/backgrounds/svg-as-background-2-expected.txt.
        * platform/qt/svg/as-background-image/svg-as-background-3-expected.txt: Copied from platform/qt/fast/backgrounds/svg-as-background-3-expected.txt.
        * platform/qt/svg/as-background-image/svg-as-background-4-expected.txt: Copied from platform/qt/fast/backgrounds/svg-as-background-4-expected.txt.
        * platform/qt/svg/as-background-image/svg-as-background-5-expected.txt: Copied from platform/qt/fast/backgrounds/svg-as-background-5-expected.txt.
        * platform/qt/svg/as-background-image/svg-as-background-6-expected.txt: Copied from platform/qt/fast/backgrounds/svg-as-background-6-expected.txt.
        * platform/qt/svg/as-background-image/svg-as-background-expected.txt: Copied from platform/qt/svg/as-image/svg-as-background-expected.txt.
        * platform/qt/svg/as-background-image/svg-as-background-with-relative-size-expected.png: Copied from platform/qt/svg/as-image/svg-as-background-with-relative-size-expected.png.
        * platform/qt/svg/as-background-image/svg-as-background-with-relative-size-expected.txt: Copied from platform/qt/svg/as-image/svg-as-background-with-relative-size-expected.txt.
        * platform/qt/svg/as-background-image/svg-as-background-with-viewBox-expected.png: Copied from platform/qt/svg/as-image/svg-as-background-with-viewBox-expected.png.
        * platform/qt/svg/as-background-image/svg-as-background-with-viewBox-expected.txt: Copied from platform/qt/svg/as-image/svg-as-background-with-viewBox-expected.txt.
        * platform/qt/svg/as-background-image/svg-as-tiled-background-expected.txt: Copied from platform/qt/svg/as-image/svg-as-tiled-background-expected.txt.
        * platform/qt/svg/as-background-image/svg-background-partial-redraw-expected.png: Copied from platform/qt/svg/as-image/svg-background-partial-redraw-expected.png.
        * platform/qt/svg/as-background-image/svg-background-partial-redraw-expected.txt: Copied from platform/qt/svg/as-image/svg-background-partial-redraw-expected.txt.
        * platform/qt/svg/as-background-image/svg-width-100p-as-background-expected.txt: Copied from platform/qt/svg/as-image/svg-width-100p-as-background-expected.txt.
        * platform/qt/svg/as-image/svg-as-background-expected.txt: Removed.
        * platform/qt/svg/as-image/svg-as-background-with-relative-size-expected.png: Removed.
        * platform/qt/svg/as-image/svg-as-background-with-relative-size-expected.txt: Removed.
        * platform/qt/svg/as-image/svg-as-background-with-viewBox-expected.png: Removed.
        * platform/qt/svg/as-image/svg-as-background-with-viewBox-expected.txt: Removed.
        * platform/qt/svg/as-image/svg-as-tiled-background-expected.txt: Removed.
        * platform/qt/svg/as-image/svg-background-partial-redraw-expected.png: Removed.
        * platform/qt/svg/as-image/svg-background-partial-redraw-expected.txt: Removed.
        * platform/qt/svg/as-image/svg-width-100p-as-background-expected.txt: Removed.
        * svg/as-background-image: Added.
        * svg/as-background-image/animated-svg-as-background.html: Copied from fast/backgrounds/animated-svg-as-background.html.
        * svg/as-background-image/resources: Added.
        * svg/as-background-image/resources/animated-rect-relative-size.svg: Copied from fast/backgrounds/resources/animated-rect-relative-size.svg.
        * svg/as-background-image/resources/balloon.svg: Copied from fast/backgrounds/resources/balloon.svg.
        * svg/as-background-image/resources/butterfly.svg: Copied from svg/as-image/resources/butterfly.svg.
        * svg/as-background-image/resources/circle.svg: Copied from svg/as-image/resources/circle.svg.
        * svg/as-background-image/resources/eyes.svg: Copied from fast/backgrounds/resources/eyes.svg.
        * svg/as-background-image/resources/green-fixed-size-rect.svg: Copied from svg/as-image/resources/green-fixed-size-rect.svg.
        * svg/as-background-image/resources/green-relative-size-rect-with-viewBox.svg: Copied from svg/as-image/resources/green-relative-size-rect-with-viewBox.svg.
        * svg/as-background-image/resources/hearts.svg: Copied from fast/backgrounds/resources/hearts.svg.
        * svg/as-background-image/resources/linguistics.svg: Copied from fast/backgrounds/resources/linguistics.svg.
        * svg/as-background-image/resources/map.svg: Copied from fast/backgrounds/resources/map.svg.
        * svg/as-background-image/resources/mouse-repel.svg: Copied from fast/backgrounds/resources/mouse-repel.svg.
        * svg/as-background-image/resources/svg-as-background-with-relative-size.svg: Copied from svg/as-image/resources/svg-as-background-with-relative-size.svg.
        * svg/as-background-image/resources/width-100-percent.svg: Copied from svg/as-image/resources/width-100-percent.svg.
        * svg/as-background-image/svg-as-background-1.html: Copied from fast/backgrounds/svg-as-background-1.html.
        * svg/as-background-image/svg-as-background-2.html: Copied from fast/backgrounds/svg-as-background-2.html.
        * svg/as-background-image/svg-as-background-3.html: Copied from fast/backgrounds/svg-as-background-3.html.
        * svg/as-background-image/svg-as-background-4.html: Copied from fast/backgrounds/svg-as-background-4.html.
        * svg/as-background-image/svg-as-background-5.html: Copied from fast/backgrounds/svg-as-background-5.html.
        * svg/as-background-image/svg-as-background-6.html: Copied from fast/backgrounds/svg-as-background-6.html.
        * svg/as-background-image/svg-as-background-with-relative-size.html: Copied from svg/as-image/svg-as-background-with-relative-size.html.
        * svg/as-background-image/svg-as-background-with-viewBox.html: Copied from svg/as-image/svg-as-background-with-viewBox.html.
        * svg/as-background-image/svg-as-background.html: Copied from svg/as-image/svg-as-background.html.
        * svg/as-background-image/svg-as-tiled-background.html: Copied from svg/as-image/svg-as-tiled-background.html.
        * svg/as-background-image/svg-background-crash-on-refresh-expected.txt: Copied from svg/as-image/svg-background-crash-on-refresh-expected.txt.
        * svg/as-background-image/svg-background-crash-on-refresh.html: Copied from svg/as-image/svg-background-crash-on-refresh.html.
        * svg/as-background-image/svg-background-partial-redraw.html: Copied from svg/as-image/svg-background-partial-redraw.html.
        * svg/as-background-image/svg-width-100p-as-background.html: Copied from svg/as-image/svg-width-100p-as-background.html.
        * svg/as-border-image: Added.
        * svg/as-border-image/resources: Added.
        * svg/as-border-image/resources/large-tiles.png: Copied from fast/borders/resources/large-tiles.png.
        * svg/as-border-image/resources/tiles-fixed-size.svg: Copied from fast/borders/resources/tiles-fixed-size.svg.
        * svg/as-border-image/resources/tiles-relative-size.svg: Copied from fast/borders/resources/tiles-relative-size.svg.
        * svg/as-border-image/resources/tiles.png: Copied from fast/borders/resources/tiles.png.
        * svg/as-border-image/svg-as-border-image-2.html: Copied from fast/borders/svg-as-border-image-2.html.
        * svg/as-border-image/svg-as-border-image.html: Copied from fast/borders/svg-as-border-image.html.
        * svg/as-image/resources/butterfly.svg: Removed.
        * svg/as-image/resources/green-relative-size-rect-with-viewBox.svg: Removed.
        * svg/as-image/resources/svg-as-background-with-relative-size.svg: Removed.
        * svg/as-image/resources/width-100-percent.svg: Removed.
        * svg/as-image/svg-as-background-with-relative-size.html: Removed.
        * svg/as-image/svg-as-background-with-viewBox.html: Removed.
        * svg/as-image/svg-as-background.html: Removed.
        * svg/as-image/svg-as-tiled-background.html: Removed.
        * svg/as-image/svg-background-crash-on-refresh-expected.txt: Removed.
        * svg/as-image/svg-background-crash-on-refresh.html: Removed.
        * svg/as-image/svg-background-partial-redraw.html: Removed.
        * svg/as-image/svg-width-100p-as-background.html: Removed.

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

9 years ago[Chromium] Update expectations for r91574.
tkent@chromium.org [Sat, 23 Jul 2011 08:15:09 +0000 (08:15 +0000)]
[Chromium] Update expectations for r91574.

* platform/chromium-win/fast/forms/input-appearance-range-expected.png:
* platform/chromium-win/fast/forms/input-appearance-range-expected.txt:
* platform/chromium/test_expectations.txt:

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

9 years agoAdd crashing and failing expectations for canvas and css tests after r91628.
rniwa@webkit.org [Sat, 23 Jul 2011 04:11:01 +0000 (04:11 +0000)]
Add crashing and failing expectations for canvas and css tests after r91628.
The failures are tracked by the bug 65063.

* platform/chromium/test_expectations.txt:

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

9 years agoAdd crash expectation for http/tests/media/video-error-abort.html on Chromium Mac...
rniwa@webkit.org [Sat, 23 Jul 2011 03:54:38 +0000 (03:54 +0000)]
Add crash expectation for http/tests/media/video-error-abort.html on Chromium Mac and Chromium Windows,
tracked by the bug 65062.

* platform/chromium/test_expectations.txt:

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

9 years ago[chromium] Seperate texture management for contents textures vs render surface textures
jamesr@google.com [Sat, 23 Jul 2011 01:55:24 +0000 (01:55 +0000)]
[chromium] Seperate texture management for contents textures vs render surface textures
https://bugs.webkit.org/show_bug.cgi?id=64771

Reviewed by Kenneth Russell.

Splits the chromium texture management across two TextureManagers, one for contents textures and one for render
surfaces.  The lifetimes and relative evicition costs for these types of textures are significantly different.
Content textures need to be managed from paint time through draw time and evicting them is generally expensive,
since replacing the texture requires doing a software repaint into a buffer, creating a new texture, and
uploading the contents into the texture.  Render surface textures are only used while drawing and never contain
useful contents between frames.  The only reason to preserve a render surface texture between frames is to avoid
having to create the texture on the next frame, they never contain useful contents across frames.

The contents texture limits remain the same.  Render surfaces are allocated the difference between the high
memory bound and the contents texture memory use during a frame and the difference between the low memory bound
and the contents texture memory use between frames.

Covered by existing compositing tests.

* platform/graphics/chromium/LayerRendererChromium.cpp:
(WebCore::LayerRendererChromium::releaseTextures):
(WebCore::LayerRendererChromium::drawLayers):
(WebCore::LayerRendererChromium::updateLayers):
(WebCore::LayerRendererChromium::initializeSharedObjects):
(WebCore::LayerRendererChromium::cleanupSharedObjects):
* platform/graphics/chromium/LayerRendererChromium.h:
(WebCore::LayerRendererChromium::contentsTextureManager):
(WebCore::LayerRendererChromium::renderSurfaceTextureManager):
* platform/graphics/chromium/LayerTilerChromium.cpp:
(WebCore::LayerTilerChromium::createTile):
* platform/graphics/chromium/RenderSurfaceChromium.cpp:
(WebCore::RenderSurfaceChromium::prepareContentsTexture):
* platform/graphics/chromium/TextureManager.cpp:
(WebCore::TextureManager::TextureManager):
(WebCore::TextureManager::setMemoryLimitBytes):
(WebCore::TextureManager::requestTexture):
* platform/graphics/chromium/TextureManager.h:
(WebCore::TextureManager::create):
(WebCore::TextureManager::currentMemoryUseBytes):
* platform/graphics/chromium/cc/CCHeadsUpDisplay.cpp:
(WebCore::CCHeadsUpDisplay::draw):

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

9 years ago2011-07-22 Simon Fraser <simon.fraser@apple.com>
simon.fraser@apple.com [Sat, 23 Jul 2011 00:39:54 +0000 (00:39 +0000)]
2011-07-22  Simon Fraser  <simon.fraser@apple.com>

        Avoiding painting backgrounds if they are fully obscures by an object's foreground
        https://bugs.webkit.org/show_bug.cgi?id=65030

        Reviewed by Dan Bernstein.

        Some pages use animated loading GIFs as the background of <img>,
        but WebKit keeps animating these after the <img> has loaded.

        Thwart this by avoiding the painting of such backgrounds, if we can
        determine that they are completely obscured by the border and content
        of the element.

        * platform/graphics/BitmapImage.h:
        (WebCore::BitmapImage::currentFrameHasAlpha): Utility method, since currentFrame()
        is protected.
        * rendering/RenderBox.cpp:
        (WebCore::RenderBox::paintBoxDecorations): Call paintBackground().
        (WebCore::RenderBox::paintBackground): New wrapper for the paintFillLayers() which
        paints the background layers, plus some code we call in a couple of places. This
        checks the new backgroundIsObscured() method before doing any painting.
        * rendering/RenderBox.h:
        (WebCore::RenderBox::backgroundIsObscured): New virtual method that determines
        whether any of the background is visible.
        * rendering/RenderBoxModelObject.h:
        * rendering/RenderBoxModelObject.cpp:
        (WebCore::BorderEdge::obscuresBackground): Returns true if this edge will
        entirely hide the background under it.
        (WebCore::RenderBoxModelObject::borderObscuresBackground): Determine whether
        the border hides the background.
        * rendering/RenderImage.cpp:
        (WebCore::RenderImage::backgroundIsObscured): Override the RenderBox method
        and return true if the image is a loaded, opaque bitmap image, and the background
        won't show in the border or padding areas.
        * rendering/RenderImage.h:
        * rendering/RenderTable.cpp:
        (WebCore::RenderTable::paintBoxDecorations): Use paintBackground().

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

9 years agoPatch by Sommer Panage <panage@apple.com> on 2011-07-22
commit-queue@webkit.org [Sat, 23 Jul 2011 00:19:05 +0000 (00:19 +0000)]
Patch by Sommer Panage <panage@apple.com> on 2011-07-22
Reviewed by Oliver Hunt.

export JSContextCreateBacktrace as SPI in JSContextRefPrivate.h
https://bugs.webkit.org/show_bug.cgi?id=64981

UIAutomation for iOS would like to support a Javascript backtrace in our error logs.
Currently, the C API does not provide the tools to do this. However, the private API
does expose the necessary functionality to get a backtrace
(via Interpreter::retrieveLastCaller). We recognize this information may result in
failure in the cases of programs run by 'eval', stack frames beneath host function
call frames, and in programs run from other programs. Thus, we propose exporting our
JSContextCreateBacktrace in JSContextRefPrivate.h. This will provide us with the tools
we need while not advertising an API that isn't really ready for full use.

* API/JSContextRef.cpp:
* API/JSContextRefPrivate.h:
* JavaScriptCore.exp:

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

9 years agoHTMLImageElement::crossOrigin is hard to use because of caching
kbr@google.com [Sat, 23 Jul 2011 00:18:34 +0000 (00:18 +0000)]
HTMLImageElement::crossOrigin is hard to use because of caching
https://bugs.webkit.org/show_bug.cgi?id=64813

Reviewed by Adam Barth.

Source/WebCore:

Reload the resource if the allowCredentials flag doesn't match that in the request.

Test: http/tests/security/canvas-remote-read-remote-image-blocked-then-allowed.html

* loader/cache/CachedResourceLoader.cpp:
(WebCore::CachedResourceLoader::requestResource):
(WebCore::CachedResourceLoader::determineRevalidationPolicy):
* loader/cache/CachedResourceLoader.h:

LayoutTests:

* http/tests/security/canvas-remote-read-remote-image-blocked-then-allowed-expected.txt: Added.
* http/tests/security/canvas-remote-read-remote-image-blocked-then-allowed.html: Added.

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

9 years agoChromium Mac rebaseline after r91605.
rniwa@webkit.org [Sat, 23 Jul 2011 00:16:19 +0000 (00:16 +0000)]
Chromium Mac rebaseline after r91605.

* platform/chromium-mac/fast/repaint/fixed-after-scroll-expected.png: Added.
* platform/chromium-mac/fast/repaint/fixed-scale-expected.png: Added.
* platform/chromium-mac/fast/repaint/fixed-table-cell-expected.png: Added.
* platform/chromium-mac/fast/repaint/fixed-table-overflow-expected.png: Added.
* platform/chromium-mac/fast/repaint/fixed-table-overflow-zindex-expected.png: Added.

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

9 years agoDon't match 'DEBUG' when trying to filter BUG modifiers.
ojan@chromium.org [Sat, 23 Jul 2011 00:10:09 +0000 (00:10 +0000)]
Don't match 'DEBUG' when trying to filter BUG modifiers.
* TestResultServer/static-dashboards/flakiness_dashboard.html:
* TestResultServer/static-dashboards/flakiness_dashboard_tests.js:

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

9 years ago2011-07-22 Simon Fraser <simon.fraser@apple.com>
simon.fraser@apple.com [Sat, 23 Jul 2011 00:01:57 +0000 (00:01 +0000)]
2011-07-22  Simon Fraser  <simon.fraser@apple.com>

        Need to update the acceleratesDrawing status on a layer when switching to/from tiled layers
        https://bugs.webkit.org/show_bug.cgi?id=65057

        Reviewed by Joseph Pecoraro.

        When switching to or from tiled layers, we need to update the new layer's
        acceleratesDrawing status.

        * platform/graphics/ca/GraphicsLayerCA.cpp:
        (WebCore::GraphicsLayerCA::swapFromOrToTiledLayer):

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

9 years agoFix issue loading gtests since there's no g_expectations.
ojan@chromium.org [Fri, 22 Jul 2011 23:58:12 +0000 (23:58 +0000)]
Fix issue loading gtests since there's no g_expectations.
Also, make filing a bug file a webkit.org bug, not a crbug since
the link is only shown for layout tests.
* TestResultServer/static-dashboards/dashboard_base.js:
* TestResultServer/static-dashboards/flakiness_dashboard.html:

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

9 years ago[chromium] Remove code that attempted to explicitly sync compositing state before...
jamesr@google.com [Fri, 22 Jul 2011 23:37:51 +0000 (23:37 +0000)]
[chromium] Remove code that attempted to explicitly sync compositing state before compositing
https://bugs.webkit.org/show_bug.cgi?id=65055

Reviewed by Kenneth Russell.

There was some logic in WebViewImpl to try to synchronously calculate compositing requirements and sync
compositing state on all frames before painting in an attempt to flush out all pending updates before entering
the composite routines. The idea behind this code was that it would allow us to not worry about compositing
turning off in the middle of a composite operation due to things like RenderLayer overlap being lazily
calculated.  In practice, we still need to be defensive to compositing requirements updating during the
composite anyway and this code is quite expensive on some pages (10ms+ on the HTML specification on my box).

* src/WebViewImpl.cpp:
(WebKit::WebViewImpl::layout):
* src/WebViewImpl.h:

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

9 years agopull test expectations into the dashboard from wvn.webkit.org
ojan@chromium.org [Fri, 22 Jul 2011 23:33:05 +0000 (23:33 +0000)]
pull test expectations into the dashboard from wvn.webkit.org
https://bugs.webkit.org/show_bug.cgi?id=65054

Reviewed by Adam Barth.

Now that svn.webkit.org supports cors headers, we can just grab the txt
file from there instead of generating a JSON file that we upload
to appengine. We'll stop generating the JSON file in a followup patch.

* TestResultServer/static-dashboards/dashboard_base.js:
* TestResultServer/static-dashboards/flakiness_dashboard.html:
* TestResultServer/static-dashboards/flakiness_dashboard_tests.js:

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

9 years agoFix typo so the tool works on a case-sensitive file system.
abarth@webkit.org [Fri, 22 Jul 2011 23:32:15 +0000 (23:32 +0000)]
Fix typo so the tool works on a case-sensitive file system.

* BuildSlaveSupport/build.webkit.org-config/public_html/TestFailures/garden-o-matic.html:

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

9 years agogarden-o-matic should know what patches are landing
abarth@webkit.org [Fri, 22 Jul 2011 23:30:14 +0000 (23:30 +0000)]
garden-o-matic should know what patches are landing
https://bugs.webkit.org/show_bug.cgi?id=64978

Reviewed by Dimitri Glazkov.

This patch adds a display of the recently committed patches to
garden-o-matic.  The UI needs iteration, but this patch establishes the
plumbing.

* BuildSlaveSupport/build.webkit.org-config/public_html/TestFailures/Trac.js:
    - Teach trac how to extract more information from the commit log.
* BuildSlaveSupport/build.webkit.org-config/public_html/TestFailures/config.js:
    - Add a data attribute for storing the revision.
* BuildSlaveSupport/build.webkit.org-config/public_html/TestFailures/garden-o-matic.html:
    - Add a container for the recent commit history.
* BuildSlaveSupport/build.webkit.org-config/public_html/TestFailures/main.css:
    - CSS for displaying non-ugly commit history.
* BuildSlaveSupport/build.webkit.org-config/public_html/TestFailures/main.js:
    - Wire up trac to the UI container.
* BuildSlaveSupport/build.webkit.org-config/public_html/TestFailures/ui.js:
    - A basic, compact display for a list of commits.

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

9 years agoAdd [Optional=CallWithDefaultValues] flag and use it in initXXXEvent declarations
commit-queue@webkit.org [Fri, 22 Jul 2011 23:26:54 +0000 (23:26 +0000)]
Add [Optional=CallWithDefaultValues] flag and use it in initXXXEvent declarations
https://bugs.webkit.org/show_bug.cgi?id=64973

Patch by Mark Pilgrim <pilgrim@chromium.org> on 2011-07-22
Reviewed by Adam Barth.

We are doing away with the interface-level LegacyDefaultOptionalArguments
flag. To handle some cases of the old behavior, we need to define a new
(argument-level) flag so that functions can define optional arguments
but not have to declare every single combination of arguments in C++.
The old code generator handled this by calling a single C++ function
with all arguments, but with default values for the "optional" arguments.
Thus, this patch invents a new argument-level flag called
[Optional=CallWithDefaultValue] that emulates the old behavior.

This patch also fixes all the initXXXEvent declarations to remove the
LegacyDefaultOptionalArguments flag and use the new
[Optional=CallWithDefaultValue] flag only on the specific arguments that
require it for backward compatibility.

No new tests, all existing tests pass.

* bindings/scripts/CodeGeneratorJS.pm:
(GenerateImplementation):
* bindings/scripts/CodeGeneratorV8.pm:
(GenerateFunctionCallback):
* dom/BeforeLoadEvent.idl:
* dom/BeforeProcessEvent.idl:
* dom/CompositionEvent.idl:
* dom/CustomEvent.idl:
* dom/DeviceMotionEvent.idl:
* dom/DeviceOrientationEvent.idl:
* dom/ErrorEvent.idl:
* dom/Event.idl:
* dom/HashChangeEvent.idl:
* dom/KeyboardEvent.idl:
* dom/MessageEvent.idl:
* dom/MouseEvent.idl:
* dom/MutationEvent.idl:
* dom/OverflowEvent.idl:
* dom/PageTransitionEvent.idl:
* dom/PopStateEvent.idl:
* dom/ProgressEvent.idl:
* dom/StreamEvent.idl:
* dom/TextEvent.idl:
* dom/TouchEvent.idl:
* dom/UIEvent.idl:
* dom/WebKitAnimationEvent.idl:
* dom/WebKitTransitionEvent.idl:
* dom/WheelEvent.idl:
* html/canvas/WebGLContextEvent.idl:
* storage/StorageEvent.idl:
* websockets/CloseEvent.idl:

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

9 years agoSource/WebCore: [WebKit2] Changing the cookie accept policy in Private Browsing doesn...
jberlin@webkit.org [Fri, 22 Jul 2011 23:22:21 +0000 (23:22 +0000)]
Source/WebCore: [WebKit2] Changing the cookie accept policy in Private Browsing doesn’t work
https://bugs.webkit.org/show_bug.cgi?id=64997

Reviewed by Ada Chan.

* WebCore.exp.in:
* platform/mac/WebCoreSystemInterface.h:
* platform/mac/WebCoreSystemInterface.mm:

Source/WebKit2: [WebKit2] Changing the cookie accept policy in Private Browsing doesn’t work.
https://bugs.webkit.org/show_bug.cgi?id=64997

Reviewed by Ada Chan.

* WebProcess/Cookies/mac/WebCookieManagerMac.mm:
(WebKit::WebCookieManager::platformSetHTTPCookieAcceptPolicy):
Set the policy on the Cookie Storage used by the Private Browsing Storage Session as well.
* WebProcess/WebCoreSupport/mac/WebSystemInterface.mm:
(InitWebCoreSystemInterface):

WebKitLibraries: [WebKit2] Changing the cookie accept policy in Private Browsing doesn’t work.
https://bugs.webkit.org/show_bug.cgi?id=64997

Reviewed by Ada Chan.

Add a wrapper around the setter for the CF HTTP cookie accept policy (since it is not
declared in the public headers on Snow Leopard). This wrapper is not necessary for Windows.

* WebKitSystemInterface.h:
* libWebKitSystemInterfaceLeopard.a:
* libWebKitSystemInterfaceLion.a:
* libWebKitSystemInterfaceSnowLeopard.a:

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

9 years agoFix bug when switching from layout-tests to another test-type if
ojan@chromium.org [Fri, 22 Jul 2011 23:05:43 +0000 (23:05 +0000)]
Fix bug when switching from layout-tests to another test-type if
ToT webkit.org is the selected group.
* TestResultServer/static-dashboards/flakiness_dashboard.html:

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

9 years agoAdd back in line accidentally deleted in http://trac.webkit.org/changeset/91612.
ojan@chromium.org [Fri, 22 Jul 2011 22:59:26 +0000 (22:59 +0000)]
Add back in line accidentally deleted in trac.webkit.org/changeset/91612.
* TestResultServer/static-dashboards/flakiness_dashboard.html:

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

9 years agoHook v8 up to cryptographicallyRandomValues as an entropy source.
cdn@chromium.org [Fri, 22 Jul 2011 22:42:51 +0000 (22:42 +0000)]
Hook v8 up to cryptographicallyRandomValues as an entropy source.
https://bugs.webkit.org/show_bug.cgi?id=64887

Reviewed by Adam Barth.

* public/WebKitClient.h:
* src/WebKit.cpp:
(WebKit::generateEntropy):
(WebKit::initialize):

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

9 years agosimplify the flakiness dashboard to only show modifiers/expectations for the current...
ojan@chromium.org [Fri, 22 Jul 2011 22:31:48 +0000 (22:31 +0000)]
simplify the flakiness dashboard to only show modifiers/expectations for the current builder
https://bugs.webkit.org/show_bug.cgi?id=65049

Reviewed by Tony Chang.

This communicates less information, but probably makes the dashboard more usable.
Also make it show that bug lines that don't point to bug numbers still
show up in the bugs column (e.g. BUG_TONY) and stop showing the extra/missing
columns in any view. The data is still used, but only in the view that updates
the test_expectations.txt file.

* TestResultServer/static-dashboards/dashboard_base.js:
* TestResultServer/static-dashboards/flakiness_dashboard.html:
* TestResultServer/static-dashboards/flakiness_dashboard_tests.js:

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

9 years agoPerform the JavaScript navigation check on a complete URL
commit-queue@webkit.org [Fri, 22 Jul 2011 22:23:08 +0000 (22:23 +0000)]
Perform the JavaScript navigation check on a complete URL
https://bugs.webkit.org/show_bug.cgi?id=65038

Patch by Sergey Glazunov <serg.glazunov@gmail.com> on 2011-07-22
Reviewed by Adam Barth.

Source/WebCore:

Test: http/tests/security/xss-DENIED-document-baseURI-javascript.html

* page/DOMWindow.cpp:
(WebCore::DOMWindow::setLocation):
(WebCore::DOMWindow::createWindow):
(WebCore::DOMWindow::open):

LayoutTests:

* http/tests/security/xss-DENIED-document-baseURI-javascript-expected.txt: Added.
* http/tests/security/xss-DENIED-document-baseURI-javascript.html: Added.

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

9 years agohttps://bugs.webkit.org/show_bug.cgi?id=65051
barraclough@apple.com [Fri, 22 Jul 2011 22:22:21 +0000 (22:22 +0000)]
https://bugs.webkit.org/show_bug.cgi?id=65051
DFG JIT - Enable by default for mac platform on x86-64.

Rubber Stamped by Geoff Garen.

This is now a performance progression.

* wtf/Platform.h:
    - Removed definition of ENABLE_DFG_JIT_RESTRICTIONS.

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

9 years agohttps://bugs.webkit.org/show_bug.cgi?id=65047
barraclough@apple.com [Fri, 22 Jul 2011 22:08:52 +0000 (22:08 +0000)]
https://bugs.webkit.org/show_bug.cgi?id=65047
DFG JIT - Add support for op_resolve/op_resolve_base

Reviewed by Sam Weinig.

These are necessary for any significant eval code coverage
(and as such increase LayoutTest coverage).

* dfg/DFGAliasTracker.h:
(JSC::DFG::AliasTracker::recordResolve):
    - Conservatively blow aliasing optimizations for now.
* dfg/DFGByteCodeParser.cpp:
(JSC::DFG::ByteCodeParser::parseBlock):
    - Add support for op_resolve/op_resolve_base.
* dfg/DFGJITCodeGenerator.h:
(JSC::DFG::JITCodeGenerator::callOperation):
    - Add call with exec, identifer aguments.
* dfg/DFGNode.h:
    - Add new node types.
(JSC::DFG::Node::hasIdentifier):
    - Resolve nodes have identifiers, too!
* dfg/DFGNonSpeculativeJIT.cpp:
(JSC::DFG::NonSpeculativeJIT::compile):
    - Add generation for new Nodes.
* dfg/DFGOperations.cpp:
* dfg/DFGOperations.h:
    - Added new operations.
* dfg/DFGSpeculativeJIT.cpp:
(JSC::DFG::SpeculativeJIT::compile):
    - Add generation for new Nodes.

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

9 years agoRevert r91595 for it broke Chromium Windows build.
rniwa@webkit.org [Fri, 22 Jul 2011 21:31:04 +0000 (21:31 +0000)]
Revert r91595 for it broke Chromium Windows build.

* WebCore.gyp/WebCore.gyp:
* WebCore.gypi:

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

9 years agoRenderLayer fixed position logic needs more basic testing
jchaffraix@webkit.org [Fri, 22 Jul 2011 21:28:10 +0000 (21:28 +0000)]
RenderLayer fixed position logic needs more basic testing
https://bugs.webkit.org/show_bug.cgi?id=64650

Reviewed by James Robinson.

Those test checks that basic repainting with position: fixed and
scrolling works correctly. The tests are mostly platform-agnostic as they
don't use any text or native controls.

* fast/repaint/resources/default.css: Added.
Default style sheet for the following tests. This style sheet sets the default size to
avoid complicated calculation and adds some neat classes.

* fast/repaint/fixed-scroll-simple.html: Added.
Filed https://bugs.webkit.org/show_bug.cgi?id=64639 about this test as we repaint too much.

* fast/repaint/fixed-after-scroll-expected.txt: Added.
* fast/repaint/fixed-after-scroll.html: Added.
* fast/repaint/fixed-scale.html: Added.
* fast/repaint/fixed-table-cell.html: Added.
* fast/repaint/fixed-table-overflow-zindex.html: Added.
* fast/repaint/fixed-table-overflow.html: Added.
Added those new repaint dumpAsText(true) tests.

* fast/repaint/fixed-scale-expected.txt: Added.
* fast/repaint/fixed-scroll-simple-expected.txt: Added.
* fast/repaint/fixed-table-cell-expected.txt: Added.
* fast/repaint/fixed-table-overflow-expected.txt: Added.
* fast/repaint/fixed-table-overflow-zindex-expected.txt: Added.
* platform/chromium/fast/repaint/fixed-after-scroll-expected.png: Added.
* platform/chromium/fast/repaint/fixed-scale-expected.png: Added.
* platform/chromium/fast/repaint/fixed-scroll-simple-expected.png: Added.
* platform/chromium/fast/repaint/fixed-table-cell-expected.png: Added.
* platform/chromium/fast/repaint/fixed-table-overflow-expected.png: Added.
* platform/chromium/fast/repaint/fixed-table-overflow-zindex-expected.png: Added.
* platform/mac/fast/repaint/fixed-after-scroll-expected.png: Added.
* platform/mac/fast/repaint/fixed-scale-expected.png: Added.
* platform/mac/fast/repaint/fixed-scroll-simple-expected.png: Added.
* platform/mac/fast/repaint/fixed-table-cell-expected.png: Added.
* platform/mac/fast/repaint/fixed-table-overflow-expected.png: Added.
* platform/mac/fast/repaint/fixed-table-overflow-zindex-expected.png: Added.
* platform/qt/fast/repaint/fixed-after-scroll-expected.png: Added.
* platform/qt/fast/repaint/fixed-scale-expected.png: Added.
* platform/qt/fast/repaint/fixed-scroll-simple-expected.png: Added.
* platform/qt/fast/repaint/fixed-table-cell-expected.png: Added.
* platform/qt/fast/repaint/fixed-table-overflow-expected.png: Added.
* platform/qt/fast/repaint/fixed-table-overflow-zindex-expected.png: Added.

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

9 years agoChromium test expectation update; also rebaseline a test after r91574.
rniwa@webkit.org [Fri, 22 Jul 2011 21:25:01 +0000 (21:25 +0000)]
Chromium test expectation update; also rebaseline a test after r91574.

* platform/chromium-mac/media/video-volume-slider-expected.txt:
* platform/chromium-win/media/video-volume-slider-expected.txt:
* platform/chromium/test_expectations.txt:

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

9 years agoBORDER attribute with the IMG tag, using percentage values not working.
commit-queue@webkit.org [Fri, 22 Jul 2011 20:27:56 +0000 (20:27 +0000)]
BORDER attribute with the IMG tag, using percentage values not working.
https://bugs.webkit.org/show_bug.cgi?id=20226

Patch by Mihnea Ovidenie <mihnea@adobe.com> on 2011-07-22
Reviewed by Simon Fraser.

When border presentational attribute of image element has % in it, it should be parsed using
HTML parser rules. In this case, the algorithm is the one used described in:
http://www.whatwg.org/specs/web-apps/current-work/#rules-for-parsing-non-negative-integers

Source/WebCore:

* html/HTMLImageElement.cpp:
(WebCore::parseBorderWidthAttribute):
(WebCore::HTMLImageElement::parseMappedAttribute):
* html/parser/HTMLParserIdioms.cpp:
(WebCore::parseHTMLNonNegativeInteger):
* html/parser/HTMLParserIdioms.h:

LayoutTests:

* fast/images/border-expected.txt:
* fast/images/script-tests/border.js:

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

9 years agoDocumentLoader keeps a reference to all URL strings ever loaded in m_resourcesClientK...
commit-queue@webkit.org [Fri, 22 Jul 2011 20:17:44 +0000 (20:17 +0000)]
DocumentLoader keeps a reference to all URL strings ever loaded in m_resourcesClientKnowsAbout leading to lots of memory waste
https://bugs.webkit.org/show_bug.cgi?id=61894

Patch by Scott Graham <scottmg@chromium.org> on 2011-07-22
Reviewed by James Robinson.

DocumentLoader::m_resourcesClientKnowsAbout is a set of all the URLs
that have passed through FrameLoader::dispatchWillSendRequest() and is
used by FrameLoader::loadedResourceFromMemoryCached to decide whether
to inform the FrameLoader's m_client about this load.  Unfortunately,
this set holds a reference to the URL string for every resource
loaded, so on pages that use data URLs to "load" large amounts of data
this leaks lots of memory. The cache improves performance going through
FrameLoader::loadResourceFromMemoryCache, so rather than removing it,
simply exclude 'data:' urls from the cache to save the majority of
memory that is held for too long.

* loader/DocumentLoader.h:
(WebCore::DocumentLoader::didTellClientAboutLoad):

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

9 years agoUse software rendering for small canvas
alokp@chromium.org [Fri, 22 Jul 2011 20:04:56 +0000 (20:04 +0000)]
Use software rendering for small canvas
https://bugs.webkit.org/show_bug.cgi?id=64958

Reviewed by Stephen White.

No new tests. Does not affect rendering output, just canvas backing.
If there is a regression, they should be caught by existing canvas tests.

* html/HTMLCanvasElement.cpp:
(WebCore::HTMLCanvasElement::reset):
* html/canvas/CanvasRenderingContext2D.cpp:
(WebCore::shouldAccelerateCanvas):
(WebCore::CanvasRenderingContext2D::CanvasRenderingContext2D):
(WebCore::CanvasRenderingContext2D::reset):
(WebCore::CanvasRenderingContext2D::platformLayer):
(WebCore::CanvasRenderingContext2D::clearAcceleration):
(WebCore::CanvasRenderingContext2D::resetAcceleration):
* html/canvas/CanvasRenderingContext2D.h:

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

9 years ago2011-07-22 Nate Chapin <japhet@chromium.org>
japhet@chromium.org [Fri, 22 Jul 2011 19:57:42 +0000 (19:57 +0000)]
2011-07-22  Nate Chapin  <japhet@chromium.org>

        Unreviewed, chromium expectations update.
        media/adopt-node-crash.html hasn't been flaky recently.

        * platform/chromium/test_expectations.txt:

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

9 years agoFix repainting of composited fixed position elements in iframes
enne@google.com [Fri, 22 Jul 2011 19:52:52 +0000 (19:52 +0000)]
Fix repainting of composited fixed position elements in iframes
https://bugs.webkit.org/show_bug.cgi?id=64010

Reviewed by Simon Fraser.

Source/WebCore:

In cases where an iframe's contents have their own graphics layer, the
invalidation during scrolling was being sent to the wrong render
layer. Fixed by checking if such a layer exists and routing scrolling
invalidations there first.

* page/FrameView.cpp:
(WebCore::FrameView::scrollContentsSlowPath):

LayoutTests:

* compositing/iframes/fixed-position-iframe-expected.png: Added.
* compositing/iframes/fixed-position-iframe-expected.txt: Added.
* compositing/iframes/fixed-position-iframe.html: Added.
* compositing/iframes/resources/fixed-position-subframe.html: Added.

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

9 years agoImprove (i.e., speed up) .gyp(i) files for Chromium
commit-queue@webkit.org [Fri, 22 Jul 2011 19:42:17 +0000 (19:42 +0000)]
Improve (i.e., speed up) .gyp(i) files for Chromium
https://bugs.webkit.org/show_bug.cgi?id=65032

Patch by Viet-Trung Luu <viettrungluu@chromium.org> on 2011-07-22
Reviewed by Adam Barth.

Begin splitting off webcore_(privateheader_)files into separate lists
(dom/html/svg in this patch), to avoid the very slow pattern of
excluding all files and then filtering to include selected files.

Test by building (in all supported configurations).

* WebCore.gyp/WebCore.gyp:
* WebCore.gypi:

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

9 years agoadd placeholder RenderFlexibleBox.cpp files
tony@chromium.org [Fri, 22 Jul 2011 19:35:52 +0000 (19:35 +0000)]
add placeholder RenderFlexibleBox.cpp files
https://bugs.webkit.org/show_bug.cgi?id=64982

Reviewed by Ojan Vafai.

No new tests, just adding new files and making sure it compiles.
Also adding the isFlexibleBox identifier to RenderObject.

* CMakeLists.txt:
* GNUmakefile.list.am:
* WebCore.gypi:
* WebCore.pro:
* WebCore.vcproj/WebCore.vcproj:
* WebCore.xcodeproj/project.pbxproj:
* rendering/RenderFlexibleBox.cpp: Added.
(WebCore::RenderFlexibleBox::RenderFlexibleBox): Inherit from RenderBlock like the old flexbox.
(WebCore::RenderFlexibleBox::~RenderFlexibleBox):
(WebCore::RenderFlexibleBox::renderName):
(WebCore::RenderFlexibleBox::layoutBlock):
* rendering/RenderFlexibleBox.h: Added.
(WebCore::RenderFlexibleBox::isFlexibleBox):
* rendering/RenderObject.h:
(WebCore::RenderObject::isFlexibleBox):

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

9 years ago[chromium] Force slow scrolling path for non-composited frames in a composited page
jamesr@google.com [Fri, 22 Jul 2011 19:26:38 +0000 (19:26 +0000)]
[chromium] Force slow scrolling path for non-composited frames in a composited page
https://bugs.webkit.org/show_bug.cgi?id=64991

Reviewed by Darin Fisher.

The chromium compositor does not properly handle fast path scrolls for non-composited iframe in a composited
page.

* page/FrameView.cpp:
(WebCore::FrameView::useSlowRepaints):

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

9 years agohook in the rest of the bots to the dashboard now they run NRWT
ojan@chromium.org [Fri, 22 Jul 2011 19:16:25 +0000 (19:16 +0000)]
hook in the rest of the bots to the dashboard now they run NRWT
https://bugs.webkit.org/show_bug.cgi?id=64985

Reviewed by Adam Barth.

* TestResultServer/static-dashboards/builders.js:

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

9 years agoUpdate results after change to make columns and column-span establish
weinig@apple.com [Fri, 22 Jul 2011 19:15:23 +0000 (19:15 +0000)]
Update results after change to make columns and column-span establish
formatting contexts in r91497

* fast/multicol/single-line-expected.txt:
* platform/mac/fast/multicol/float-multicol-expected.txt:
* platform/mac/fast/multicol/scrolling-overflow-expected.txt:
* platform/mac/fast/multicol/span/anonymous-before-child-parent-crash-expected.txt:
* platform/mac/fast/multicol/span/anonymous-split-block-crash-expected.txt:
* platform/mac/fast/multicol/span/anonymous-style-inheritance-expected.txt:
* platform/mac/fast/multicol/span/clone-anonymous-block-non-inline-child-crash-expected.txt:
* platform/mac/fast/multicol/span/span-as-immediate-child-complex-splitting-expected.txt:
* platform/mac/fast/multicol/span/span-as-immediate-child-generated-content-expected.txt:
* platform/mac/fast/multicol/span/span-as-immediate-child-property-removal-expected.txt:
* platform/mac/fast/multicol/span/span-as-immediate-columns-child-dynamic-expected.txt:
* platform/mac/fast/multicol/span/span-as-immediate-columns-child-expected.txt:
* platform/mac/fast/multicol/span/span-as-immediate-columns-child-removal-expected.txt:
* platform/mac/fast/multicol/span/span-as-nested-columns-child-dynamic-expected.txt:
* platform/mac/fast/multicol/span/span-as-nested-columns-child-expected.txt:
* platform/mac/fast/multicol/span/span-margin-collapsing-expected.txt:
* platform/mac/fast/multicol/vertical-lr/float-multicol-expected.txt:
* platform/mac/fast/multicol/vertical-rl/float-multicol-expected.txt:

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

9 years agoRemove surfaceType() and texture() methods from Chromium video frame classes.
scherkus@chromium.org [Fri, 22 Jul 2011 19:07:41 +0000 (19:07 +0000)]
Remove surfaceType() and texture() methods from Chromium video frame classes.
https://bugs.webkit.org/show_bug.cgi?id=64818

Reviewed by Kenneth Russell.

Source/WebCore:

No tests as code was never being executed.

* platform/graphics/chromium/VideoFrameChromium.h:
* platform/graphics/chromium/VideoLayerChromium.cpp:
(WebCore::VideoLayerChromium::updateCompositorResources):
* platform/graphics/chromium/VideoLayerChromium.h:

Source/WebKit/chromium:

* public/WebVideoFrame.h:
* src/AssertMatchingEnums.cpp:
* src/VideoFrameChromiumImpl.cpp:
* src/VideoFrameChromiumImpl.h:

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

9 years agoSource/WebCore: Don't treat child frame loads as back-forward navigations
japhet@chromium.org [Fri, 22 Jul 2011 19:01:56 +0000 (19:01 +0000)]
Source/WebCore: Don't treat child frame loads as back-forward navigations
after the load event fires. This can lead to loading
the wrong url in the child frame.
https://bugs.webkit.org/show_bug.cgi?id=64895

Reviewed by Mihai Parparita.

Test: fast/loader/child-frame-add-after-back-forward.html

* dom/Document.h: Drive-by FIXME.
* loader/DocumentLoader.h: Drive-by FIXME.
* loader/FrameLoader.cpp:
(WebCore::FrameLoader::loadURLIntoChildFrame):

LayoutTests: Test for https://bugs.webkit.org/show_bug.cgi?id=64895.

Reviewed by Mihai Parparita.

* fast/loader/child-frame-add-after-back-forward-expected.txt: Added.
* fast/loader/child-frame-add-after-back-forward.html: Added.

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

9 years agohttps://bugs.webkit.org/show_bug.cgi?id=65036
barraclough@apple.com [Fri, 22 Jul 2011 18:25:57 +0000 (18:25 +0000)]
https://bugs.webkit.org/show_bug.cgi?id=65036
Messing with the register allocation within flow control = badness.

Reviewed by Sam Weinig.

* dfg/DFGNonSpeculativeJIT.cpp:
(JSC::DFG::NonSpeculativeJIT::compile):
    - Fix register allocation.

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

9 years ago Adding Tim Horton to contributor list for Bugzilla auto-completion. He is...
ap@apple.com [Fri, 22 Jul 2011 18:12:32 +0000 (18:12 +0000)]
    Adding Tim Horton to contributor list for Bugzilla auto-completion. He is CC'ed quite frequently.

        Unreviewed.

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

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

9 years agoDate.prototype.toISOString doesn't handle negative years or years > 9999 correctly.
commit-queue@webkit.org [Fri, 22 Jul 2011 18:00:52 +0000 (18:00 +0000)]
Date.prototype.toISOString doesn't handle negative years or years > 9999 correctly.
https://bugs.webkit.org/show_bug.cgi?id=63986

Patch by Mark Hahnenberg <mhahnenberg@apple.com> on 2011-07-22
Reviewed by Geoffrey Garen.

Source/JavaScriptCore:

Changed the implementation of Date.prototype.toISOString() to use the extended year
format (+/-yyyyyy) for years outside of [0,9999] to be in compliance with ES 15.9.1.15.1.

* runtime/DatePrototype.cpp:
(JSC::dateProtoFuncToISOString):

LayoutTests:

Changed the implementation of Date.prototype.toISOString() to use the extended year
format (+/-yyyyyy) for years outside of [0,9999] to be in compliance with ES 15.9.1.15.1.
Altered one test that tested for incorrect behavior on years > 9999, and added another test for
years < 0 (i.e. BCE).

* fast/js/date-toisostring-expected.txt:
* fast/js/script-tests/date-toisostring.js:

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

9 years agoREGRESSION(r88757): The thumb of a vertical range slider is offset to the right on...
commit-queue@webkit.org [Fri, 22 Jul 2011 17:54:32 +0000 (17:54 +0000)]
REGRESSION(r88757): The thumb of a vertical range slider is offset to the right on non-Mac.
https://bugs.webkit.org/show_bug.cgi?id=65011

Patch by Kent Tamura <tkent@google.com> on 2011-07-22
Reviewed by Dimitri Glazkov.

Source/WebCore:

We need to update the apeearance of thumbs before the layout of RenderSlider.

* html/shadow/SliderThumbElement.cpp:
(WebCore::RenderSliderThumb::updateAppearance):
Added. This function adjsuts the apparance of a thumb for the appearance of an <input>.
(WebCore::RenderSliderThumb::isSliderThumb):
Added.  Returns true.
(WebCore::RenderSliderThumb::layout):
Remove the appearance adjustment code. It is unnecessary because it is
done in RenderSlider::layout().
(WebCore::trackLimiterElementOf): Added.
* html/shadow/SliderThumbElement.h: Move RenderSliderThumb from SliderThumbElement.cpp.
* rendering/RenderObject.h:
(WebCore::RenderObject::isSliderThumb): Added. Returns false.
* rendering/RenderSlider.cpp:
(WebCore::RenderSlider::layout):
If the renderers for the thumb element and the limiter element is
RenderSliderThumb, updates its appearance.

LayoutTests:

* platform/chromium-linux/fast/forms/input-appearance-range-expected.png:
* platform/chromium-linux/fast/forms/input-appearance-range-expected.txt:
* platform/chromium/test_expectations.txt:

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

9 years agoValidation message bubble is incorrectly positioned in a relative body.
tkent@chromium.org [Fri, 22 Jul 2011 17:46:12 +0000 (17:46 +0000)]
Validation message bubble is incorrectly positioned in a relative body.
https://bugs.webkit.org/show_bug.cgi?id=65018

Reviewed by Dimitri Glazkov.

Source/WebCore:

We use position:aboslute for validation message bubbles, and the
origin of the absolute position can be not only the page, but also
an ancestor block with non-static position.

Test: fast/forms/validation-message-in-relative-body.html

* html/ValidationMessage.cpp:
(WebCore::adjustBubblePosition):
Subtract the containing block position from the host position.
(WebCore::ValidationMessage::buildBubbleTree):
Change the order of appendChild() and adjustBubblePosition() in
order to use RenderObject::containingBlock() in
adjustbubbleposition().

LayoutTests:

* fast/forms/validation-message-in-relative-body-expected.txt: Added.
* fast/forms/validation-message-in-relative-body.html: Added.
* platform/gtk/Skipped:
* platform/qt/Skipped:
* platform/win/Skipped:

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

9 years agoSource/WebKit/efl: [EFL] ewk_frame_hit_test_new enhancement
commit-queue@webkit.org [Fri, 22 Jul 2011 17:31:04 +0000 (17:31 +0000)]
Source/WebKit/efl: [EFL] ewk_frame_hit_test_new enhancement
https://bugs.webkit.org/show_bug.cgi?id=64260

Replaces structure 'flags' with enum 'context' containing more hit test
result types and adds new char* fields to Ewk_Hit_Test structure:
image_uri and media_uri.

Patch by Michal Pakula vel Rutka <m.pakula@samsung.com> on 2011-07-22
Reviewed by Antonio Gomes.

* ewk/ewk_frame.cpp:
(ewk_frame_hit_test_free):
(ewk_frame_hit_test_new):
* ewk/ewk_frame.h:

Tools: [EFL] ewk_frame_hit_test_new enchancement
https://bugs.webkit.org/show_bug.cgi?id=64260

Apply changes done in ewk_frame_hit_test_new in EWebLauncher:
Replacing Ewk_Hit_Test_Result_Context structure 'flags'
in hit test output to by enum 'context'.

Patch by Michal Pakula vel Rutka <m.pakula@samsung.com> on 2011-07-22
Reviewed by Antonio Gomes.

* EWebLauncher/main.c:
(on_key_down):

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

9 years agoFix crash in IDBRequest::abort
commit-queue@webkit.org [Fri, 22 Jul 2011 17:07:15 +0000 (17:07 +0000)]
Fix crash in IDBRequest::abort
https://bugs.webkit.org/show_bug.cgi?id=64740

Patch by David Grogan <dgrogan@chromium.org> on 2011-07-22
Reviewed by Nate Chapin.

Tested manually with the testcase in the bug.

* storage/IDBRequest.cpp:
(WebCore::IDBRequest::~IDBRequest):
(WebCore::IDBRequest::abort):

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

9 years agoReplace preprocessor statements in IDL files with Conditional attribute
paroga@webkit.org [Fri, 22 Jul 2011 15:50:35 +0000 (15:50 +0000)]
Replace preprocessor statements in IDL files with Conditional attribute
https://bugs.webkit.org/show_bug.cgi?id=64961

Reviewed by Darin Adler.

Replaced ENABLE_DATALIST, ENABLE_DIRECTORY_UPLOAD, ENABLE_INPUT_SPEECH, ENABLE_MEDIA_STATISTICS
and ENABLE_ORIENTATION_EVENTS with the corresponding Conditional attribute.

* html/HTMLBodyElement.idl:
* html/HTMLFrameSetElement.idl:
* html/HTMLInputElement.idl:
* html/HTMLMediaElement.idl:
* html/HTMLVideoElement.idl:

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

9 years ago011-07-22 Andrey Kosyakov <caseq@chromium.org>
caseq@chromium.org [Fri, 22 Jul 2011 15:38:26 +0000 (15:38 +0000)]
011-07-22  Andrey Kosyakov  <caseq@chromium.org>

        Web Inspector: [Extensions API] add webInspector.resources.onContentEdited
        https://bugs.webkit.org/show_bug.cgi?id=65024

        Reviewed by Pavel Feldman.

        * inspector/front-end/ExtensionAPI.js:
        (WebInspector.injectedExtensionAPI):
        * inspector/front-end/ExtensionServer.js:
        (WebInspector.ExtensionServer.prototype.notifyResourceContentEdited):
        * inspector/front-end/Resource.js:
        (WebInspector.Resource.prototype.addRevision):

2011-07-22  Andrey Kosyakov  <caseq@chromium.org>

        Web Inspector: [Extensions API] add webInspector.resources.onContentEdited
        https://bugs.webkit.org/show_bug.cgi?id=65024

        Reviewed Pavel Feldman.

        * inspector/extensions/extensions-api-expected.txt:
        * inspector/extensions/extensions-resources-expected.txt:
        * inspector/extensions/extensions-resources.html:

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

9 years agoWeb Inspector: fix exception when paused in internal script.
podivilov@chromium.org [Fri, 22 Jul 2011 15:29:06 +0000 (15:29 +0000)]
Web Inspector: fix exception when paused in internal script.
https://bugs.webkit.org/show_bug.cgi?id=64995

Reviewed by Yury Semikhatsky.

Source/WebCore:

Test: inspector/debugger/pause-in-internal-script.html

* inspector/front-end/DebuggerPresentationModel.js:
(WebInspector.PresenationCallFrame.prototype.sourceLine):

LayoutTests:

* http/tests/inspector/debugger-test.js:
(initialize_DebuggerTest):
* inspector/debugger/pause-in-internal-script-expected.txt: Added.
* inspector/debugger/pause-in-internal-script.html: Added.

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

9 years agoWeb Inspector: sometimes ReceiveResponse event is attached to wrong parent.
loislo@chromium.org [Fri, 22 Jul 2011 15:19:14 +0000 (15:19 +0000)]
Web Inspector: sometimes ReceiveResponse event is attached to wrong parent.
https://bugs.webkit.org/show_bug.cgi?id=65016

Reviewed by Yury Semikhatsky.

Source/WebCore:

Test: inspector/timeline/timeline-receive-response-event.html

* inspector/InspectorTimelineAgent.cpp:
(WebCore::InspectorTimelineAgent::didInstallTimer):
(WebCore::InspectorTimelineAgent::didRemoveTimer):
(WebCore::InspectorTimelineAgent::didScheduleResourceRequest):
(WebCore::InspectorTimelineAgent::didFinishLoadingResource):
(WebCore::InspectorTimelineAgent::didTimeStamp):
(WebCore::InspectorTimelineAgent::didMarkDOMContentEvent):
(WebCore::InspectorTimelineAgent::didMarkLoadEvent):
(WebCore::InspectorTimelineAgent::appendRecord):
* inspector/InspectorTimelineAgent.h:
* inspector/front-end/TimelinePanel.js:
(WebInspector.TimelinePanel.prototype._innerAddRecordToTimeline):

LayoutTests:

* http/tests/inspector/inspector-test.js:
(initialize_InspectorTest.InspectorTest.dump):
* inspector/timeline/resources/anImage.png: Added.
* inspector/timeline/resources/anotherImage.png: Added.
* inspector/timeline/timeline-receive-response-event-expected.txt: Added.
* inspector/timeline/timeline-receive-response-event.html: Added.
* platform/chromium/inspector/timeline/timeline-receive-response-event-expected.txt: Added.

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

9 years agoREGRESSION(r89535): Form reset does not repaint a file upload control.
commit-queue@webkit.org [Fri, 22 Jul 2011 13:40:59 +0000 (13:40 +0000)]
REGRESSION(r89535): Form reset does not repaint a file upload control.
https://bugs.webkit.org/show_bug.cgi?id=65008

Patch by Kentaro Hara <haraken@google.com> on 2011-07-22
Reviewed by Kent Tamura.

Source/WebCore:

This patch fixes the code so that the file upload control is repainted
in updateFromElement() if no files are selected.

Tests: fast/forms/file-input-reset.html

* rendering/RenderFileUploadControl.cpp:
(WebCore::RenderFileUploadControl::updateFromElement): Calls repaint() if no files are selected.

LayoutTests:

This patch fixes the code so that the file upload control is repainted
in updateFromElement() if no files are selected. The added test checks
if the label next to the file chooser button becomes "No file chosen"
when we press the reset button.

* fast/forms/file-input-reset-expected.html: Added.
* fast/forms/file-input-reset.html: Added.

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

9 years agoWeb Inspector: the max depth of the Timeline events' stack trace should be customizable.
loislo@chromium.org [Fri, 22 Jul 2011 13:38:02 +0000 (13:38 +0000)]
Web Inspector: the max depth of the Timeline events' stack trace should be customizable.
https://bugs.webkit.org/show_bug.cgi?id=65023

Reviewed by Yury Semikhatsky.

* inspector/Inspector.json:
* inspector/InspectorController.cpp:
(WebCore::InspectorController::startTimelineProfiler):
* inspector/InspectorTimelineAgent.cpp:
(WebCore::InspectorTimelineAgent::pushGCEventRecords):
(WebCore::InspectorTimelineAgent::restore):
(WebCore::InspectorTimelineAgent::start):
(WebCore::InspectorTimelineAgent::didInstallTimer):
(WebCore::InspectorTimelineAgent::didRemoveTimer):
(WebCore::InspectorTimelineAgent::didScheduleResourceRequest):
(WebCore::InspectorTimelineAgent::willSendResourceRequest):
(WebCore::InspectorTimelineAgent::didFinishLoadingResource):
(WebCore::InspectorTimelineAgent::didTimeStamp):
(WebCore::InspectorTimelineAgent::didMarkDOMContentEvent):
(WebCore::InspectorTimelineAgent::didMarkLoadEvent):
(WebCore::InspectorTimelineAgent::InspectorTimelineAgent):
(WebCore::InspectorTimelineAgent::pushCurrentRecord):
* inspector/InspectorTimelineAgent.h:
* inspector/TimelineRecordFactory.cpp:
(WebCore::TimelineRecordFactory::createGenericRecord):
* inspector/TimelineRecordFactory.h:
* inspector/front-end/TimelineManager.js:
(WebInspector.TimelineManager.prototype.start):

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

9 years ago[Chromium] Adjust test expectations.
jknotten@chromium.org [Fri, 22 Jul 2011 10:53:24 +0000 (10:53 +0000)]
[Chromium] Adjust test expectations.
https://bugs.webkit.org/show_bug.cgi?id=65020

Create WebKit bug for slow/timing out layout tests:
editing/execCommand/4786404-1.html and
editing/execCommand/break-out-of-empty-list-item.html

Unreviewed.

* platform/chromium/test_expectations.txt:

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

9 years agoUnreviewed. Rolled DEPS.
rniwa@webkit.org [Fri, 22 Jul 2011 09:59:07 +0000 (09:59 +0000)]
Unreviewed.  Rolled DEPS.

* DEPS:

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

9 years agoUnreviewed, rolling out r91024.
loislo@chromium.org [Fri, 22 Jul 2011 08:48:41 +0000 (08:48 +0000)]
Unreviewed, rolling out r91024.
http://trac.webkit.org/changeset/91024
https://bugs.webkit.org/show_bug.cgi?id=65017

number of problems happened with invisible elements which grab
pointer events. (Requested by loislo on #webkit).

Patch by Sheriff Bot <webkit.review.bot@gmail.com> on 2011-07-22

* inspector/front-end/inspector.css:
(.panel):
(.panel.visible):

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

9 years agoAnother Chromium rebaselines after r91493.
rniwa@webkit.org [Fri, 22 Jul 2011 08:34:20 +0000 (08:34 +0000)]
Another Chromium rebaselines after r91493.

* platform/chromium-mac-leopard/svg/W3C-SVG-1.1-SE/filters-felem-01-b-expected.png: Added.
* platform/chromium-mac-leopard/svg/W3C-SVG-1.1-SE/interact-pointer-03-t-expected.png: Removed.
* platform/chromium-mac-leopard/svg/W3C-SVG-1.1-SE/linking-uri-01-b-expected.png:
* platform/chromium-mac-leopard/svg/W3C-SVG-1.1-SE/styling-css-04-f-expected.png: Added.
* platform/chromium-mac-leopard/svg/W3C-SVG-1.1-SE/svgdom-over-01-f-expected.png:
* platform/chromium-mac-leopard/svg/W3C-SVG-1.1-SE/text-intro-02-b-expected.png:
* platform/chromium-mac-leopard/svg/W3C-SVG-1.1-SE/text-intro-02-b-expected.txt: Added.
* platform/chromium-mac-leopard/svg/W3C-SVG-1.1-SE/text-intro-05-t-expected.png:
* platform/chromium-mac-leopard/svg/W3C-SVG-1.1-SE/text-intro-05-t-expected.txt: Added.
* platform/chromium-mac-leopard/svg/W3C-SVG-1.1-SE/text-intro-09-b-expected.png:
* platform/chromium-mac-leopard/svg/W3C-SVG-1.1-SE/text-tref-03-b-expected.png: Removed.
* platform/chromium-mac-leopard/svg/W3C-SVG-1.1-SE/text-tspan-02-b-expected.png: Removed.

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

9 years agoRevert r91510 due to Chromium debug test failures.
rniwa@webkit.org [Fri, 22 Jul 2011 07:30:27 +0000 (07:30 +0000)]
Revert r91510 due to Chromium debug test failures.

* src/WebKit.cpp:
(WebKit::initialize):

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

9 years agoReviewed by Darin Adler.
jpu@apple.com [Fri, 22 Jul 2011 07:16:47 +0000 (07:16 +0000)]
Reviewed by Darin Adler.

[Mac] Need to make sure autocorrection panel is dismissed in Document::setFocusNode().
https://bugs.webkit.org/show_bug.cgi?id=64824
<rdar://problem/9624232>

* editing/Editor.cpp:
(WebCore::Editor::textFieldDidEndEditing): Dismiss autocorrection panel when current node losing focus.

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

9 years agoWindows build fix
barraclough@apple.com [Fri, 22 Jul 2011 06:55:41 +0000 (06:55 +0000)]
Windows build fix

* JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCore.def:

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

9 years agoBuild fix after r91555.
rniwa@webkit.org [Fri, 22 Jul 2011 06:28:14 +0000 (06:28 +0000)]
Build fix after r91555.

* JavaScriptCore.exp:

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

9 years agoA trivial fix for r91550.
tkent@chromium.org [Fri, 22 Jul 2011 05:35:38 +0000 (05:35 +0000)]
A trivial fix for r91550.
https://bugs.webkit.org/show_bug.cgi?id=65001

Source/WebCore:

Need to update placeholder visibility when the owner elemnent style is changed.

* html/HTMLTextFormControlElement.h: Make updatePlaceholderVisibility() public.
* rendering/RenderTextControl.cpp:
(WebCore::RenderTextControl::styleDidChange):
Call updatePlaceholderVisibility().

LayoutTests:

* platform/chromium/test_expectations.txt:

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

9 years agohttps://bugs.webkit.org/show_bug.cgi?id=19271
barraclough@apple.com [Fri, 22 Jul 2011 05:34:08 +0000 (05:34 +0000)]
https://bugs.webkit.org/show_bug.cgi?id=19271
eliminate PIC branches by changing NaN handling in JSValue::toNumber

Reviewed by Sam Weinig.

Moving the non-numeric cases out of line seems to be a consistent
win on SunSpider for me, to the order of about 0.5%.

* runtime/JSCell.h:
(JSC::JSCell::JSValue::toNumber):
    - Changed to only handle values that are already numbers, moce non-numeric cases out of line.
* runtime/JSValue.cpp:
(JSC::JSValue::toNumberSlowCase):
    - Added toNumberSlowCase, handling non-numeric cases.
* runtime/JSValue.h:
    - Add declaration of toNumberSlowCase.

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

9 years agohttps://bugs.webkit.org/show_bug.cgi?id=65002
psolanki@apple.com [Fri, 22 Jul 2011 05:27:03 +0000 (05:27 +0000)]
https://bugs.webkit.org/show_bug.cgi?id=65002
Get authentication to work with USE(CFNETWORK) on Mac

Reviewed by David Kilzer.

Instead of creating a new CFURLAuthChallengeRef, we save and reuse the same object as the
one given to us by CFNetwork.

* platform/network/mac/AuthenticationMac.mm:
(-[WebCoreAuthenticationClientAsChallengeSender setCFChallenge:]): Accessor methods for the
new CFURLAuthChallengeRef ivar.
(-[WebCoreAuthenticationClientAsChallengeSender cfChallenge]):
(WebCore::core): Create AuthenticationChallenge using the saved CFURLAuthChallengeRef.
(WebCore::mac): Use the CFURLAuthChallengeRef object in AuthenticationChallenge instead of
creating a new one.

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