WebKit-https.git
9 years agoEnable IPP for Biquad filter
commit-queue@webkit.org [Thu, 1 Mar 2012 23:59:02 +0000 (23:59 +0000)]
Enable IPP for Biquad filter
https://bugs.webkit.org/show_bug.cgi?id=77509

Patch by Xingnan Wang <xingnan.wang@intel.com> on 2012-03-01
Reviewed by Chris Rogers.

Source/WebCore:

Use IIR filter in IPP and improve ~27% performance in linux.
Changes are covered by current tests.

* platform/audio/Biquad.cpp:
(WebCore::Biquad::Biquad):
(WebCore::Biquad::~Biquad):
(WebCore):
(WebCore::Biquad::process):
(WebCore::Biquad::reset):
(WebCore::Biquad::setLowpassParams):
(WebCore::Biquad::setHighpassParams):
(WebCore::Biquad::setNormalizedCoefficients):
(WebCore::Biquad::setZeroPolePairs):
* platform/audio/Biquad.h:
(Biquad):

LayoutTests:

Adjust a code format issue.

* webaudio/resources/biquad-testing.js:
(filterData):

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

9 years agoRebaseline fast/flexbox/010.html on Leopard after removing its suppression.
adamk@chromium.org [Thu, 1 Mar 2012 23:45:29 +0000 (23:45 +0000)]
Rebaseline fast/flexbox/010.html on Leopard after removing its suppression.

Unreviewed gardening.

* platform/chromium-mac-leopard/fast/flexbox/010-expected.png: Added.
* platform/chromium-mac-snowleopard/fast/flexbox/010-expected.png: Renamed from LayoutTests/platform/chromium-mac/fast/flexbox/010-expected.png.

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

9 years agoRebaselining some old Chromium tests and removing test_expectations.
adamk@chromium.org [Thu, 1 Mar 2012 23:43:32 +0000 (23:43 +0000)]
Rebaselining some old Chromium tests and removing test_expectations.

Unreviewed gardening.

* fast/writing-mode/block-level-images-expected.txt: Renamed from LayoutTests/platform/gtk/fast/writing-mode/block-level-images-expected.txt.
* platform/chromium-linux/fast/backgrounds/background-leakage-expected.png: Added.
* platform/chromium-linux/fast/backgrounds/background-leakage-transforms-expected.png: Added.
* platform/chromium-linux/fast/multicol/float-multicol-expected.png:
* platform/chromium-linux/fast/writing-mode/block-level-images-expected.png:
* platform/chromium-linux/svg/W3C-SVG-1.1/fonts-elem-04-b-expected.png: Added.
* platform/chromium-linux/svg/W3C-SVG-1.1/fonts-elem-07-b-expected.png:
* platform/chromium-mac-leopard/fast/backgrounds/background-leakage-transforms-expected.png: Removed.
* platform/chromium-mac-leopard/svg/W3C-SVG-1.1/fonts-elem-04-b-expected.png:
* platform/chromium-mac-leopard/svg/W3C-SVG-1.1/fonts-elem-04-b-expected.txt: Removed.
* platform/chromium-mac-snowleopard/fast/multicol/float-multicol-expected.png: Renamed from LayoutTests/platform/chromium-mac/fast/multicol/float-multicol-expected.png.
* platform/chromium-mac-snowleopard/fast/writing-mode/block-level-images-expected.png: Added.
* platform/chromium-mac/fast/writing-mode/block-level-images-expected.png: Removed.
* platform/chromium-win/fast/backgrounds/background-leakage-expected.png: Added.
* platform/chromium-win/fast/backgrounds/background-leakage-expected.txt: Added.
* platform/chromium-win/fast/backgrounds/background-leakage-transforms-expected.png: Added.
* platform/chromium-win/fast/backgrounds/background-leakage-transforms-expected.txt: Added.
* platform/chromium-win/fast/multicol/float-multicol-expected.png:
* platform/chromium-win/fast/multicol/float-multicol-expected.txt:
* platform/chromium-win/fast/writing-mode/block-level-images-expected.png:
* platform/chromium-win/svg/W3C-SVG-1.1/fonts-elem-04-b-expected.txt:
* platform/chromium/test_expectations.txt:
* platform/mac/fast/writing-mode/block-level-images-expected.txt: Removed.
* platform/qt/fast/writing-mode/block-level-images-expected.txt: Removed.

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

9 years agoDecouple scrollbar painting from Scrollbar object
jamesr@google.com [Thu, 1 Mar 2012 23:36:21 +0000 (23:36 +0000)]
Decouple scrollbar painting from Scrollbar object
https://bugs.webkit.org/show_bug.cgi?id=78028

Patch by Peter Kotwicz <pkotwicz@google.com> on 2012-03-01
Reviewed by James Robinson.

Added interface ScrollbarThemeClient which Scrollbar inherits from.
This allows painting via ScrollbarTheme with a proxy to a Scrollbar
object.

* GNUmakefile.list.am:
* Target.pri:
* WebCore.gypi:
* WebCore.vcproj/WebCore.vcproj:
* WebCore.xcodeproj/project.pbxproj:
* platform/Scrollbar.cpp:
(WebCore::Scrollbar::scrollbarOverlayStyle):
(WebCore):
(WebCore::Scrollbar::getTickmarks):
(WebCore::Scrollbar::isScrollableAreaActive):
(WebCore::Scrollbar::isScrollViewScrollbar):
(WebCore::Scrollbar::setFrameRect):
* platform/Scrollbar.h:
(Scrollbar):
(WebCore::Scrollbar::x):
(WebCore::Scrollbar::y):
(WebCore::Scrollbar::width):
(WebCore::Scrollbar::height):
(WebCore::Scrollbar::size):
(WebCore::Scrollbar::location):
(WebCore::Scrollbar::parent):
(WebCore::Scrollbar::root):
(WebCore::Scrollbar::frameRect):
(WebCore::Scrollbar::invalidate):
(WebCore::Scrollbar::convertFromContainingWindow):
(WebCore::Scrollbar::isCustomScrollbar):
(WebCore::Scrollbar::orientation):
(WebCore::Scrollbar::value):
(WebCore::Scrollbar::currentPos):
(WebCore::Scrollbar::visibleSize):
(WebCore::Scrollbar::totalSize):
(WebCore::Scrollbar::maximum):
(WebCore::Scrollbar::controlSize):
(WebCore::Scrollbar::lineStep):
(WebCore::Scrollbar::pageStep):
(WebCore::Scrollbar::pressedPart):
(WebCore::Scrollbar::hoveredPart):
(WebCore::Scrollbar::styleChanged):
(WebCore::Scrollbar::enabled):
* platform/ScrollbarTheme.h:
(WebCore):
(WebCore::ScrollbarTheme::updateEnabledState):
(WebCore::ScrollbarTheme::paint):
(WebCore::ScrollbarTheme::hitTest):
(WebCore::ScrollbarTheme::updateScrollbarOverlayStyle):
(WebCore::ScrollbarTheme::invalidateParts):
(WebCore::ScrollbarTheme::invalidatePart):
(WebCore::ScrollbarTheme::shouldCenterOnThumb):
(WebCore::ScrollbarTheme::shouldSnapBackToDragOrigin):
(WebCore::ScrollbarTheme::shouldDragDocumentInsteadOfThumb):
(WebCore::ScrollbarTheme::thumbPosition):
(WebCore::ScrollbarTheme::thumbLength):
(WebCore::ScrollbarTheme::trackPosition):
(WebCore::ScrollbarTheme::trackLength):
(WebCore::ScrollbarTheme::registerScrollbar):
(WebCore::ScrollbarTheme::unregisterScrollbar):
* platform/ScrollbarThemeClient.h: Added.
(WebCore):
(ScrollbarThemeClient):
(WebCore::ScrollbarThemeClient::~ScrollbarThemeClient):
* platform/ScrollbarThemeComposite.cpp:
(WebCore::ScrollbarThemeComposite::paint):
(WebCore::ScrollbarThemeComposite::hitTest):
(WebCore::ScrollbarThemeComposite::invalidatePart):
(WebCore::ScrollbarThemeComposite::splitTrack):
(WebCore::usedTotalSize):
(WebCore::ScrollbarThemeComposite::thumbPosition):
(WebCore::ScrollbarThemeComposite::thumbLength):
(WebCore::ScrollbarThemeComposite::minimumThumbLength):
(WebCore::ScrollbarThemeComposite::trackPosition):
(WebCore::ScrollbarThemeComposite::trackLength):
* platform/ScrollbarThemeComposite.h:
(ScrollbarThemeComposite):
(WebCore::ScrollbarThemeComposite::paintScrollbarBackground):
(WebCore::ScrollbarThemeComposite::paintTrackBackground):
(WebCore::ScrollbarThemeComposite::paintTrackPiece):
(WebCore::ScrollbarThemeComposite::paintButton):
(WebCore::ScrollbarThemeComposite::paintThumb):
(WebCore::ScrollbarThemeComposite::paintTickmarks):
(WebCore::ScrollbarThemeComposite::constrainTrackRectToTrackPieces):
* platform/chromium/ScrollbarThemeChromium.cpp:
(WebCore::ScrollbarThemeChromium::hasThumb):
(WebCore::ScrollbarThemeChromium::backButtonRect):
(WebCore::ScrollbarThemeChromium::forwardButtonRect):
(WebCore::ScrollbarThemeChromium::trackRect):
(WebCore::ScrollbarThemeChromium::paintTrackBackground):
(WebCore::ScrollbarThemeChromium::paintTickmarks):
* platform/chromium/ScrollbarThemeChromium.h:
(WebCore::ScrollbarThemeChromium::hasButtons):
(ScrollbarThemeChromium):
* platform/chromium/ScrollbarThemeChromiumAndroid.cpp:
(WebCore::ScrollbarThemeChromiumAndroid::paintScrollbarBackground):
(WebCore::ScrollbarThemeChromiumAndroid::shouldCenterOnThumb):
(WebCore::ScrollbarThemeChromiumAndroid::buttonSize):
(WebCore::ScrollbarThemeChromiumAndroid::minimumThumbLength):
* platform/chromium/ScrollbarThemeChromiumAndroid.h:
(ScrollbarThemeChromiumAndroid):
* platform/chromium/ScrollbarThemeChromiumLinux.cpp:
(WebCore::ScrollbarThemeChromiumLinux::paintTrackPiece):
(WebCore::ScrollbarThemeChromiumLinux::paintButton):
(WebCore::ScrollbarThemeChromiumLinux::paintThumb):
(WebCore::ScrollbarThemeChromiumLinux::shouldCenterOnThumb):
(WebCore::ScrollbarThemeChromiumLinux::buttonSize):
(WebCore::ScrollbarThemeChromiumLinux::minimumThumbLength):
* platform/chromium/ScrollbarThemeChromiumLinux.h:
(ScrollbarThemeChromiumLinux):
* platform/chromium/ScrollbarThemeChromiumMac.h:
(ScrollbarThemeChromiumMac):
* platform/chromium/ScrollbarThemeChromiumMac.mm:
(WebCore::scrollbarStateToThemeState):
(WebCore::ScrollbarThemeChromiumMac::paint):
(WebCore::ScrollbarThemeChromiumMac::paintGivenTickmarks):
* platform/chromium/ScrollbarThemeChromiumWin.cpp:
(WebCore::ScrollbarThemeChromiumWin::shouldSnapBackToDragOrigin):
(WebCore::ScrollbarThemeChromiumWin::paintTrackPiece):
(WebCore::ScrollbarThemeChromiumWin::paintButton):
(WebCore::ScrollbarThemeChromiumWin::paintThumb):
(WebCore::ScrollbarThemeChromiumWin::getThemeState):
(WebCore::ScrollbarThemeChromiumWin::getThemeArrowState):
(WebCore::ScrollbarThemeChromiumWin::getClassicThemeState):
(WebCore::ScrollbarThemeChromiumWin::shouldCenterOnThumb):
(WebCore::ScrollbarThemeChromiumWin::buttonSize):
* platform/chromium/ScrollbarThemeChromiumWin.h:
(ScrollbarThemeChromiumWin):
* platform/efl/ScrollbarThemeEfl.cpp:
(WebCore::ScrollbarThemeEfl::registerScrollbar):
(WebCore::ScrollbarThemeEfl::unregisterScrollbar):
* platform/efl/ScrollbarThemeEfl.h:
(ScrollbarThemeEfl):
* platform/gtk/ScrollbarThemeGtk.cpp:
(WebCore):
(WebCore::ScrollbarThemeGtk::registerScrollbar):
(WebCore::ScrollbarThemeGtk::unregisterScrollbar):
(WebCore::ScrollbarThemeGtk::updateScrollbarsFrameThickness):
(WebCore::ScrollbarThemeGtk::hasThumb):
(WebCore::ScrollbarThemeGtk::backButtonRect):
(WebCore::ScrollbarThemeGtk::forwardButtonRect):
(WebCore::ScrollbarThemeGtk::trackRect):
(WebCore::ScrollbarThemeGtk::thumbRect):
(WebCore::ScrollbarThemeGtk::paint):
(WebCore::ScrollbarThemeGtk::shouldCenterOnThumb):
(WebCore::ScrollbarThemeGtk::buttonSize):
(WebCore::ScrollbarThemeGtk::minimumThumbLength):
* platform/gtk/ScrollbarThemeGtk.h:
(WebCore::ScrollbarThemeGtk::hasButtons):
(ScrollbarThemeGtk):
* platform/gtk/ScrollbarThemeGtk2.cpp:
(WebCore::getWidgetForScrollbar):
(WebCore::ScrollbarThemeGtk::paintTrackBackground):
(WebCore::ScrollbarThemeGtk::paintScrollbarBackground):
(WebCore::ScrollbarThemeGtk::paintThumb):
(WebCore::ScrollbarThemeGtk::paintButton):
* platform/gtk/ScrollbarThemeGtk3.cpp:
(WebCore::ScrollbarThemeGtk::paintTrackBackground):
(WebCore::ScrollbarThemeGtk::paintScrollbarBackground):
(WebCore::ScrollbarThemeGtk::paintThumb):
(WebCore::ScrollbarThemeGtk::paintButton):
* platform/mac/ScrollbarThemeMac.h:
(ScrollbarThemeMac):
* platform/mac/ScrollbarThemeMac.mm:
(WebCore):
(WebCore::ScrollbarThemeMac::registerScrollbar):
(WebCore::ScrollbarThemeMac::unregisterScrollbar):
(WebCore::ScrollbarThemeMac::setNewPainterForScrollbar):
(WebCore::ScrollbarThemeMac::painterForScrollbar):
(WebCore::ScrollbarThemeMac::updateScrollbarOverlayStyle):
(WebCore::ScrollbarThemeMac::hasButtons):
(WebCore::ScrollbarThemeMac::hasThumb):
(WebCore::ScrollbarThemeMac::backButtonRect):
(WebCore::ScrollbarThemeMac::forwardButtonRect):
(WebCore::ScrollbarThemeMac::trackRect):
(WebCore::ScrollbarThemeMac::minimumThumbLength):
(WebCore::ScrollbarThemeMac::shouldCenterOnThumb):
(WebCore::ScrollbarThemeMac::shouldDragDocumentInsteadOfThumb):
(WebCore::ScrollbarThemeMac::updateEnabledState):
(WebCore::ScrollbarThemeMac::paint):
* platform/mock/ScrollbarThemeMock.cpp:
(WebCore::ScrollbarThemeMock::trackRect):
(WebCore::ScrollbarThemeMock::paintTrackBackground):
(WebCore::ScrollbarThemeMock::paintThumb):
* platform/mock/ScrollbarThemeMock.h:
(WebCore::ScrollbarThemeMock::hasButtons):
(WebCore::ScrollbarThemeMock::hasThumb):
(WebCore::ScrollbarThemeMock::backButtonRect):
(WebCore::ScrollbarThemeMock::forwardButtonRect):
(ScrollbarThemeMock):
* platform/qt/ScrollbarThemeQt.cpp:
(WebCore::styleOptionSlider):
(WebCore::ScrollbarThemeQt::paint):
(WebCore::ScrollbarThemeQt::hitTest):
(WebCore::ScrollbarThemeQt::shouldCenterOnThumb):
(WebCore::ScrollbarThemeQt::invalidatePart):
(WebCore::ScrollbarThemeQt::thumbPosition):
(WebCore::ScrollbarThemeQt::thumbLength):
(WebCore::ScrollbarThemeQt::trackPosition):
(WebCore::ScrollbarThemeQt::trackLength):
* platform/qt/ScrollbarThemeQt.h:
(ScrollbarThemeQt):
* platform/win/ScrollbarThemeSafari.cpp:
(WebCore::ScrollbarThemeSafari::hasButtons):
(WebCore::ScrollbarThemeSafari::hasThumb):
(WebCore::ScrollbarThemeSafari::backButtonRect):
(WebCore::ScrollbarThemeSafari::forwardButtonRect):
(WebCore::ScrollbarThemeSafari::trackRect):
(WebCore::ScrollbarThemeSafari::minimumThumbLength):
(WebCore::ScrollbarThemeSafari::shouldCenterOnThumb):
(WebCore::ScrollbarThemeSafari::paintTrackBackground):
(WebCore::ScrollbarThemeSafari::paintButton):
(WebCore::ScrollbarThemeSafari::paintThumb):
* platform/win/ScrollbarThemeSafari.h:
(ScrollbarThemeSafari):
* platform/win/ScrollbarThemeWin.cpp:
(WebCore::ScrollbarThemeWin::hasThumb):
(WebCore::ScrollbarThemeWin::backButtonRect):
(WebCore::ScrollbarThemeWin::forwardButtonRect):
(WebCore::ScrollbarThemeWin::trackRect):
(WebCore::ScrollbarThemeWin::shouldCenterOnThumb):
(WebCore::ScrollbarThemeWin::shouldSnapBackToDragOrigin):
(WebCore::ScrollbarThemeWin::paintTrackBackground):
(WebCore::ScrollbarThemeWin::paintTrackPiece):
(WebCore::ScrollbarThemeWin::paintButton):
(WebCore::paintGripper):
(WebCore::ScrollbarThemeWin::paintThumb):
* platform/win/ScrollbarThemeWin.h:
(WebCore::ScrollbarThemeWin::hasButtons):
(ScrollbarThemeWin):
* platform/wx/ScrollbarThemeWx.cpp:
(WebCore::ScrollbarThemeWx::hasThumb):
(WebCore::ScrollbarThemeWx::minimumThumbLength):
(WebCore::ScrollbarThemeWx::buttonSize):
(WebCore::ScrollbarThemeWx::splitTrack):
(WebCore::ScrollbarThemeWx::backButtonRect):
(WebCore::ScrollbarThemeWx::forwardButtonRect):
(WebCore::ScrollbarThemeWx::trackRect):
(WebCore::ScrollbarThemeWx::paint):
* platform/wx/ScrollbarThemeWx.h:
(ScrollbarThemeWx):
(WebCore::ScrollbarThemeWx::hasButtons):
* rendering/RenderScrollbar.h:
(WebCore::toRenderScrollbar):
* rendering/RenderScrollbarTheme.cpp:
(WebCore::RenderScrollbarTheme::buttonSizesAlongTrackAxis):
(WebCore::RenderScrollbarTheme::hasButtons):
(WebCore::RenderScrollbarTheme::hasThumb):
(WebCore::RenderScrollbarTheme::minimumThumbLength):
(WebCore::RenderScrollbarTheme::backButtonRect):
(WebCore::RenderScrollbarTheme::forwardButtonRect):
(WebCore::RenderScrollbarTheme::trackRect):
(WebCore::RenderScrollbarTheme::constrainTrackRectToTrackPieces):
(WebCore::RenderScrollbarTheme::paintScrollbarBackground):
(WebCore::RenderScrollbarTheme::paintTrackBackground):
(WebCore::RenderScrollbarTheme::paintTrackPiece):
(WebCore::RenderScrollbarTheme::paintButton):
(WebCore::RenderScrollbarTheme::paintThumb):
* rendering/RenderScrollbarTheme.h:
(WebCore::RenderScrollbarTheme::shouldCenterOnThumb):
(WebCore::RenderScrollbarTheme::registerScrollbar):
(WebCore::RenderScrollbarTheme::unregisterScrollbar):
(RenderScrollbarTheme):

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

9 years agoImplement CSSPropertyImageRendering in CSSStyleApplyProperty.
macpherson@chromium.org [Thu, 1 Mar 2012 23:33:09 +0000 (23:33 +0000)]
Implement CSSPropertyImageRendering in CSSStyleApplyProperty.
https://bugs.webkit.org/show_bug.cgi?id=79855

Reviewed by Eric Seidel.

No new tests / refactoring only.

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

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

9 years agochromium: start running virtual gpu tests
dpranke@chromium.org [Thu, 1 Mar 2012 23:28:35 +0000 (23:28 +0000)]
chromium: start running virtual gpu tests
https://bugs.webkit.org/show_bug.cgi?id=80050

Unreviewed, expectations change.

This patch un-SKIPs the platform/chromium/virtual/gpu tests
and copies their expectations from the GPU and generic
expectations for fast/canvas and canvas/philip. I
will re-sort the expectations in subsequent patches so
that the virtual expectations are next to the action ones,
for easier maintenance.

* platform/chromium/test_expectations.txt:

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

9 years agoMark fast/workers/stress-js-execution.html as flakily crashy on cr-win.
adamk@chromium.org [Thu, 1 Mar 2012 23:23:54 +0000 (23:23 +0000)]
Mark fast/workers/stress-js-execution.html as flakily crashy on cr-win.

Unreviewed gardening.

* platform/chromium/test_expectations.txt:

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

9 years agoRoll chromium DEPS to 124511
dpranke@chromium.org [Thu, 1 Mar 2012 23:21:48 +0000 (23:21 +0000)]
Roll chromium DEPS to 124511

Unreviewed, DEPS change.

* DEPS:

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

9 years ago[chromium] Partial texture updates not happening with accelerated painting path
alokp@chromium.org [Thu, 1 Mar 2012 23:17:12 +0000 (23:17 +0000)]
[chromium] Partial texture updates not happening with accelerated painting path
https://bugs.webkit.org/show_bug.cgi?id=80040

Reviewed by James Robinson.

The order of y-flip and clip-rect was opposite of what it should be.
The clip rect was not properly transformed to account for y-flip and hence clipping everything.

* platform/graphics/chromium/FrameBufferSkPictureCanvasLayerTextureUpdater.cpp:
(WebCore::FrameBufferSkPictureCanvasLayerTextureUpdater::updateTextureRect):

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

9 years agoRemove outdated (mostly mac) test suppressions.
adamk@chromium.org [Thu, 1 Mar 2012 23:16:54 +0000 (23:16 +0000)]
Remove outdated (mostly mac) test suppressions.

Unreviewed gardening.

* platform/chromium/test_expectations.txt:

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

9 years ago FileReader read speed is way too low
ap@apple.com [Thu, 1 Mar 2012 22:50:07 +0000 (22:50 +0000)]
    FileReader read speed is way too low
        https://bugs.webkit.org/show_bug.cgi?id=77272

        Reviewed by Oliver Hunt.

        This brings performance to reasonable range, but certainly doesn't exhaust improvement opportunities.

        * platform/network/BlobResourceHandle.cpp: Use a more appropriate block size. Performing
        cross-thread messaging for every 1024 bytes is slow.

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

9 years agoMark svg/W3C-SVG-1.1/animate-elem-32-t.svg as debug/crash after r109342.
adamk@chromium.org [Thu, 1 Mar 2012 22:48:38 +0000 (22:48 +0000)]
Mark svg/W3C-SVG-1.1/animate-elem-32-t.svg as debug/crash after r109342.

Unreviewed gardening.

* platform/chromium/test_expectations.txt:

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

9 years agoScrollView::setFrameRect() calls contentsResized() even when the frame size is unchanged
mitz@apple.com [Thu, 1 Mar 2012 22:42:44 +0000 (22:42 +0000)]
ScrollView::setFrameRect() calls contentsResized() even when the frame size is unchanged
https://bugs.webkit.org/show_bug.cgi?id=80047

Reviewed by Anders Carlsson.

* platform/ScrollView.cpp:
(WebCore::ScrollView::setFrameRect): Added a check that the new frame size differs from the
old one before calling contentsResized().

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

9 years agoAutocomplete attribute should apply to textarea's.
commit-queue@webkit.org [Thu, 1 Mar 2012 22:41:56 +0000 (22:41 +0000)]
Autocomplete attribute should apply to textarea's.
https://bugs.webkit.org/show_bug.cgi?id=79929

Patch by Mike Fenton <mifenton@rim.com> on 2012-03-01
Reviewed by Antonio Gomes.

Add local static Qualified name for autocorrect attribute.

* WebKitSupport/DOMSupport.cpp:
(BlackBerry::WebKit::DOMSupport::elementSupportsAutocorrect):

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

9 years agonrwt: test_isfile, test_isdir, and test_exists don't work for virtual tests
dpranke@chromium.org [Thu, 1 Mar 2012 22:41:33 +0000 (22:41 +0000)]
nrwt: test_isfile, test_isdir, and test_exists don't work for virtual tests
https://bugs.webkit.org/show_bug.cgi?id=80048

Reviewed by Adam Barth.

* Scripts/webkitpy/layout_tests/port/base.py:
(Port.test_isfile):
(Port.test_isdir):
(Port):
(Port.test_exists):
* Scripts/webkitpy/layout_tests/port/base_unittest.py:
(PortTest.test_test_exists):
(PortTest):
(PortTest.test_test_isfile):
(PortTest.test_test_isdir):
* Scripts/webkitpy/layout_tests/port/test.py:
(TestPort.virtual_test_suites):
* Scripts/webkitpy/layout_tests/run_webkit_tests_integrationtest.py:
(MainTest.test_virtual):

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

9 years ago[chromium] Move pageScaleDirty logic from LayerChromium to GraphicsLayerChromium
commit-queue@webkit.org [Thu, 1 Mar 2012 22:24:52 +0000 (22:24 +0000)]
[chromium] Move pageScaleDirty logic from LayerChromium to GraphicsLayerChromium
https://bugs.webkit.org/show_bug.cgi?id=79714

Patch by James Robinson <jamesr@chromium.org> on 2012-03-01
Reviewed by Adrienne Walker.

When the page scale changes on a composited layer we need to invalidate all of the contents on the layer in
order to repaint them at the new scale. The sequence of calls we get make this a bit tricky, since we first
receive a page scale changed notification and then receive the new layer bounds. The solution is to defer the
invalidation until we have the new layer bounds, which landed in r99774.

This moves that logic from LayerChromium into GraphicsLayerChromium since IMO this is pretty particular to the
way WebCore is passing us invalidations and not something fundamental to the compositor.

* platform/graphics/chromium/GraphicsLayerChromium.cpp:
(WebCore::GraphicsLayerChromium::GraphicsLayerChromium):
(WebCore::GraphicsLayerChromium::setSize):
(WebCore::GraphicsLayerChromium::deviceOrPageScaleFactorChanged):
* platform/graphics/chromium/GraphicsLayerChromium.h:
* platform/graphics/chromium/LayerChromium.cpp:
(WebCore::LayerChromium::LayerChromium):
(WebCore::LayerChromium::setBounds):
* platform/graphics/chromium/LayerChromium.h:
(LayerChromium):

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

9 years agoRemove lots of bogus flaky test suppressions, mark some others
adamk@chromium.org [Thu, 1 Mar 2012 22:07:28 +0000 (22:07 +0000)]
Remove lots of bogus flaky test suppressions, mark some others
as always failing and some others for rebaselining.

Unreviewed gardening.

* platform/chromium/test_expectations.txt:

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

9 years agoPerf-o-matic: generate dashboard images for 30, 90, and 365 days
rniwa@webkit.org [Thu, 1 Mar 2012 21:55:49 +0000 (21:55 +0000)]
Perf-o-matic: generate dashboard images for 30, 90, and 365 days
https://bugs.webkit.org/show_bug.cgi?id=80016

Reviewed by Eric Seidel.

Add the ability to generate graphs for 30, 90, and 365 day graphs but only occasionally
according to the heuristics in DashboardImage.needs_update.

Also fix a bug in Runs.chart_params that y-axis grid was set to an incorrect value.

* Websites/webkit-perf.appspot.com/controller.py:
(schedule_runs_update):
(RunsChartHandler.post):
* Websites/webkit-perf.appspot.com/json_generators.py:
(Runs.chart_params):
* Websites/webkit-perf.appspot.com/json_generators_unittest.py:
(RunsTest.test_chart_params_with_value):
* Websites/webkit-perf.appspot.com/models.py:
(DashboardImage):
(DashboardImage.needs_update):
* Websites/webkit-perf.appspot.com/models_unittest.py:
(HelperTests._assert_there_is_exactly_one_id_holder_and_matches):
(HelperTests.test_create_in_transaction_with_numeric_id_holder.execute):
(HelperTests.test_create_in_transaction_with_numeric_id_holder):
(HelperTests.test_failing_in_create_in_transaction_with_numeric_id_holder):
(HelperTests.test_raising_in_create_in_transaction_with_numeric_id_holder):
(HelperTests.test_delete_model_with_numeric_id_holder.execute):
(HelperTests.test_delete_model_with_numeric_id_holder):
(HelperTests.test_model_from_numeric_id.execute):
(HelperTests):
(HelperTests.test_model_from_numeric_id):
(BranchTests.test_create_if_possible):
(PlatformTests.test_create_if_possible):
(BuilderTests.test_create):
(BuilderTests.test_update_password):
(BuilderTests.test_hashed_password):
(BuilderTests.test_authenticate):
(_create_some_builder):
(_create_build):
(BuildTests.test_get_or_insert_from_log):
(TestModelTests.test_update_or_insert):
(TestModelTests.test_update_or_insert_to_update):
(TestModelTests.test_merge):
(TestResultTests.test_get_or_insert_value):
(TestResultTests.test_get_or_insert_stat_value):
(TestResultTests.test_replace_to_change_test_name):
(TestResultTests.test_replace_to_change_test_name_with_stat_value):
(TestResultTests.test_replace_to_change_test_name_overrides_conflicting_result):
(ReportLogTests._create_log_with_payload):
(ReportLogTests.test_builder):
(ReportLogTests.test_branch):
(ReportLogTests.test_platform):
(PersistentCacheTests._assert_persistent_cache):
(PersistentCacheTests.test_set):
(PersistentCacheTests.test_get):
(DashboardImageTests):
(DashboardImageTests.test_needs_update):

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

9 years ago:empty still applies to elements made non-empty via page dynamics.
commit-queue@webkit.org [Thu, 1 Mar 2012 21:53:23 +0000 (21:53 +0000)]
:empty still applies to elements made non-empty via page dynamics.
https://bugs.webkit.org/show_bug.cgi?id=79734

Check for :empty style change should be made even if the RenderStyle for the element is NULL
as changes to the element's children can trigger a change in :empty state of the parent element.

Patch by Joe Thomas <joethomas@motorola.com> on 2012-03-01
Reviewed by Antti Koivisto.

Source/WebCore:

Test: fast/selectors/empty-element-made-non-empty.html

* dom/Element.cpp:
(WebCore::checkForSiblingStyleChanges):

LayoutTests:

* fast/selectors/empty-element-made-non-empty-expected.txt: Added.
* fast/selectors/empty-element-made-non-empty.html: Added.

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

9 years ago[Qt][WK2] Make the interaction with the Flickable work on the N9
abecsi@webkit.org [Thu, 1 Mar 2012 21:51:26 +0000 (21:51 +0000)]
[Qt][WK2] Make the interaction with the Flickable work on the N9
https://bugs.webkit.org/show_bug.cgi?id=80029

Reviewed by Simon Hausmann.

Because the WebView item accepts all touch events it receives and sends
them to the web process before propagating them to the gesture recognizers,
which is correct behaviour, we can not rely on the touch->mouse conversion
of Qt5 when controlling Flickable. Hence we need to convert the received
touch events to mouse events in the QtFlickProvider.

* UIProcess/qt/QtFlickProvider.cpp:
(QtFlickProvider::handleTouchFlickEvent):
Do the touch to mouse event conversion for the Flickable.
* UIProcess/qt/QtPanGestureRecognizer.cpp:
(WebKit::QtPanGestureRecognizer::recognize):
A touch begin event should cancel the previous pan gesture
and stop the ongoing flick animation.

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

9 years ago[chromium] Move context lost control code from CCSingleThreadProxy to CCLayerTreeHost
nduca@chromium.org [Thu, 1 Mar 2012 21:42:45 +0000 (21:42 +0000)]
[chromium] Move context lost control code from CCSingleThreadProxy to CCLayerTreeHost
https://bugs.webkit.org/show_bug.cgi?id=79964

Reviewed by James Robinson.

Source/WebCore:

* platform/graphics/chromium/cc/CCLayerTreeHost.cpp:
(WebCore::CCLayerTreeHost::CCLayerTreeHost):
(WebCore::CCLayerTreeHost::initializeLayerRenderer):
(WebCore::CCLayerTreeHost::recreateContext):
(WebCore::CCLayerTreeHost::createContext):
(WebCore::CCLayerTreeHost::didLoseContext):
(WebCore::CCLayerTreeHost::compositeAndReadback):
(WebCore::CCLayerTreeHost::loseContext):
(WebCore::CCLayerTreeHost::updateLayers):
* platform/graphics/chromium/cc/CCLayerTreeHost.h:
(CCLayerTreeHostClient):
(CCLayerTreeHost):
* platform/graphics/chromium/cc/CCProxy.h:
(CCProxy):
* platform/graphics/chromium/cc/CCSingleThreadProxy.cpp:
(WebCore::CCSingleThreadProxy::CCSingleThreadProxy):
(WebCore::CCSingleThreadProxy::compositeAndReadback):
(WebCore::CCSingleThreadProxy::initializeContext):
(WebCore::CCSingleThreadProxy::recreateContext):
(WebCore):
(WebCore::CCSingleThreadProxy::loseContext):
(WebCore::CCSingleThreadProxy::compositeImmediately):
(WebCore::CCSingleThreadProxy::doComposite):
* platform/graphics/chromium/cc/CCSingleThreadProxy.h:
(CCSingleThreadProxy):
* platform/graphics/chromium/cc/CCThreadProxy.cpp:
(WebCore::CCThreadProxy::initializeContext):
(WebCore::CCThreadProxy::recreateContext):
(WebCore):
(WebCore::CCThreadProxy::loseContext):
* platform/graphics/chromium/cc/CCThreadProxy.h:
(CCThreadProxy):

Source/WebKit/chromium:

* src/WebLayerTreeView.cpp:
(WebKit::WebLayerTreeView::loseCompositorContext):
* src/WebLayerTreeViewImpl.cpp:
(WebKit::WebLayerTreeViewImpl::createContext):
(WebKit::WebLayerTreeViewImpl::didRecreateContext):
* src/WebLayerTreeViewImpl.h:
(WebLayerTreeViewImpl):
* tests/CCLayerTreeHostTest.cpp:
(WTF::MockLayerTreeHostClient::createContext):
(WTF::MockLayerTreeHostClient::didRecreateContext):
* tests/FakeCCLayerTreeHostClient.h:
(WebCore::FakeCCLayerTreeHostClient::createContext):
(WebCore::FakeCCLayerTreeHostClient::didRecreateContext):

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

9 years agoVersioning.
lforschler@apple.com [Thu, 1 Mar 2012 21:35:24 +0000 (21:35 +0000)]
Versioning.

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

9 years agoPrevent layout root to remain set on renderers getting destroyed.
inferno@chromium.org [Thu, 1 Mar 2012 21:27:36 +0000 (21:27 +0000)]
Prevent layout root to remain set on renderers getting destroyed.
https://bugs.webkit.org/show_bug.cgi?id=79953

Reviewed by Eric Seidel.

Implement Julien Chaffraix's idea.

* page/FrameView.h:
(WebCore::FrameView::clearLayoutRoot): helper to clear layout root.
* rendering/RenderObject.cpp:
(WebCore::clearLayoutRootIfNeeded): if we know we are going
away and we are the view's layout root, then we need to reset the layout
root to prevent being used.
(WebCore):
(WebCore::RenderObject::willBeDestroyed): call clearLayoutRootIfNeeded at end.

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

9 years agoAssertion failure in pageContainsAnyHorizontalScrollbars() (scrollableArea->isOnActiv...
andersca@apple.com [Thu, 1 Mar 2012 21:26:50 +0000 (21:26 +0000)]
Assertion failure in pageContainsAnyHorizontalScrollbars() (scrollableArea->isOnActivePage()) when leaving pages with embedded PDFs
https://bugs.webkit.org/show_bug.cgi?id=80044
<rdar://problem/10919940>

Reviewed by Brady Eidson.

Remove the code that would add and remove wheel event handlers since that's not what we want to track.
Instead, dynamically add and remove the view as its scrollbars come and go.

* WebProcess/Plugins/PDF/BuiltInPDFView.cpp:
(WebKit::BuiltInPDFView::updateScrollbars):
(WebKit::BuiltInPDFView::initialize):
* WebProcess/Plugins/PDF/BuiltInPDFView.h:
(BuiltInPDFView):

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

9 years ago[DRT] Remove all PlainTextController usages in existing tests by adding internal API
commit-queue@webkit.org [Thu, 1 Mar 2012 20:55:53 +0000 (20:55 +0000)]
[DRT] Remove all PlainTextController usages in existing tests by adding internal API
https://bugs.webkit.org/show_bug.cgi?id=78570

Patch by Kangil Han <kangil.han@samsung.com> on 2012-03-01
Reviewed by Hajime Morita.

This patch will remove all PlainTextController usages
in existing DRT tests by adding internal API to WebCore/testing/Internals

.:

* Source/autotools/symbols.filter:

Source/WebCore:

Changed editing/text-iterator/script-tests/basic-iteration.js to use internals.rangeAsText

* testing/Internals.cpp:
(WebCore::Internals::rangeAsText):
(WebCore):
* testing/Internals.h:
(Internals):
* testing/Internals.idl:

Source/WebKit2:

* win/WebKit2.def:
* win/WebKit2CFLite.def:

LayoutTests:

* editing/text-iterator/basic-iteration-expected.txt:
* editing/text-iterator/script-tests/basic-iteration.js:

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

9 years agoRebaseline to remove quotes around font name after r109382.
adamk@chromium.org [Thu, 1 Mar 2012 20:43:15 +0000 (20:43 +0000)]
Rebaseline to remove quotes around font name after r109382.

Unreviewed gardening.

* editing/inserting/5994480-2-expected.txt:

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

9 years ago[GTK] Avoid building any parts of WebKitTestRunner when WK2 is disabled
commit-queue@webkit.org [Thu, 1 Mar 2012 20:37:52 +0000 (20:37 +0000)]
[GTK] Avoid building any parts of WebKitTestRunner when WK2 is disabled
https://bugs.webkit.org/show_bug.cgi?id=80031

Patch by Kalev Lember <kalevlember@gmail.com> on 2012-03-01
Reviewed by Gustavo Noronha Silva.

Only build the libTestRunnerInjectedBundle.la convenience library when
ENABLE_WEBKIT2 is defined.

* WebKitTestRunner/GNUmakefile.am:

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

9 years agoRemove expectations for no-longer-flaky tests on Snow Leopard.
adamk@chromium.org [Thu, 1 Mar 2012 20:35:38 +0000 (20:35 +0000)]
Remove expectations for no-longer-flaky tests on Snow Leopard.
https://bugs.webkit.org/show_bug.cgi?id=54322

Unreviewed gardening.

* platform/chromium/test_expectations.txt:

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

9 years agoUnreviewed, second attempt to fix GTK NRWT after r109242.
philn@webkit.org [Thu, 1 Mar 2012 20:32:55 +0000 (20:32 +0000)]
Unreviewed, second attempt to fix GTK NRWT after r109242.

* Scripts/webkitpy/layout_tests/port/gtk.py:
(GtkDriver._start):

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

9 years agoDOMWindow shouldn't have any INDEXED_DATABASE ifdefs
abarth@webkit.org [Thu, 1 Mar 2012 20:29:55 +0000 (20:29 +0000)]
DOMWindow shouldn't have any INDEXED_DATABASE ifdefs
https://bugs.webkit.org/show_bug.cgi?id=80013

Reviewed by Kentaro Hara.

Before this patch, DOMWindow still knew about IDB because of the
database factory.  This patch moves the factory to
DOMWindowIndexedDatabase.

* Modules/indexeddb/DOMWindowIndexedDatabase.cpp:
(WebCore::DOMWindowIndexedDatabase::DOMWindowIndexedDatabase):
(WebCore::DOMWindowIndexedDatabase::from):
(WebCore):
(WebCore::DOMWindowIndexedDatabase::disconnectFrame):
(WebCore::DOMWindowIndexedDatabase::webkitIndexedDB):
* Modules/indexeddb/DOMWindowIndexedDatabase.h:
(DOMWindowIndexedDatabase):
* page/DOMWindow.cpp:
(WebCore::DOMWindow::~DOMWindow):
(WebCore::DOMWindow::clear):
(WebCore):
* page/DOMWindow.h:
(DOMWindow):

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

9 years agoGlitchy scrolling on pages where the scroll layer needs to be updated on the main...
andersca@apple.com [Thu, 1 Mar 2012 20:04:09 +0000 (20:04 +0000)]
Glitchy scrolling on pages where the scroll layer needs to be updated on the main thread
https://bugs.webkit.org/show_bug.cgi?id=80038
<rdar://problem/10933831>

Reviewed by Simon Fraser.

When we need to update the scroll layer position on the main thread, we need to cache the
scroll position we sent to the main thread and assume that that's the correct scroll position.

* page/scrolling/mac/ScrollingTreeNodeMac.h:
(ScrollingTreeNodeMac):
* page/scrolling/mac/ScrollingTreeNodeMac.mm:
(WebCore::ScrollingTreeNodeMac::update):
(WebCore::ScrollingTreeNodeMac::setScrollPosition):
(WebCore::ScrollingTreeNodeMac::scrollPosition):

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

9 years agoUnreviewed, rolling out r109367.
jchaffraix@webkit.org [Thu, 1 Mar 2012 19:58:33 +0000 (19:58 +0000)]
Unreviewed, rolling out r109367.
http://trac.webkit.org/changeset/109367
https://bugs.webkit.org/show_bug.cgi?id=75568

Some tests started to fail in a non obvious way.

Source/WebCore:

* rendering/RenderBlock.cpp:
(WebCore::RenderBlock::updateScrollInfoAfterLayout):
(WebCore::RenderBlock::layoutBlock):
(WebCore::RenderBlock::paint):
(WebCore::RenderBlock::isPointInOverflowControl):
* rendering/RenderBlock.h:
(RenderBlock):
* rendering/RenderBox.cpp:
(WebCore::RenderBox::willBeDestroyed):
(WebCore::RenderBox::styleDidChange):
(WebCore::RenderBox::scrollWidth):
(WebCore::RenderBox::scrollHeight):
(WebCore::RenderBox::scrollLeft):
(WebCore::RenderBox::scrollTop):
(WebCore::RenderBox::setScrollLeft):
(WebCore::RenderBox::setScrollTop):
(WebCore::RenderBox::includeVerticalScrollbarSize):
(WebCore::RenderBox::includeHorizontalScrollbarSize):
(WebCore::RenderBox::scrolledContentOffset):
(WebCore::RenderBox::cachedSizeForOverflowClip):
(WebCore::RenderBox::pushContentsClip):
(WebCore::RenderBox::popContentsClip):
(WebCore::RenderBox::addLayoutOverflow):
* rendering/RenderBox.h:
(RenderBox):
(WebCore):
* rendering/RenderBoxModelObject.cpp:
(WebCore):
(WebCore::RenderBoxModelObject::styleDidChange):
* rendering/RenderBoxModelObject.h:
(WebCore::RenderBoxModelObject::requiresLayer):
(RenderBoxModelObject):
* rendering/RenderDeprecatedFlexibleBox.cpp:
(WebCore::RenderDeprecatedFlexibleBox::layoutBlock):
* rendering/RenderTableRow.h:
(WebCore::RenderTableRow::requiresLayer):

LayoutTests:

* platform/chromium-win/fast/repaint/iframe-scroll-repaint-expected.png:
* platform/chromium/test_expectations.txt:
* platform/efl/test_expectations.txt:
* platform/gtk/test_expectations.txt:
* platform/mac/test_expectations.txt:
* platform/qt/test_expectations.txt:
* platform/win/Skipped:

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

9 years agoREGRESSION: Outlook 2007 doesn't display fonts correctly on emails composed by WebKit
bashi@chromium.org [Thu, 1 Mar 2012 19:47:44 +0000 (19:47 +0000)]
REGRESSION: Outlook 2007 doesn't display fonts correctly on emails composed by WebKit
https://bugs.webkit.org/show_bug.cgi?id=79448

Reviewed by Ryosuke Niwa.

Source/WebCore:

Don't produce single quotes around face attribute of font elements.

Test: editing/style/font-face-unquote.html

* editing/EditingStyle.cpp:
(WebCore::StyleChange::extractTextStyles): Remove single quotes from m_applyFontFace.

LayoutTests:

Add a test that makes sure WebKit doesn't produce single quotes around
face attribute of font element.

* editing/style/font-face-unquote-expected.txt: Added.
* editing/style/font-face-unquote.html: Added.

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

9 years agoReviewed by Kevin Decker.
bdakin@apple.com [Thu, 1 Mar 2012 19:36:55 +0000 (19:36 +0000)]
Reviewed by Kevin Decker.

Part of https://bugs.webkit.org/show_bug.cgi?id=79705

Here's some of that tweaking promised in the comment. Adjusting
gMaximumUnpaintedAreaRatio down a bit.
* page/Page.cpp:
(WebCore):

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

9 years agoAdd roundToInt method for LayoutUnits
leviw@chromium.org [Thu, 1 Mar 2012 19:33:44 +0000 (19:33 +0000)]
Add roundToInt method for LayoutUnits
https://bugs.webkit.org/show_bug.cgi?id=79283

Reviewed by Eric Seidel.

Adding a roundToInt method that rounds a LayoutUnit to the nearest integer. This
only has an effect once we switch to sub-pixel positioning. Points and offsets
are rounded for painting and hit testing.

No new tests. No change in behavior.

* dom/MouseRelatedEvent.cpp:
(WebCore::MouseRelatedEvent::offsetX):
(WebCore::MouseRelatedEvent::offsetY):
* html/shadow/MediaControlElements.cpp:
(WebCore::MediaControlTextTrackContainerElement::updateSizes):
* rendering/LayoutState.cpp:
(WebCore::LayoutState::computeLineGridPaginationOrigin):
* rendering/LayoutTypes.h:
(WebCore::roundToInt): Stub until we switch to sub-pixel LayoutUnits.
(WebCore):
* rendering/RenderBlock.cpp:
(WebCore::RenderBlock::pageLogicalTopForOffset):
* rendering/RenderBlock.h:
(WebCore::RenderBlock::pixelSnappedLogicalLeftOffsetForLine): Correcting to use the
pixel snapped methods on FloatingObjects and removing the fixme.
(WebCore::RenderBlock::pixelSnappedLogicalTopForFloat): Ditto.
(WebCore::RenderBlock::pixelSnappedLogicalBottomForFloat): Ditto.
(WebCore::RenderBlock::pixelSnappedLogicalLeftForFloat): Ditto.
(WebCore::RenderBlock::pixelSnappedLogicalRightForFloat): Ditto.
(WebCore::RenderBlock::pixelSnappedLogicalWidthForFloat): Ditto.
* rendering/RenderBlockLineLayout.cpp:
(WebCore::LineWidth::updateAvailableWidth):
(WebCore::RenderBlock::computeInlineDirectionPositionsForLine): Using
pixelSnappedLogicalLeft/RightOffsetForLine convenience methods for line layout. When
we switch to sub-pixel positioning, we still pixel snap blocks before painting them,
but text is rendered using floats. We need to ensure the text is laid out using the
actual pixel width of the containing block to avoid bleeding out of the block.
* rendering/RenderBoxModelObject.h: Moving the fixme to pixelSnappedWidth/Height and
adding the necessary rounding for Left/Top.
(WebCore::RenderBoxModelObject::pixelSnappedOffsetLeft):
(WebCore::RenderBoxModelObject::pixelSnappedOffsetTop):
* rendering/RenderLayer.cpp:
(WebCore::RenderLayer::scrollRectToVisible):
* rendering/RenderListBox.cpp:
(WebCore::RenderListBox::scrollHeight): Rounding the height for scrollHeight. Scrolling
always uses rounded values.
* rendering/svg/RenderSVGRoot.cpp:
(WebCore::RenderSVGRoot::localToParentTransform): Similar to the line box tree, since
SVG renders using floats, we need to start with pixel snapped values from the render
tree or we'll end up with the contents not properly aligned to the rest of the page.
* rendering/svg/SVGRenderSupport.cpp:
(WebCore::SVGRenderSupport::prepareToRenderSVGContent):

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

9 years agoMark use-same-database-in-page-and-workers.html as a TEXT failure.
adamk@chromium.org [Thu, 1 Mar 2012 19:22:44 +0000 (19:22 +0000)]
Mark use-same-database-in-page-and-workers.html as a TEXT failure.
Requested by dslomov on #webkit.

Unreviewed gardening.

* platform/chromium/test_expectations.txt:

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

9 years ago2012-03-01 Pavel Feldman <pfeldman@chromium.org>
pfeldman@chromium.org [Thu, 1 Mar 2012 19:12:29 +0000 (19:12 +0000)]
2012-03-01  Pavel Feldman  <pfeldman@chromium.org>

        Web Inspector: arrays in object properties sections do not scale.
        https://bugs.webkit.org/show_bug.cgi?id=64596

        Reviewed by Vsevolod Vlasov.

        Test: inspector/console/console-big-array.html

        * inspector/front-end/ConsoleMessage.js:
        (WebInspector.ConsoleMessageImpl.prototype._formatParameterAsArray):
        (WebInspector.ConsoleMessageImpl.prototype._printArray):
        * inspector/front-end/ObjectPropertiesSection.js:
        (WebInspector.ObjectPropertiesSection.prototype.updateProperties):
        (WebInspector.ObjectPropertyTreeElement.prototype.onpopulate.callback):
        (WebInspector.ObjectPropertyTreeElement.prototype.onpopulate):
        (WebInspector.ObjectPropertyTreeElement.prototype.startEditing):
        (WebInspector.ArrayGroupingTreeElement):
        (WebInspector.ArrayGroupingTreeElement.populateAsArray):
        (WebInspector.ArrayGroupingTreeElement._populate.appendElement):
        (WebInspector.ArrayGroupingTreeElement._populate):
        (WebInspector.ArrayGroupingTreeElement.prototype.onpopulate):
        * inspector/front-end/RemoteObject.js:
        (WebInspector.RemoteObject.prototype.release):
        (WebInspector.RemoteObject.prototype.arrayLength):
        (WebInspector.LocalJSONObject.prototype.isError):
        (WebInspector.LocalJSONObject.prototype.arrayLength):
        * inspector/front-end/ScopeChainSidebarPane.js:
        (WebInspector.ScopeVariableTreeElement.prototype.get propertyPath):
        * inspector/front-end/StylesSidebarPane.js:
        (WebInspector.StylePropertyTreeElement.prototype._mouseDown):
        * inspector/front-end/inspector.css:
        (.console-formatted-object, .console-formatted-node, .console-formatted-array):
        (.console-formatted-object .section, .console-formatted-node .section, .console-formatted-array .section):

2012-03-01  Pavel Feldman  <pfeldman@chromium.org>

        Web Inspector: arrays in object properties sections do not scale.
        https://bugs.webkit.org/show_bug.cgi?id=64596

        Reviewed by Vsevolod Vlasov.

        * inspector/console/console-big-array-expected.txt: Added.
        * inspector/console/console-big-array.html: Added.

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

9 years agoUnreviewed, rolling out r109336.
abarth@webkit.org [Thu, 1 Mar 2012 19:01:14 +0000 (19:01 +0000)]
Unreviewed, rolling out r109336.
http://trac.webkit.org/changeset/109336
https://bugs.webkit.org/show_bug.cgi?id=80013

It's causing some crashes

* Modules/indexeddb/DOMWindowIndexedDatabase.cpp:
(WebCore::DOMWindowIndexedDatabase::DOMWindowIndexedDatabase):
(WebCore::DOMWindowIndexedDatabase::webkitIndexedDB):
* Modules/indexeddb/DOMWindowIndexedDatabase.h:
(DOMWindowIndexedDatabase):
* page/DOMWindow.cpp:
(WebCore::DOMWindow::~DOMWindow):
(WebCore::DOMWindow::clear):
(WebCore):
(WebCore::DOMWindow::setIDBFactory):
* page/DOMWindow.h:
(DOMWindow):
(WebCore::DOMWindow::idbFactory):

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

9 years agoMove m_frame protector from FrameLoader::changeLocation to FrameLoader::urlSelected
tsepez@chromium.org [Thu, 1 Mar 2012 18:57:14 +0000 (18:57 +0000)]
Move m_frame protector from FrameLoader::changeLocation to FrameLoader::urlSelected
https://bugs.webkit.org/show_bug.cgi?id=79882

Reviewed by Adam Barth.

Source/WebCore:

Test: fast/frames/url-selected-crash.html

* loader/FrameLoader.cpp:
(WebCore::FrameLoader::changeLocation):
(WebCore::FrameLoader::urlSelected):

LayoutTests:

* fast/frames/url-selected-crash-expected.txt: Added.
* fast/frames/url-selected-crash.html: Added.

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

9 years agoLazily allocate overflow: hidden layers if we have overflowing content
jchaffraix@webkit.org [Thu, 1 Mar 2012 18:46:56 +0000 (18:46 +0000)]
Lazily allocate overflow: hidden layers if we have overflowing content
https://bugs.webkit.org/show_bug.cgi?id=75568

Reviewed by David Hyatt.

Source/WebCore:

Change covered by the existing tests and the tons of rebaselines.

This change makes us lazily allocate our RenderLayer for overflow: hidden layers only.

Apart from saving some memory, it will also speed up the rendering as we don't need to
go through the layer's machinery when painting and hit testing.

On http://dglazkov.github.com/performance-tests/biggrid.html benchmark, this puts the
overflow: hidden case in par with the overflow: visible case when scrolling that is a
very-smooth scrolling vs a jerky one currently (mostly due to the painting speedup).

* rendering/RenderBlock.cpp:
(WebCore::RenderBlock::updateScrollInfoAfterLayout):
Changed this method to update our size cache if needed.

* rendering/RenderBlock.cpp:
(WebCore::RenderBlock::layoutBlock):
(WebCore::RenderBlock::paint):
(WebCore::RenderBlock::isPointInOverflowControl):
* rendering/RenderBlock.h:
(RenderBlock):
* rendering/RenderBox.cpp:
(WebCore::RenderBox::styleDidChange):
(WebCore::RenderBox::scrollWidth):
(WebCore::RenderBox::scrollHeight):
(WebCore::RenderBox::scrollLeft):
(WebCore::RenderBox::scrollTop):
(WebCore::RenderBox::setScrollLeft):
(WebCore::RenderBox::setScrollTop):
(WebCore::RenderBox::includeVerticalScrollbarSize):
(WebCore::RenderBox::includeHorizontalScrollbarSize):
(WebCore::RenderBox::pushContentsClip):
(WebCore::RenderBox::popContentsClip):
(WebCore::RenderBox::addLayoutOverflow):
Added layer() check to the previous call sites.

* rendering/RenderBoxModelObject.cpp:
(WebCore::RenderBoxModelObject::ensureLayer):
Added this function to create and add a new layer.

(WebCore::RenderBoxModelObject::willBeDestroyed):
(WebCore):
(WebCore::RenderBoxModelObject::styleDidChange):
Patched those method to handle updating / removing
cached size entries.

(WebCore::cachedSizeForOverflowClipMap):
(WebCore::RenderBoxModelObject::cachedSizeForOverflowClip):
(WebCore::RenderBoxModelObject::updateCachedSizeForOverflowClip):
(WebCore::RenderBoxModelObject::clearCachedSizeForOverflowClip):
This logic stores the size information for later repainting.
It is in practice replicating what RenderLayer is doing.

* rendering/RenderBoxModelObject.h:
(WebCore::RenderBoxModelObject::requiresLayer):
Updated to call requiresLayerForOverflowClip.

(WebCore::RenderBoxModelObject::requiresLayerForOverflowClip):
Added this method to check if we can lazily allocate the layer.

* rendering/RenderDeprecatedFlexibleBox.cpp:
(WebCore::RenderDeprecatedFlexibleBox::layoutBlock):
Removed some checks as they are part of updateScrollInfoAfterLayout.

* rendering/RenderObject.cpp:
(WebCore::RenderObject::scrolledContentOffset):
Added a layer() check.

* rendering/RenderTableRow.h:
(RenderTableRow):
Added a comment about why we need a layout for table rows.

LayoutTests:

* platform/chromium-win/fast/repaint/iframe-scroll-repaint-expected.png:
This test really doesn't seem to test much on all platforms. The new expected result is as
good as the original from a correctness perspective. It just means we now do repaint the whole
iframe when scrolling.

* platform/chromium/test_expectations.txt:
* platform/efl/test_expectations.txt:
* platform/gtk/test_expectations.txt:
* platform/mac/test_expectations.txt:
* platform/qt/test_expectations.txt:
* platform/win/Skipped:
Disable gazillions tests that need a small rebaseline after losing some layers. The expectations are
updated to match each platform as best as I could but expect some breakage...

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

9 years agoProtect functions using two container node function, each of which can fire mutation...
inferno@chromium.org [Thu, 1 Mar 2012 18:19:03 +0000 (18:19 +0000)]
Protect functions using two container node function, each of which can fire mutation events.
https://bugs.webkit.org/show_bug.cgi?id=78397

Reviewed by Ryosuke Niwa.

Source/WebCore:

Tests: fast/dom/document-set-title-mutation-crash.html
       fast/dom/option-text-mutation-crash.html

* dom/Node.cpp:
(WebCore::Node::setTextContent):
* dom/Text.cpp:
(WebCore::Text::replaceWholeText):
* editing/markup.cpp:
(WebCore::trimFragment):
(WebCore::replaceChildrenWithFragment):
(WebCore::replaceChildrenWithText):
* html/HTMLOptionElement.cpp:
(WebCore::HTMLOptionElement::setText):
* html/HTMLScriptElement.cpp:
(WebCore::HTMLScriptElement::setText):
* html/HTMLTableElement.cpp:
(WebCore::HTMLTableElement::insertRow):
* html/HTMLTextAreaElement.cpp:
(WebCore::HTMLTextAreaElement::setDefaultValue):
* html/HTMLTitleElement.cpp:
(WebCore::HTMLTitleElement::setText):

LayoutTests:

* fast/dom/document-set-title-mutation-crash-expected.txt: Added.
* fast/dom/document-set-title-mutation-crash.html: Added.
* fast/dom/option-text-mutation-crash-expected.txt: Added.
* fast/dom/option-text-mutation-crash.html: Added.

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

9 years ago Some trivial file stream cleanup
ap@apple.com [Thu, 1 Mar 2012 18:06:06 +0000 (18:06 +0000)]
    Some trivial file stream cleanup
        https://bugs.webkit.org/show_bug.cgi?id=79955

        Reviewed by Sam Weinig.

        No change in functionality.

        * fileapi/FileStreamProxy.cpp: Tweaked comment, and added copyright for earlier changes.

        * fileapi/FileStreamProxy.h: Added a FIXME telling that this should be in platform.

        * platform/AsyncFileStream.h: Tweaked includes and added a FIXME about this to stop being
        a subclass.

        * platform/FileStreamClient.h: Removed obvious comments, and added ones explaing in-band
        error signals.

        * platform/network/BlobResourceHandle.cpp: Removed an include outside of platform, and an
        unused constant.

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

9 years agoAppending ShadowRoot into an element should not cause crash.
shinyak@chromium.org [Thu, 1 Mar 2012 18:05:45 +0000 (18:05 +0000)]
Appending ShadowRoot into an element should not cause crash.
https://bugs.webkit.org/show_bug.cgi?id=79620

Reviewed by Dimitri Glazkov.

Source/WebCore:

We should treat ShadowRoot as a document fragment.

Test: fast/dom/shadow/shadow-root-append.html

* dom/ContainerNode.cpp:
(WebCore::collectTargetNodes):

LayoutTests:

* fast/dom/shadow/shadow-root-append-expected.txt: Added.
* fast/dom/shadow/shadow-root-append.html: Added.
* platform/efl/Skipped:
* platform/mac/Skipped:
* platform/qt/Skipped:
* platform/win/Skipped:
* platform/wincairo/Skipped:
* platform/wk2/Skipped:

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

9 years agoWeb Inspector: use live location to update console message bubbles.
podivilov@chromium.org [Thu, 1 Mar 2012 17:30:47 +0000 (17:30 +0000)]
Web Inspector: use live location to update console message bubbles.
https://bugs.webkit.org/show_bug.cgi?id=80023

Reviewed by Vsevolod Vlasov.

* inspector/front-end/DebuggerPresentationModel.js:
(WebInspector.DebuggerPresentationModel):
(WebInspector.DebuggerPresentationModel.prototype._uiSourceCodeListChanged):
(WebInspector.DebuggerPresentationModel.prototype._consoleMessageAdded):
(WebInspector.DebuggerPresentationModel.prototype._addConsoleMessageToScript.updateLocation):
(WebInspector.DebuggerPresentationModel.prototype._addConsoleMessageToScript):
(WebInspector.DebuggerPresentationModel.prototype._addPendingConsoleMessage):
(WebInspector.DebuggerPresentationModel.prototype._addPendingConsoleMessagesToScript):
(WebInspector.DebuggerPresentationModel.prototype._consoleCleared):
(WebInspector.DebuggerPresentationModel.prototype.messagesForUISourceCode):
(WebInspector.DebuggerPresentationModel.prototype._scriptForURLAndLocation):
(WebInspector.DebuggerPresentationModel.prototype._debuggerReset):
* inspector/front-end/RawSourceCode.js:
(WebInspector.RawSourceCode):

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

9 years agoREGRESSION(r109288): WebViewImpl::enableAutoResizeMode loops infinitely
haraken@chromium.org [Thu, 1 Mar 2012 17:15:03 +0000 (17:15 +0000)]
REGRESSION(r109288): WebViewImpl::enableAutoResizeMode loops infinitely
https://bugs.webkit.org/show_bug.cgi?id=77452

Reviewed by Hajime Morita.

WebViewImpl::enableAutoResizeMode loops infinitely.
This patch fixes the following line:

    enableAutoResizeMode(enable, minSize, maxSize);

to
    enableAutoResizeMode(minSize, maxSize);

to avoid the infinite loop. I guess this is the change originally intended.

Test: webkit_unit_tests.WebViewTest.AutoResizeMinimumSize

* src/WebViewImpl.cpp:
(WebKit::WebViewImpl::enableAutoResizeMode):

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

9 years agoWeb Inspector: [InspectorIndexedDB] Show tooltips with IndexedDB objects meta information
vsevik@chromium.org [Thu, 1 Mar 2012 16:34:05 +0000 (16:34 +0000)]
Web Inspector: [InspectorIndexedDB] Show tooltips with IndexedDB objects meta information
https://bugs.webkit.org/show_bug.cgi?id=80022

Reviewed by Pavel Feldman.

Added tooltips with meta information for IndexedDB databases, object stores and indexes.
Added keyPath: prefix to key columns in IndexedDB data grid.

* English.lproj/localizedStrings.js:
* inspector/front-end/IndexedDBViews.js:
(WebInspector.IDBDataView.prototype._createDataGrid):
(WebInspector.IDBDataView.prototype._keyPathHeader):
* inspector/front-end/ResourcesPanel.js:
(WebInspector.IDBDatabaseTreeElement.prototype.update):
(WebInspector.IDBDatabaseTreeElement.prototype._updateTooltip):
(WebInspector.IDBObjectStoreTreeElement.prototype.update):
(WebInspector.IDBObjectStoreTreeElement.prototype._updateTooltip):
(WebInspector.IDBIndexTreeElement.prototype.update):
(WebInspector.IDBIndexTreeElement.prototype._updateTooltip):

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

9 years agoWeb Inspector: hide color picker on Esc and Enter.
pfeldman@chromium.org [Thu, 1 Mar 2012 16:16:54 +0000 (16:16 +0000)]
Web Inspector: hide color picker on Esc and Enter.
https://bugs.webkit.org/show_bug.cgi?id=79915

Reviewed by Vsevolod Vlasov.

* inspector/front-end/Spectrum.js:
(WebInspector.Spectrum.prototype.reposition):
(WebInspector.Spectrum.prototype.hide):
(WebInspector.Spectrum.prototype._onKeyDown):

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

9 years ago[Qt] Fixed incorrect size pixmap creation for a new transparency layer.
hausmann@webkit.org [Thu, 1 Mar 2012 16:13:19 +0000 (16:13 +0000)]
[Qt] Fixed incorrect size pixmap creation for a new transparency layer.
https://bugs.webkit.org/show_bug.cgi?id=79658

If QPainter does not have clipping, beginPlatformTransparencyLayer can create
wrong size pixmap, so it causes incorrect rendering.

Patch by Huang Dongsung <luxtella@company100.net> on 2012-03-01
Reviewed by Simon Hausmann.

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

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

9 years ago[Qt] Remove dead style option code.
hausmann@webkit.org [Thu, 1 Mar 2012 15:18:23 +0000 (15:18 +0000)]
[Qt] Remove dead style option code.
https://bugs.webkit.org/show_bug.cgi?id=80017

Reviewed by Kenneth Rohde Christiansen.

QtStyleOptionWebComboBox provides functionality (bool multiple()) that
is not called from anywhere (and the base class does not have it as a
virtual function).

* Target.pri:
* platform/qt/QtStyleOptionWebComboBox.h: Removed.
* platform/qt/RenderThemeQStyle.cpp:
(WebCore::RenderThemeQStyle::paintMenuList):
(WebCore::RenderThemeQStyle::paintMenuListButton):

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

9 years agoCrash in WebCore::SVGDocumentExtensions::removeAnimationElementFromTarget
commit-queue@webkit.org [Thu, 1 Mar 2012 15:04:36 +0000 (15:04 +0000)]
Crash in WebCore::SVGDocumentExtensions::removeAnimationElementFromTarget
https://bugs.webkit.org/show_bug.cgi?id=79831

Patch by Stephen Chenney <schenney@chromium.org> on 2012-03-01
Reviewed by Eric Seidel.

Out-of-order operations in the SVGSMILElement::removedFromDocument
method caused its target to be removed and then re-added due to a
later call. This led to the target being set on the animation while
the target element itself was unaware. At deletion time, this caused a
crash (or assert in debug builds). Thanks to Abhishek Arya for help
with the layout test.

Source/WebCore:

Test: svg/animations/smil-element-target-crash-main.html

* svg/animation/SVGSMILElement.cpp:
(WebCore::SVGSMILElement::removedFromDocument):

LayoutTests:

* svg/animations/resources/smil-element-target-crash.svg: Added.
* svg/animations/smil-element-target-crash-main-expected.txt: Added.
* svg/animations/smil-element-target-crash-main.html: Added.

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

9 years ago2012-03-01 Nikolas Zimmermann <nzimmermann@rim.com>
zimmermann@webkit.org [Thu, 1 Mar 2012 14:46:56 +0000 (14:46 +0000)]
2012-03-01  Nikolas Zimmermann  <nzimmermann@rim.com>

        Not reviewed. Rebaseline another SVG test on SnowLeopard, now new-run-webkit-tests --tolerance 0 -p svg also passes w/o failures on SL.

        * platform/mac-snowleopard/svg/custom/scrolling-embedded-svg-file-image-repaint-problem-expected.png:

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

9 years agoWeb Inspector: move heap snapshot nodes data to external array.
loislo@chromium.org [Thu, 1 Mar 2012 14:15:24 +0000 (14:15 +0000)]
Web Inspector: move heap snapshot nodes data to external array.
https://bugs.webkit.org/show_bug.cgi?id=79911

Reviewed by Vsevolod Vlasov.

Source/WebCore:

Tests:
heap-shapshot.html
heap-shapshot-loader.html

* inspector/front-end/HeapSnapshot.js:
(WebInspector.Int32Array):
(WebInspector.Int32Array.prototype.get array):
(WebInspector.HeapSnapshotLoader.prototype._parseNodes):
(WebInspector.HeapSnapshotLoader.prototype.pushJSONChunk):
(WebInspector.HeapSnapshot):
(WebInspector.HeapSnapshot.prototype._init):

LayoutTests:

* inspector/profiler/heap-snapshot-loader.html:
* inspector/profiler/heap-snapshot-test.js:
(initialize_HeapSnapshotTest.InspectorTest.createHeapSnapshotMockRaw):
(initialize_HeapSnapshotTest.InspectorTest.createHeapSnapshotMock):
(initialize_HeapSnapshotTest.InspectorTest.createHeapSnapshotMockWithDOM):

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

9 years agoIntroduce SMIL overrideStyle, to make SVG stop mutating CSS styles directly
zimmermann@webkit.org [Thu, 1 Mar 2012 14:00:55 +0000 (14:00 +0000)]
Introduce SMIL overrideStyle, to make SVG stop mutating CSS styles directly
https://bugs.webkit.org/show_bug.cgi?id=79790

Reviewed by Zoltan Herczeg.

Source/WebCore:

Next step towards enabling animVal support for XML attribute animations.
When SVG CSS properties are animated using SMIL, we currently mutate
the target elements style, and have to keep a baseValue around as String
to be able to recover from the DOM mutations at the end, if fill!="freeze".

The approach required by SMIL is to keep around an override style declaration
set and apply it right after the inline style declarations. Implement that
finally, to avoid mutating styles directly.

Test: svg/animations/attributeTypes.html

* css/CSSStyleSelector.cpp: Model "SMIL animation style" applying just like "inline style" declarations.
(WebCore::CSSStyleSelector::addElementStyleProperties): Refactored common code from matchAllRules().
(WebCore::CSSStyleSelector::matchAllRules): Apply "SMIL animation style" after "inline style" declarations, as specified in SMIL2.
* css/CSSStyleSelector.h: Add new addElementStyleProperties() helper.
* svg/SVGAnimateElement.cpp: Keep track of animation state, if it's about to end, clear "SMIL animation style" upon next applyResultToTarget() call.
(WebCore::SVGAnimateElement::SVGAnimateElement):
(WebCore::SVGAnimateElement::applyResultsToTarget): Reset the CSS property we're animating int the "SMIL animation style", after animation ends.
                                                    (Instead of resetting target->style() properties to the old baseValue, as we used to do).
(WebCore::SVGAnimateElement::endedActiveInterval): Set m_aboutToStopAnimation to true, so next call to applyResultsToTarget() knows the animation ends.
* svg/SVGAnimateElement.h: Store bool m_aboutToSTopAnimation;
* svg/SVGAnimationElement.cpp:
(WebCore::setTargetAttributeAnimatedCSSValue):
(WebCore::setTargetAttributeAnimatedXMLValue):
    Refactored both of these methods from setTargetAttributeAnimatedValue().
    Changed the CSS part, to apply property changes to the "SMIL animation style" instead of the regular StylePropertySet.
(WebCore::SVGAnimationElement::setTargetAttributeAnimatedValue): Refactored code, use shouldApplyAnimation() to determine whether this animation should run.
(WebCore::SVGAnimationElement::resetAnimationState): New helper calling setTargetAttributeAnimatedValue with a null-string for CSS attributes, when the animation ends.
                                                     This is used to detect that the CSS property should be removed from the "SMIL animation style".
(WebCore::SVGAnimationElement::shouldApplyAnimation): Refactored from existing code, and make it more obvious how attributeType influences the animation, all according to SVG 1.1/SMIL2.
* svg/SVGAnimationElement.h:
* svg/SVGElement.cpp: Manage the "SMIL animation style", in SVGElementRareData, if needed. Only gets created if SMIL animations on CSS properties run.
(WebCore::SVGElement::~SVGElement): Destroy SMIL animation style, upon destruction.
(WebCore::SVGElement::animatedSMILStyleProperties): Returns the StylePropertySet for the "SMIL animation style", if it's available.
(WebCore::SVGElement::ensureAnimatedSMILStyleProperties): Enforces creating the StylePropertySet for the "SMIL animation style".
* svg/SVGElement.h: Expose new methods.
* svg/SVGElementRareData.h: Stores the "SMIL animation style", actual managment is done by SVGElement, if needed.
(WebCore::SVGElementRareData::animatedSMILStyleProperties): Retrieve it.
(WebCore::SVGElementRareData::ensureAnimatedSMILStyleProperties): Create it.
(WebCore::SVGElementRareData::destroyAnimatedSMILStyleProperties): Destroy it.
* svg/animation/SVGSMILElement.h: Make endedActiveInterval() virtual again, its needed by SVGAnimateElement now.

LayoutTests:

SVG CSS property animations aren't leaked into the DOM anymore, update the tests.

* svg/animations/animate-color-transparent-expected.txt:
* svg/animations/animate-currentColor-expected.txt:
* svg/animations/animate-dynamic-update-attributeName-expected.txt:
* svg/animations/animate-inherit-css-property-expected.txt:
* svg/animations/attributeTypes-expected.txt: Added.
* svg/animations/attributeTypes.html: Added.
* svg/animations/resources/attributeTypes.svg: Added.
* svg/animations/script-tests/animate-color-transparent.js:
(expectTransparent):
(expectOtherColor):
* svg/animations/script-tests/animate-currentColor.js:
(sample1):
(sample2):
(sample3):
* svg/animations/script-tests/animate-dynamic-update-attributeName.js:
(sample1):
(sample3):
* svg/animations/script-tests/animate-inherit-css-property.js:
(sample1):
(sample2):
(sample3):
* svg/animations/script-tests/attributeTypes.js: Added.
(sample1):
(sample2):
(sample3):
(executeTest):
* svg/animations/script-tests/svgstring-animation-fallback-to-discrete.js:
(sample1):
(sample2):
(sample3):
* svg/animations/svgstring-animation-fallback-to-discrete-expected.txt:

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

9 years agoUnreviewed, rolling out r109255.
zimmermann@webkit.org [Thu, 1 Mar 2012 13:44:44 +0000 (13:44 +0000)]
Unreviewed, rolling out r109255.
http://trac.webkit.org/changeset/109255
https://bugs.webkit.org/show_bug.cgi?id=79932

Breaks rounded rects with dashed strokes in SVG

Source/WebCore:

* WebCore.exp.in:
* platform/graphics/Path.cpp:
(WebCore::Path::addRoundedRect):
* platform/graphics/Path.h:
(Path):
* platform/graphics/cg/PathCG.cpp:
* platform/mac/WebCoreSystemInterface.h:
* platform/mac/WebCoreSystemInterface.mm:

Source/WebKit/mac:

* WebCoreSupport/WebSystemInterface.mm:
(InitWebCoreSystemInterface):

Source/WebKit2:

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

WebKitLibraries:

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

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

9 years ago[WK2] [GTK] [libsoup] SoupSession should use system CA
sergio@webkit.org [Thu, 1 Mar 2012 12:51:43 +0000 (12:51 +0000)]
[WK2] [GTK] [libsoup] SoupSession should use system CA
https://bugs.webkit.org/show_bug.cgi?id=79657

Reviewed by Martin Robinson.

SoupSession sould use system CA list to validate SSL
certificates. Do not use strict certificate validation though as
we want clients to decide whether or not accept/decline invalid
certificates (API to be added later).

No new tests required as current behaviour does not change at all
as we continue to accept invalid certificates by default.

* WebProcess/gtk/WebProcessMainGtk.cpp:
(WebKit::WebProcessMainGtk):

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

9 years agoUnreviewed, GTK NRWT build fix attempt after r109242.
philn@webkit.org [Thu, 1 Mar 2012 12:40:24 +0000 (12:40 +0000)]
Unreviewed, GTK NRWT build fix attempt after r109242.

* Scripts/webkitpy/layout_tests/port/gtk.py:
(GtkDriver._start):

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

9 years agoDOMWindow shouldn't have any INDEXED_DATABASE ifdefs
abarth@webkit.org [Thu, 1 Mar 2012 12:39:49 +0000 (12:39 +0000)]
DOMWindow shouldn't have any INDEXED_DATABASE ifdefs
https://bugs.webkit.org/show_bug.cgi?id=80013

Reviewed by Kentaro Hara.

Before this patch, DOMWindow still knew about IDB because of the
database factory.  This patch moves the factory to
DOMWindowIndexedDatabase.

* Modules/indexeddb/DOMWindowIndexedDatabase.cpp:
(WebCore::DOMWindowIndexedDatabase::DOMWindowIndexedDatabase):
(WebCore::DOMWindowIndexedDatabase::from):
(WebCore):
(WebCore::DOMWindowIndexedDatabase::disconnectFrame):
(WebCore::DOMWindowIndexedDatabase::webkitIndexedDB):
* Modules/indexeddb/DOMWindowIndexedDatabase.h:
(DOMWindowIndexedDatabase):
* page/DOMWindow.cpp:
(WebCore::DOMWindow::~DOMWindow):
(WebCore::DOMWindow::clear):
(WebCore):
* page/DOMWindow.h:
(DOMWindow):

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

9 years agoREGRESSION(r109036): run-bindings-tests fails because resolve-supplemental.pl was...
haraken@chromium.org [Thu, 1 Mar 2012 12:37:50 +0000 (12:37 +0000)]
REGRESSION(r109036): run-bindings-tests fails because resolve-supplemental.pl was renamed
https://bugs.webkit.org/show_bug.cgi?id=80008

Reviewed by Adam Barth.

In r109036, I forgot to rename "resolve-supplemental.pl" in run-bindings-tests
to "preprocess-idls.pl". This patch renames it.

Test: Confirm that run-bindings-tests runs.

* Scripts/webkitpy/bindings/main.py:
(BindingsTests.generate_supplemental_dependency):

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

9 years ago2012-03-01 Florin Malita <fmalita@google.com>
zimmermann@webkit.org [Thu, 1 Mar 2012 12:28:40 +0000 (12:28 +0000)]
2012-03-01  Florin Malita  <fmalita@google.com>

        Percent width/height SVG not always scaled on window resize
        https://bugs.webkit.org/show_bug.cgi?id=79490

        Reviewed by Nikolas Zimmermann.

        Update tests to avoid the use of window.resize{To,By}.

        * fast/repaint/percent-minheight-resize-expected.html:
        * fast/repaint/percent-minheight-resize.html:
        * svg/custom/svg-percent-scale-expected.html:
        * svg/custom/svg-percent-scale-vonly-expected.html:
        * svg/custom/svg-percent-scale-vonly.html:
        * svg/custom/svg-percent-scale.html:

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

9 years agoSVG <use> element allows invalid contents
zimmermann@webkit.org [Thu, 1 Mar 2012 12:21:26 +0000 (12:21 +0000)]
SVG <use> element allows invalid contents
https://bugs.webkit.org/show_bug.cgi?id=77764

Reviewed by Zoltan Herczeg.

Unbreak the world after r109299 - dozens of SVGUseElement tests fail in trunk because:
- text nodes weren't allowed in SVG shadow subtrees
- tagName matching ignores any prefixes, thus svg:circle fails to identify as SVGCircleElement

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

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

9 years agoHandle CSSPropertyWebkitHyphens in CSSStyleApplyProperty.
macpherson@chromium.org [Thu, 1 Mar 2012 11:43:31 +0000 (11:43 +0000)]
Handle CSSPropertyWebkitHyphens in CSSStyleApplyProperty.
https://bugs.webkit.org/show_bug.cgi?id=80004

Reviewed by Eric Seidel.

No new tests / refactoring only.

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

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

9 years agoUnreviewed. Fix WebKit2 GTK+ build.
carlosgc@webkit.org [Thu, 1 Mar 2012 11:17:29 +0000 (11:17 +0000)]
Unreviewed. Fix WebKit2 GTK+ build.

* UIProcess/API/gtk/WebKitDefines.h:
* UIProcess/API/gtk/WebKitWebView.h:

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

9 years agoWeb Inspector: abstract out the common pattern of creating auto-updated locations.
podivilov@chromium.org [Thu, 1 Mar 2012 10:28:55 +0000 (10:28 +0000)]
Web Inspector: abstract out the common pattern of creating auto-updated locations.
https://bugs.webkit.org/show_bug.cgi?id=79906

Reviewed by Vsevolod Vlasov.

Source/WebCore:

* inspector/front-end/DebuggerPresentationModel.js:
(WebInspector.PresentationCallFrame.prototype.uiLocation):
(WebInspector.DebuggerPresentationModel.CallFramePlacard):
(WebInspector.DebuggerPresentationModel.CallFramePlacard.prototype.discard):
(WebInspector.DebuggerPresentationModel.CallFramePlacard.prototype._update):
(WebInspector.DebuggerPresentationModel.LinkifierFormatter.prototype.formatRawSourceCodeAnchor):
(WebInspector.DebuggerPresentationModel.DefaultLinkifierFormatter.prototype.formatRawSourceCodeAnchor):
(WebInspector.DebuggerPresentationModel.Linkifier):
(WebInspector.DebuggerPresentationModel.Linkifier.prototype.linkifyRawSourceCode):
(WebInspector.DebuggerPresentationModel.Linkifier.prototype.reset):
(WebInspector.DebuggerPresentationModel.Linkifier.prototype._updateAnchor):
* inspector/front-end/RawSourceCode.js:
(WebInspector.RawSourceCode.prototype.createLiveLocation):
(WebInspector.RawSourceCode.LiveLocation):
(WebInspector.RawSourceCode.LiveLocation.prototype.init):
(WebInspector.RawSourceCode.LiveLocation.prototype.dispose):
(WebInspector.RawSourceCode.LiveLocation.prototype._update):

LayoutTests:

* inspector/debugger/linkifier.html:

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

9 years agoMake the tiling code slightly smarter
kenneth@webkit.org [Thu, 1 Mar 2012 09:53:57 +0000 (09:53 +0000)]
Make the tiling code slightly smarter
https://bugs.webkit.org/show_bug.cgi?id=80015

Reviewed by Simon Hausmann.

Avoid doing the same tranformations all over in each call to
tileRectForCoordinate.

Do not resize tiles and then drop them because they are not out of
the keep rect; instead drop before resizing.

Rename dropTilesOutsideRect to setKeepRect as it now stored the keep
rect. This is used to avoid unneeded iteration of all tiles for
invalidates outside the keep rect.

* platform/graphics/TiledBackingStore.cpp:
(WebCore::TiledBackingStore::invalidate):
(WebCore):
(WebCore::TiledBackingStore::commitScaleChange):
(WebCore::TiledBackingStore::coverageRatio):
(WebCore::TiledBackingStore::createTiles):
(WebCore::TiledBackingStore::adjustForContentsRect):
(WebCore::TiledBackingStore::resizeEdgeTiles):
(WebCore::TiledBackingStore::setKeepRect):
(WebCore::TiledBackingStore::removeAllNonVisibleTiles):
(WebCore::TiledBackingStore::tileRectForCoordinate):
(WebCore::TiledBackingStore::setSupportsAlpha):
* platform/graphics/TiledBackingStore.h:
(TiledBackingStore):

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

9 years ago[Qt][WK2] QQuickWebView::event should lookup faster which events QQuickWebPage can...
hausmann@webkit.org [Thu, 1 Mar 2012 09:32:13 +0000 (09:32 +0000)]
[Qt][WK2] QQuickWebView::event should lookup faster which events QQuickWebPage can handle
https://bugs.webkit.org/show_bug.cgi?id=78047

Reviewed by Kenneth Rohde Christiansen.

Source/WebKit2:

Replaced double-dispatch of events with direct forwarding of events from QQuickWebView::*Event to
QtWebPageEventHandler::handle*Event.

* UIProcess/API/qt/qquickwebview.cpp:
(QQuickWebView::keyPressEvent):
(QQuickWebView::keyReleaseEvent):
(QQuickWebView::inputMethodEvent):
(QQuickWebView::focusInEvent):
(QQuickWebView::focusOutEvent):
(QQuickWebView::touchEvent):
(QQuickWebView::mousePressEvent):
(QQuickWebView::mouseMoveEvent):
(QQuickWebView::mouseReleaseEvent):
(QQuickWebView::mouseDoubleClickEvent):
(QQuickWebView::wheelEvent):
(QQuickWebView::hoverEnterEvent):
(QQuickWebView::hoverMoveEvent):
(QQuickWebView::hoverLeaveEvent):
(QQuickWebView::dragMoveEvent):
(QQuickWebView::dragEnterEvent):
(QQuickWebView::dragLeaveEvent):
(QQuickWebView::dropEvent):
(QQuickWebView::event):
* UIProcess/qt/QtWebPageEventHandler.cpp:
(QtWebPageEventHandler::handleMouseMoveEvent):
(QtWebPageEventHandler::handleMousePressEvent):
(QtWebPageEventHandler::handleMouseReleaseEvent):
(QtWebPageEventHandler::handleWheelEvent):
(QtWebPageEventHandler::handleHoverLeaveEvent):
(QtWebPageEventHandler::handleHoverMoveEvent):
(QtWebPageEventHandler::handleDragEnterEvent):
(QtWebPageEventHandler::handleDragLeaveEvent):
(QtWebPageEventHandler::handleDragMoveEvent):
(QtWebPageEventHandler::handleDropEvent):
(QtWebPageEventHandler::handleKeyPressEvent):
(QtWebPageEventHandler::handleKeyReleaseEvent):
(QtWebPageEventHandler::handleFocusInEvent):
(QtWebPageEventHandler::handleFocusOutEvent):
(QtWebPageEventHandler::handleInputMethodEvent):
(QtWebPageEventHandler::handleTouchEvent):
* UIProcess/qt/QtWebPageEventHandler.h:
(QtWebPageEventHandler):

Tools:

Send events for the webview through the QQuickCanvas instead of directly to the item. Direct
sending to the item requires the QObject::event re-implementation to dispatch to the correct
event handling function. However QQuickItem::event doesn't do that. Instead QQuickCanvas calls
the event handlers directly, and with the removal of our own dispatching we need to go through
that code path.

* WebKitTestRunner/qt/PlatformWebViewQt.cpp:
(WTR::PlatformWebView::sendEvent):
(WTR::PlatformWebView::postEvent):

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

9 years agoDFG local CSE for a node can be terminated earlier
yuqiang.xian@intel.com [Thu, 1 Mar 2012 09:31:30 +0000 (09:31 +0000)]
DFG local CSE for a node can be terminated earlier
https://bugs.webkit.org/show_bug.cgi?id=80014

Reviewed by Filip Pizlo.

When one of the node's childredn is met in the process of back traversing
the nodes, we don't need to traverse the remaining nodes.
This is performance neutral on SunSpider, V8 and Kraken.

* dfg/DFGCSEPhase.cpp:
(JSC::DFG::CSEPhase::pureCSE):
(JSC::DFG::CSEPhase::impureCSE):
(JSC::DFG::CSEPhase::getByValLoadElimination):
(JSC::DFG::CSEPhase::checkFunctionElimination):
(JSC::DFG::CSEPhase::checkStructureLoadElimination):
(JSC::DFG::CSEPhase::getByOffsetLoadElimination):
(JSC::DFG::CSEPhase::getPropertyStorageLoadElimination):
(JSC::DFG::CSEPhase::getIndexedPropertyStorageLoadElimination):

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

9 years agoUse the new createSnapshotFileAndReadMetadata API for FileEntry.file()
kinuko@chromium.org [Thu, 1 Mar 2012 09:18:28 +0000 (09:18 +0000)]
Use the new createSnapshotFileAndReadMetadata API for FileEntry.file()
https://bugs.webkit.org/show_bug.cgi?id=79928

Reviewed by David Levin.

Source/WebCore:

No new tests: no functionality changes.
fast/filesystem/ tests should use the new code (they should pass once
the corresponding chromium change is rolled in).

* fileapi/DOMFileSystem.cpp:
(WebCore::DOMFileSystem::createFile): Updated to use the new API.
* fileapi/DOMFileSystemSync.cpp:
(WebCore::DOMFileSystemSync::createFile): Updated to use the new API.
* fileapi/FileSystemCallbacks.cpp:
* fileapi/FileSystemCallbacks.h:
(FileSystemCallbacksBase):
* platform/AsyncFileSystem.h:
(AsyncFileSystem):
* platform/AsyncFileSystemCallbacks.h: Added default implementation (which just calls ASSERT_NOTREACHED()) so that subclasses can focus only on the callback methods that they're interested in.

Source/WebKit/chromium:

In the new flow we first create an internal Blob URL for the
snapshot file and call the new createSnapshotFileAndReadMetadata()
WebKit API with the Blob URL.

The implementor of createSnapshotFileAndReadMetadata() (i.e. chromium)
registers the created snapshot file with the given internal Blob URL.

In the callback chain we call File::createWithName() to create a
new File using the returned platform path, and then call
unregisterBlobURL() to clean up the internal Blob URL.

* src/AsyncFileSystemChromium.cpp:
(WebCore::AsyncFileSystemChromium::createSnapshotFileAndReadMetadata): Added.
(WebCore::AsyncFileSystemChromium::createSnapshotFileCallback): Added.
* src/AsyncFileSystemChromium.h:
* src/WorkerAsyncFileSystemChromium.cpp:
(WebCore::WorkerAsyncFileSystemChromium::createSnapshotFileAndReadMetadata): Added.
* src/WorkerAsyncFileSystemChromium.h:
* src/WorkerFileSystemCallbacksBridge.cpp:
(WebKit::WorkerFileSystemCallbacksBridge::postCreateSnapshotFileToMainThread): Added.
(WebKit::WorkerFileSystemCallbacksBridge::createSnapshotFileOnMainThread): Added.
* src/WorkerFileSystemCallbacksBridge.h:
(WorkerFileSystemCallbacksBridge):

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

9 years agoWeb Inspector: add UISourceCode.isEditable property.
podivilov@chromium.org [Thu, 1 Mar 2012 08:22:20 +0000 (08:22 +0000)]
Web Inspector: add UISourceCode.isEditable property.
https://bugs.webkit.org/show_bug.cgi?id=79909

Reviewed by Vsevolod Vlasov.

* inspector/front-end/DebuggerPresentationModel.js:
(WebInspector.DebuggerPresentationModel.prototype.canEditScriptSource):
* inspector/front-end/RawSourceCode.js:
(WebInspector.RawSourceCode.prototype._createUISourceCode):
* inspector/front-end/UISourceCode.js:
(WebInspector.UISourceCode):

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

9 years ago[Qt][WK2] Unreviewed buildfix after r109277.
abarth@webkit.org [Thu, 1 Mar 2012 08:05:21 +0000 (08:05 +0000)]
[Qt][WK2] Unreviewed buildfix after r109277.

Patch by Csaba Osztrogon√°c <ossy@webkit.org> on 2012-03-01

* WebProcess/qt/QtBuiltinBundlePage.cpp:
(WebKit::QtBuiltinBundlePage::QtBuiltinBundlePage):

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

9 years agoFallback elements in non-youngest shadow tree should not be rendered.
shinyak@chromium.org [Thu, 1 Mar 2012 07:58:26 +0000 (07:58 +0000)]
Fallback elements in non-youngest shadow tree should not be rendered.
https://bugs.webkit.org/show_bug.cgi?id=80002

Reviewed by Hajime Morita.

Source/WebCore:

Fallback elements in non-youngest shadow tree should not be rendered, so its phase should be
AttachingNotDistributed instead of AttachingFallbacked.

Tests: multiple-shadowroot-rendering.html covers this patch.

* dom/NodeRenderingContext.cpp:
(WebCore::NodeRenderingContext::NodeRenderingContext):

LayoutTests:

Since createContentWithSelect shadw-test-driver.js is not intuitive, fallback element
is not added in existing tests.
This change makes sure the existence of fallback elements.

* fast/dom/resources/shadow-test-driver.js:
(createContentWithSelect):
* fast/dom/shadow/content-element-move.html:
* fast/dom/shadow/multiple-shadowroot-rendering.html:

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

9 years agoPerf-o-matic build fix. Also toggle the switch to start using ping images on the...
rniwa@webkit.org [Thu, 1 Mar 2012 07:50:59 +0000 (07:50 +0000)]
Perf-o-matic build fix. Also toggle the switch to start using ping images on the dashboard after r109190.

* Websites/webkit-perf.appspot.com/controller.py:
(schedule_runs_update):
(schedule_report_process):
* Websites/webkit-perf.appspot.com/js/admin.js:
(bind):
* Websites/webkit-perf.appspot.com/js/config.js:

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

9 years agoScriptExecutionContext has too many ifdef ENABLE(SQL_DATABASE)
abarth@webkit.org [Thu, 1 Mar 2012 07:46:27 +0000 (07:46 +0000)]
ScriptExecutionContext has too many ifdef ENABLE(SQL_DATABASE)
https://bugs.webkit.org/show_bug.cgi?id=79633

Reviewed by Eric Seidel.

Source/WebCore:

This class creates a DatabaseContext object to supplement the
ScriptExecutionContext with database-specific information.  This new
object lets us remove a bunch of database-specific (and ifdefed) logic
from ScriptExecutionContext.(cpp|h).

* CMakeLists.txt:
* GNUmakefile.list.am:
* Target.pri:
* WebCore.exp.in:
* WebCore.gypi:
* WebCore.vcproj/WebCore.vcproj:
* WebCore.xcodeproj/project.pbxproj:
* dom/ScriptExecutionContext.cpp:
(WebCore::ScriptExecutionContext::ScriptExecutionContext):
(WebCore::ScriptExecutionContext::~ScriptExecutionContext):
(WebCore):
* dom/ScriptExecutionContext.h:
(WebCore):
(ScriptExecutionContext):
* history/PageCache.cpp:
(WebCore::logCanCacheFrameDecision):
(WebCore::PageCache::canCachePageContainingThisFrame):
* loader/FrameLoader.cpp:
(WebCore::FrameLoader::stopLoading):
* platform/Supplementable.h:
(WebCore::Supplementable::provideSupplement):
(WebCore::Supplementable::requireSupplement):
(Supplementable):
* storage/AbstractDatabase.cpp:
(WebCore::AbstractDatabase::AbstractDatabase):
* storage/AbstractDatabase.h:
(WebCore):
(WebCore::AbstractDatabase::databaseContext):
(AbstractDatabase):
* storage/Database.cpp:
(WebCore::Database::openDatabase):
(WebCore::Database::Database):
(WebCore::Database::openAndVerifyVersion):
(WebCore::Database::markAsDeletedAndClose):
(WebCore::Database::close):
(WebCore::Database::closeImmediately):
(WebCore::Database::performOpenAndVerify):
(WebCore::Database::scheduleTransaction):
(WebCore::Database::scheduleTransactionStep):
(WebCore::Database::transactionClient):
(WebCore::Database::transactionCoordinator):
(WebCore::Database::tableNames):
(WebCore::Database::securityOrigin):
* storage/DatabaseContext.cpp: Added.
(WebCore):
(WebCore::existingDatabaseContextFrom):
(WebCore::DatabaseContext::DatabaseContext):
(WebCore::DatabaseContext::~DatabaseContext):
(WebCore::DatabaseContext::from):
(WebCore::DatabaseContext::databaseThread):
(WebCore::DatabaseContext::hasOpenDatabases):
(WebCore::DatabaseContext::stopDatabases):
* storage/DatabaseContext.h: Added.
(WebCore):
(DatabaseContext):
(WebCore::DatabaseContext::setHasOpenDatabases):
* storage/SQLTransaction.cpp:
(WebCore::SQLTransaction::checkAndHandleClosedOrInterruptedDatabase):
(WebCore::SQLTransaction::notifyDatabaseThreadIsShuttingDown):
* workers/WorkerThread.cpp:
(WebCore::WorkerThreadShutdownStartTask::performTask):

Source/WebKit/mac:

* WebView/WebFrame.mm:
(-[WebFrame _cacheabilityDictionary]):

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

9 years agoDFG BasicBlocks should not require that their nodes have continuous indices in the...
yuqiang.xian@intel.com [Thu, 1 Mar 2012 07:39:31 +0000 (07:39 +0000)]
DFG BasicBlocks should not require that their nodes have continuous indices in the graph
https://bugs.webkit.org/show_bug.cgi?id=79899

Reviewed by Filip Pizlo.

This will make it more convenient to insert nodes into the DFG.
With this capability we now place the Phi nodes in the corresponding
blocks.
Local CSE is modified to not to rely on the assumption of continuous
node indices in a block.
This is performance neutral on SunSpider, V8 and Kraken.

* dfg/DFGAbstractState.cpp:
(JSC::DFG::AbstractState::AbstractState):
(JSC::DFG::AbstractState::beginBasicBlock):
(JSC::DFG::AbstractState::execute):
(JSC::DFG::AbstractState::clobberStructures):
(JSC::DFG::AbstractState::mergeToSuccessors):
(JSC::DFG::AbstractState::dump):
* dfg/DFGAbstractState.h:
(JSC::DFG::AbstractState::forNode):
(AbstractState):
* dfg/DFGArithNodeFlagsInferencePhase.cpp:
(ArithNodeFlagsInferencePhase):
* dfg/DFGBasicBlock.h:
(JSC::DFG::BasicBlock::BasicBlock):
(BasicBlock):
* dfg/DFGByteCodeParser.cpp:
(JSC::DFG::ByteCodeParser::addToGraph):
(ByteCodeParser):
(JSC::DFG::ByteCodeParser::insertPhiNode):
(JSC::DFG::ByteCodeParser::handleInlining):
(JSC::DFG::ByteCodeParser::parseBlock):
(JSC::DFG::ByteCodeParser::processPhiStack):
(JSC::DFG::ByteCodeParser::linkBlock):
(JSC::DFG::ByteCodeParser::determineReachability):
(JSC::DFG::ByteCodeParser::parseCodeBlock):
* dfg/DFGCFAPhase.cpp:
(JSC::DFG::CFAPhase::performBlockCFA):
(CFAPhase):
* dfg/DFGCSEPhase.cpp:
(JSC::DFG::CSEPhase::CSEPhase):
(JSC::DFG::CSEPhase::endIndexForPureCSE):
(JSC::DFG::CSEPhase::pureCSE):
(JSC::DFG::CSEPhase::impureCSE):
(JSC::DFG::CSEPhase::globalVarLoadElimination):
(JSC::DFG::CSEPhase::getByValLoadElimination):
(JSC::DFG::CSEPhase::checkFunctionElimination):
(JSC::DFG::CSEPhase::checkStructureLoadElimination):
(JSC::DFG::CSEPhase::getByOffsetLoadElimination):
(JSC::DFG::CSEPhase::getPropertyStorageLoadElimination):
(JSC::DFG::CSEPhase::getIndexedPropertyStorageLoadElimination):
(JSC::DFG::CSEPhase::getScopeChainLoadElimination):
(JSC::DFG::CSEPhase::performNodeCSE):
(JSC::DFG::CSEPhase::performBlockCSE):
(CSEPhase):
* dfg/DFGGraph.cpp:
(JSC::DFG::Graph::dump):
* dfg/DFGPhase.cpp:
(JSC::DFG::Phase::beginPhase):
* dfg/DFGSpeculativeJIT.cpp:
(JSC::DFG::SpeculativeJIT::nonSpeculativeCompare):
(JSC::DFG::SpeculativeJIT::nonSpeculativeStrictEq):
(JSC::DFG::SpeculativeJIT::compilePeepHoleBranch):
(JSC::DFG::SpeculativeJIT::compile):
(JSC::DFG::SpeculativeJIT::compileStrictEqForConstant):
(JSC::DFG::SpeculativeJIT::compileStrictEq):
* dfg/DFGSpeculativeJIT.h:
(SpeculativeJIT):
(JSC::DFG::SpeculativeJIT::detectPeepHoleBranch):
(JSC::DFG::SpeculativeJIT::SpeculativeJIT):
* dfg/DFGSpeculativeJIT32_64.cpp:
(JSC::DFG::SpeculativeJIT::nonSpeculativeCompareNull):
* dfg/DFGSpeculativeJIT64.cpp:
(JSC::DFG::SpeculativeJIT::nonSpeculativeCompareNull):
* dfg/DFGVirtualRegisterAllocationPhase.cpp:
(JSC::DFG::VirtualRegisterAllocationPhase::run):

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

9 years agoDisable watchlist. It's been spamming CCs.
abarth@webkit.org [Thu, 1 Mar 2012 07:34:35 +0000 (07:34 +0000)]
Disable watchlist.  It's been spamming CCs.

* Scripts/webkitpy/tool/bot/stylequeuetask.py:
(StyleQueueTask.run):
* Scripts/webkitpy/tool/commands/queues_unittest.py:

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

9 years agoUnreviewed, gardening.
haraken@chromium.org [Thu, 1 Mar 2012 07:23:26 +0000 (07:23 +0000)]
Unreviewed, gardening.

* platform/chromium/test_expectations.txt:

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

9 years agoUnreviewed, rolling out r109309.
shinyak@chromium.org [Thu, 1 Mar 2012 07:10:42 +0000 (07:10 +0000)]
Unreviewed, rolling out r109309.
http://trac.webkit.org/changeset/109309
https://bugs.webkit.org/show_bug.cgi?id=80002

broke

* fast/dom/resources/shadow-test-driver.js:
(createContentWithSelect):
* fast/dom/shadow/content-element-move.html:

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

9 years agoUnreviewed. Rolled DEPS.
kinuko@chromium.org [Thu, 1 Mar 2012 06:54:16 +0000 (06:54 +0000)]
Unreviewed.  Rolled DEPS.

* DEPS:

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

9 years agoRefactoring: HTMLContentSelector should be InsertionPoint-aware.
shinyak@chromium.org [Thu, 1 Mar 2012 06:39:22 +0000 (06:39 +0000)]
Refactoring: HTMLContentSelector should be InsertionPoint-aware.
https://bugs.webkit.org/show_bug.cgi?id=79901

Reviewed by Hajime Morita.

ContentSelectorQuery took HTMLContentElement as argument, but patch changes it to take InsertionPoint instead.
If InsertionPoint is not HTMLContentElement, ContentSelectorQuery will selects the rest of light children.

Now InsertionPoint has pure virtual method 'select'. <shadow> will implement this as a method returning empty string.

* dom/ShadowRoot.cpp:
(WebCore::ShadowRoot::hasInsertionPoint):
* dom/ShadowRoot.h:
(ShadowRoot):
* dom/ShadowTree.cpp:
(WebCore::ShadowTree::needsReattachHostChildrenAndShadow):
(WebCore::ShadowTree::hostChildrenChanged):
* html/shadow/ContentSelectorQuery.cpp:
(WebCore::ContentSelectorQuery::ContentSelectorQuery):
(WebCore::ContentSelectorQuery::matches):
* html/shadow/ContentSelectorQuery.h:
(WebCore):
(ContentSelectorQuery):
* html/shadow/HTMLContentElement.cpp:
(WebCore::HTMLContentElement::detach):
* html/shadow/HTMLContentElement.h:
(WebCore::toHTMLContentElement):
(WebCore):
* html/shadow/HTMLContentSelector.cpp:
(WebCore::HTMLContentSelector::select):
* html/shadow/HTMLContentSelector.h:
(HTMLContentSelector):
* html/shadow/InsertionPoint.h:
(InsertionPoint):

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

9 years agoUnreviewed, gardening.
haraken@chromium.org [Thu, 1 Mar 2012 06:36:06 +0000 (06:36 +0000)]
Unreviewed, gardening.

* platform/chromium-mac-snowleopard/media/sources-fallback-codecs-expected.txt: Added.

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

9 years agoHandle CSSPropertySpeak in CSSStyleApplyProperty.
macpherson@chromium.org [Thu, 1 Mar 2012 06:22:39 +0000 (06:22 +0000)]
Handle CSSPropertySpeak in CSSStyleApplyProperty.
https://bugs.webkit.org/show_bug.cgi?id=79879

Reviewed by Eric Seidel.

No new tests / refactoring only.

* css/CSSStyleApplyProperty.cpp:
(WebCore::CSSStyleApplyProperty::CSSStyleApplyProperty):
* css/CSSStyleSelector.cpp:
(WebCore::CSSStyleSelector::collectMatchingRulesForList):
* rendering/style/RenderStyle.h:

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

9 years agoHandle CSSPropertyWebkitColumnAxis in CSSStyleApplyProperty.
macpherson@chromium.org [Thu, 1 Mar 2012 06:12:22 +0000 (06:12 +0000)]
Handle CSSPropertyWebkitColumnAxis in CSSStyleApplyProperty.
https://bugs.webkit.org/show_bug.cgi?id=79869

Reviewed by Eric Seidel.

No new tests / refactoring only.

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

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

9 years agocreateContentWithSelect in shadow-test-driver.js is not intuitive.
shinyak@chromium.org [Thu, 1 Mar 2012 05:57:05 +0000 (05:57 +0000)]
createContentWithSelect in shadow-test-driver.js is not intuitive.
https://bugs.webkit.org/show_bug.cgi?id=80002

Reviewed by Hajime Morita.

createContentWithSelect takes an agument 'fallback', but it used to create a text node
if the argument is missing. This is not intuitive at all.

This patch changes the createContentWithSelect behavior to make it intuitive.

* fast/dom/resources/shadow-test-driver.js:
(createContentWithSelect):
* fast/dom/shadow/content-element-move.html:

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

9 years agoThe JIT should not crash the entire process just because there is not
fpizlo@apple.com [Thu, 1 Mar 2012 05:47:19 +0000 (05:47 +0000)]
The JIT should not crash the entire process just because there is not
enough executable memory, if the LLInt is enabled
https://bugs.webkit.org/show_bug.cgi?id=79962
<rdar://problem/10922215>

Unreviewed, adding forgotten file.

* jit/JITCompilationEffort.h: Added.
(JSC):

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

9 years agoThe JIT should not crash the entire process just because there is not
fpizlo@apple.com [Thu, 1 Mar 2012 05:46:20 +0000 (05:46 +0000)]
The JIT should not crash the entire process just because there is not
enough executable memory, if the LLInt is enabled
https://bugs.webkit.org/show_bug.cgi?id=79962
<rdar://problem/10922215>

Reviewed by Gavin Barraclough.

Added the notion of JITCompilationEffort. If we're JIT'ing as a result of
a tier-up, then we set it to JITCompilationCanFail. Otherwise it's
JITCompilationMustSucceed. This preserves the old behavior of LLInt is
disabled or if we're compiling something that can't be interpreted (like
an OSR exit stub).

* JavaScriptCore.xcodeproj/project.pbxproj:
* assembler/ARMAssembler.cpp:
(JSC::ARMAssembler::executableCopy):
* assembler/ARMAssembler.h:
(ARMAssembler):
* assembler/AssemblerBuffer.h:
(JSC::AssemblerBuffer::executableCopy):
* assembler/LinkBuffer.h:
(JSC::LinkBuffer::LinkBuffer):
(JSC::LinkBuffer::~LinkBuffer):
(LinkBuffer):
(JSC::LinkBuffer::didFailToAllocate):
(JSC::LinkBuffer::isValid):
(JSC::LinkBuffer::linkCode):
(JSC::LinkBuffer::performFinalization):
* assembler/MIPSAssembler.h:
(JSC::MIPSAssembler::executableCopy):
* assembler/SH4Assembler.h:
(JSC::SH4Assembler::executableCopy):
* assembler/X86Assembler.h:
(JSC::X86Assembler::executableCopy):
(JSC::X86Assembler::X86InstructionFormatter::executableCopy):
* bytecode/CodeBlock.cpp:
(JSC::ProgramCodeBlock::jitCompileImpl):
(JSC::EvalCodeBlock::jitCompileImpl):
(JSC::FunctionCodeBlock::jitCompileImpl):
* bytecode/CodeBlock.h:
(JSC::CodeBlock::jitCompile):
(CodeBlock):
(ProgramCodeBlock):
(EvalCodeBlock):
(FunctionCodeBlock):
* dfg/DFGDriver.cpp:
(JSC::DFG::compile):
* dfg/DFGJITCompiler.cpp:
(JSC::DFG::JITCompiler::compile):
(JSC::DFG::JITCompiler::compileFunction):
* dfg/DFGJITCompiler.h:
(JITCompiler):
* jit/ExecutableAllocator.cpp:
(JSC::DemandExecutableAllocator::allocateNewSpace):
(JSC::ExecutableAllocator::allocate):
* jit/ExecutableAllocator.h:
(ExecutableAllocator):
* jit/ExecutableAllocatorFixedVMPool.cpp:
(JSC::ExecutableAllocator::allocate):
* jit/JIT.cpp:
(JSC::JIT::privateCompile):
* jit/JIT.h:
(JSC::JIT::compile):
(JIT):
* jit/JITCompilationEffort.h: Added.
(JSC):
* jit/JITDriver.h:
(JSC::jitCompileIfAppropriate):
(JSC::jitCompileFunctionIfAppropriate):
* llint/LLIntSlowPaths.cpp:
(LLInt):
(JSC::LLInt::jitCompileAndSetHeuristics):
(JSC::LLInt::entryOSR):
(JSC::LLInt::LLINT_SLOW_PATH_DECL):
* runtime/Executable.cpp:
(JSC::EvalExecutable::jitCompile):
(JSC::ProgramExecutable::jitCompile):
(JSC::FunctionExecutable::jitCompileForCall):
(JSC::FunctionExecutable::jitCompileForConstruct):
* runtime/Executable.h:
(EvalExecutable):
(ProgramExecutable):
(FunctionExecutable):
(JSC::FunctionExecutable::jitCompileFor):
* runtime/ExecutionHarness.h:
(JSC::prepareForExecution):
(JSC::prepareFunctionForExecution):

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

9 years agoRename DOMSelection to Selection
arv@chromium.org [Thu, 1 Mar 2012 05:34:33 +0000 (05:34 +0000)]
Rename DOMSelection to Selection
https://bugs.webkit.org/show_bug.cgi?id=79688

Reviewed by Adam Barth.

Source/WebCore:

No new tests. Existing tests have been updated to cover this.

* page/DOMSelection.idl:
* page/DOMWindow.idl:

LayoutTests:

* fast/dom/Window/window-properties-expected.txt:
* fast/dom/dom-constructors-expected.txt:
* fast/dom/dom-constructors.html:
* platform/gtk/fast/dom/Window/window-properties-expected.txt:
* platform/mac/fast/dom/Window/window-properties-expected.txt:
* platform/mac/fast/dom/Window/window-property-descriptors-expected.txt:
* platform/mac/fast/dom/prototype-inheritance-2-expected.txt:
* platform/qt-5.0-wk2/fast/dom/Window/window-properties-expected.txt:
* platform/qt/fast/dom/Window/window-properties-expected.txt:
* platform/win/fast/dom/Window/window-properties-expected.txt:

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

9 years agoIndexedDB: IDBDatabase.objectStoreNames and IDObjectStore.indexNames results should...
jsbell@chromium.org [Thu, 1 Mar 2012 05:22:57 +0000 (05:22 +0000)]
IndexedDB: IDBDatabase.objectStoreNames and IDObjectStore.indexNames results should be sorted
https://bugs.webkit.org/show_bug.cgi?id=79950

Reviewed by Tony Chang.

Source/WebCore:

Test: storage/indexeddb/list-ordering.html

* dom/DOMStringList.cpp: Added sort method, not exposed via IDL.
(WebCore::DOMStringList::sort):
(WebCore):
* dom/DOMStringList.h:
(DOMStringList):
* storage/IDBDatabaseBackendImpl.cpp:
(WebCore::IDBDatabaseBackendImpl::objectStoreNames):
* storage/IDBObjectStoreBackendImpl.cpp:
(WebCore::IDBObjectStoreBackendImpl::indexNames):

LayoutTests:

* storage/indexeddb/list-ordering-expected.txt: Added.
* storage/indexeddb/list-ordering.html: Added.

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

9 years ago[chromium] Estimate pixel count for frame rate control
wjmaclean@chromium.org [Thu, 1 Mar 2012 04:33:03 +0000 (04:33 +0000)]
[chromium] Estimate pixel count for frame rate control
https://bugs.webkit.org/show_bug.cgi?id=74982

Reviewed by James Robinson.

Source/WebCore:

Value checks added to unit tests.

Adds mechanism to compute and collect statistics on pixel overdraw for selected frames.

* platform/graphics/chromium/cc/CCLayerTreeHostImpl.cpp:
(WebCore::CCLayerTreeHostImpl::optimizeRenderPasses):
* platform/graphics/chromium/cc/CCQuadCuller.cpp:
(WebCore::wedgeProduct):
(WebCore):
(WebCore::quadArea):
(WebCore::CCQuadCuller::cullOccludedQuads):
* platform/graphics/chromium/cc/CCQuadCuller.h:
(CCQuadCuller):
* platform/graphics/chromium/cc/CCRenderPass.cpp:
(WebCore::CCRenderPass::optimizeQuads):
* platform/graphics/chromium/cc/CCRenderPass.h:
(CCOverdrawCounts):
(WebCore):
(CCRenderPass):

Source/WebKit/chromium:

Adds mechanism to compute and collect statistics on pixel overdraw for selected frames.

* tests/CCQuadCullerTest.cpp:
(WebCore):
(WebCore::TEST):

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

9 years agoUnreviewed, gardening.
haraken@chromium.org [Thu, 1 Mar 2012 04:26:39 +0000 (04:26 +0000)]
Unreviewed, gardening.

* platform/chromium-linux/fast/workers/storage/use-same-database-in-page-and-workers-expected.txt: Added.

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

9 years ago[Qt][WK2] Get rid of the #ifdef mess in LayerTreeHost[Proxy]
noam.rosenthal@nokia.com [Thu, 1 Mar 2012 04:22:28 +0000 (04:22 +0000)]
[Qt][WK2] Get rid of the #ifdef mess in LayerTreeHost[Proxy]
https://bugs.webkit.org/show_bug.cgi?id=79501

Source/JavaScriptCore:

Enable WTF_USE_UI_SIDE_COMPOSITING for Qt.

Reviewed by Kenneth Rohde Christiansen.

* wtf/Platform.h:

Source/WebKit2:

Use a new UI_SIDE_COMPOSITING flag instead of the several #ifdef flags we currently use.

Reviewed by Kenneth Rohde Christiansen.

* Shared/WebLayerTreeInfo.cpp:
* Shared/WebLayerTreeInfo.h:
* UIProcess/DrawingAreaProxy.cpp:
(WebKit):
* UIProcess/DrawingAreaProxy.h:
(DrawingAreaProxy):
* UIProcess/DrawingAreaProxyImpl.cpp:
(WebKit::DrawingAreaProxyImpl::DrawingAreaProxyImpl):
(WebKit::DrawingAreaProxyImpl::enterAcceleratedCompositingMode):
(WebKit):
* UIProcess/DrawingAreaProxyImpl.h:
(DrawingAreaProxyImpl):
* UIProcess/LayerTreeHostProxy.h:
(LayerTreeHostProxy):
* UIProcess/WebPageProxy.cpp:
(WebKit::WebPageProxy::didReceiveMessage):
* UIProcess/qt/LayerBackingStore.cpp:
* UIProcess/qt/LayerBackingStore.h:
* UIProcess/qt/LayerTreeHostProxyQt.cpp:
* WebProcess/WebCoreSupport/WebGraphicsLayer.cpp:
* WebProcess/WebCoreSupport/WebGraphicsLayer.h:
* WebProcess/WebPage/DrawingArea.h:
(DrawingArea):
* WebProcess/WebPage/DrawingAreaImpl.cpp:
(WebKit):
* WebProcess/WebPage/DrawingAreaImpl.h:
(DrawingAreaImpl):
* WebProcess/WebPage/LayerTreeHost.cpp:
(WebKit::LayerTreeHost::create):
* WebProcess/WebPage/qt/LayerTreeHostQt.cpp:
(WebKit::LayerTreeHostQt::purgeBackingStores):
* WebProcess/WebPage/qt/LayerTreeHostQt.h:
(LayerTreeHostQt):

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

9 years ago[BlackBerry]Make about:cache feature available in release version.
commit-queue@webkit.org [Thu, 1 Mar 2012 04:20:18 +0000 (04:20 +0000)]
[BlackBerry]Make about:cache feature available in release version.
https://bugs.webkit.org/show_bug.cgi?id=79866

Patch by Jason Liu <jason.liu@torchmobile.com.cn> on 2012-02-29
Reviewed by Antonio Gomes.

No tests.
* platform/network/blackberry/NetworkJob.cpp:
(WebCore::NetworkJob::handleAbout):

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

9 years ago[chromium] Fix navigation start time on cross-renderer navigation
simonjam@chromium.org [Thu, 1 Mar 2012 04:08:54 +0000 (04:08 +0000)]
[chromium] Fix navigation start time on cross-renderer navigation
https://bugs.webkit.org/show_bug.cgi?id=75922

Reviewed by Darin Fisher.

Source/WebCore:

* loader/DocumentLoadTiming.cpp:
(WebCore::DocumentLoadTiming::setNavigationStart): Added.
* loader/DocumentLoadTiming.h:

Source/WebKit/chromium:

* public/WebDataSource.h:
* src/WebDataSource.cpp:
(WebKit::WebDataSource::setNavigationStartTime): Added.
* src/WebDataSource.h:

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

9 years agoSVG <use> element allows invalid contents
commit-queue@webkit.org [Thu, 1 Mar 2012 03:54:24 +0000 (03:54 +0000)]
SVG <use> element allows invalid contents
https://bugs.webkit.org/show_bug.cgi?id=77764

Patch by Stephen Chenney <schenney@chromium.org> on 2012-02-29
Reviewed by Nikolas Zimmermann.

Source/WebCore:

Modify the isDisallowedElement method to disallow all of the
disallowed elements, instead of just a few. It is now a whitelist
implementation.

This also fixes bugs 78807, 78838 and 79798 related to memory
corruption issues.

Tests: svg/custom/bug78807.svg
       svg/custom/bug78838.html
       svg/custom/bug79798.html

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

LayoutTests:

These test all use invalid elements in the <use> and crash in the absence
of this patch. Existing tests cover the valid elements in <use>, so no
additional tests for those.

* svg/custom/bug78807-expected.txt: Added.
* svg/custom/bug78807.svg: Added.
* svg/custom/bug78838-expected.txt: Added.
* svg/custom/bug78838.html: Added.
* svg/custom/bug79798-expected.txt: Added.
* svg/custom/bug79798.html: Added.
* svg/custom/resources/bug78838.svg: Added.
* svg/custom/resources/bug79798.svg: Added.

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

9 years agoContinue the search for playable mime types among <source> children of <video> even...
fischman@chromium.org [Thu, 1 Mar 2012 03:38:02 +0000 (03:38 +0000)]
Continue the search for playable mime types among <source> children of <video> even when using data: URLs
https://bugs.webkit.org/show_bug.cgi?id=79934

Reviewed by Eric Carlson.

Source/WebCore:

Test: media/sources-fallback-codecs.html

* html/HTMLMediaElement.cpp:
(WebCore::HTMLMediaElement::selectNextSourceChild):

LayoutTests:

* media/sources-fallback-codecs-expected.txt: Added.
* media/sources-fallback-codecs.html: Added.

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

9 years ago[chromium] Add impl-thread support for animation-timing-function
commit-queue@webkit.org [Thu, 1 Mar 2012 03:34:31 +0000 (03:34 +0000)]
[chromium] Add impl-thread support for animation-timing-function
https://bugs.webkit.org/show_bug.cgi?id=79819

Patch by Ian Vollick <vollick@chromium.org> on 2012-02-29
Reviewed by James Robinson.

Source/WebCore:

* WebCore.gypi:
* platform/graphics/chromium/cc/CCKeyframedAnimationCurve.cpp:
(WebCore::CCKeyframe::CCKeyframe):
(WebCore):
(WebCore::CCKeyframe::~CCKeyframe):
(WebCore::CCKeyframe::time):
(WebCore::CCKeyframe::timingFunction):
(WebCore::CCFloatKeyframe::create):
(WebCore::CCFloatKeyframe::CCFloatKeyframe):
(WebCore::CCFloatKeyframe::~CCFloatKeyframe):
(WebCore::CCFloatKeyframe::value):
(WebCore::CCFloatKeyframe::clone):
(WebCore::CCTransformKeyframe::create):
(WebCore::CCTransformKeyframe::CCTransformKeyframe):
(WebCore::CCTransformKeyframe::~CCTransformKeyframe):
(WebCore::CCTransformKeyframe::value):
(WebCore::CCTransformKeyframe::clone):
(WebCore::CCKeyframedFloatAnimationCurve::create):
(WebCore::CCKeyframedFloatAnimationCurve::CCKeyframedFloatAnimationCurve):
(WebCore::CCKeyframedFloatAnimationCurve::addKeyframe):
(WebCore::CCKeyframedFloatAnimationCurve::duration):
(WebCore::CCKeyframedFloatAnimationCurve::clone):
(WebCore::CCKeyframedFloatAnimationCurve::getValue):
(WebCore::CCKeyframedTransformAnimationCurve::create):
(WebCore::CCKeyframedTransformAnimationCurve::CCKeyframedTransformAnimationCurve):
(WebCore::CCKeyframedTransformAnimationCurve::~CCKeyframedTransformAnimationCurve):
(WebCore::CCKeyframedTransformAnimationCurve::addKeyframe):
(WebCore::CCKeyframedTransformAnimationCurve::duration):
(WebCore::CCKeyframedTransformAnimationCurve::clone):
(WebCore::CCKeyframedTransformAnimationCurve::getValue):
* platform/graphics/chromium/cc/CCKeyframedAnimationCurve.h:
(CCKeyframe):
(CCFloatKeyframe):
(WebCore):
(CCTransformKeyframe):
(CCKeyframedFloatAnimationCurve):
(CCKeyframedTransformAnimationCurve):
* platform/graphics/chromium/cc/CCLayerAnimationController.cpp:
* platform/graphics/chromium/cc/CCTimingFunction.cpp: Added.
(WebCore):
(WebCore::CCTimingFunction::CCTimingFunction):
(WebCore::CCTimingFunction::~CCTimingFunction):
(WebCore::CCTimingFunction::duration):
(WebCore::CCCubicBezierTimingFunction::create):
(WebCore::CCCubicBezierTimingFunction::CCCubicBezierTimingFunction):
(WebCore::CCCubicBezierTimingFunction::~CCCubicBezierTimingFunction):
(WebCore::CCCubicBezierTimingFunction::getValue):
(WebCore::CCCubicBezierTimingFunction::clone):
(WebCore::CCEaseTimingFunction::create):
(WebCore::CCEaseInTimingFunction::create):
(WebCore::CCEaseOutTimingFunction::create):
(WebCore::CCEaseInOutTimingFunction::create):
* platform/graphics/chromium/cc/CCTimingFunction.h: Added.
(WebCore):
(CCTimingFunction):
(CCCubicBezierTimingFunction):
(CCEaseTimingFunction):
(CCEaseInTimingFunction):
(CCEaseOutTimingFunction):
(CCEaseInOutTimingFunction):

Source/WebKit/chromium:

* tests/CCKeyframedAnimationCurveTest.cpp:
(WebCore::TEST):
(WebCore):

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

9 years agoneed to clone the gpu baselines and expectations into the new "virtual" dir
dpranke@chromium.org [Thu, 1 Mar 2012 02:51:45 +0000 (02:51 +0000)]
need to clone the gpu baselines and expectations into the new "virtual" dir
https://bugs.webkit.org/show_bug.cgi?id=79956

Tools:

Reviewed by Adam Barth.

* Scripts/webkitpy/layout_tests/port/chromium.py:
(ChromiumPort.virtual_test_suites):

LayoutTests:

Unreviewed, expectations change and new baselines.

* platform/chromium-linux/platform/chromium/virtual/gpu/fast/canvas/arc360-expected.png: Added.
* platform/chromium-linux/platform/chromium/virtual/gpu/fast/canvas/canvas-before-css-expected.png: Added.
* platform/chromium-linux/platform/chromium/virtual/gpu/fast/canvas/canvas-bg-expected.png: Added.
* platform/chromium-linux/platform/chromium/virtual/gpu/fast/canvas/canvas-bg-expected.txt: Added.
* platform/chromium-linux/platform/chromium/virtual/gpu/fast/canvas/canvas-composite-expected.png: Added.
* platform/chromium-linux/platform/chromium/virtual/gpu/fast/canvas/canvas-resize-reset-expected.png: Added.
* platform/chromium-linux/platform/chromium/virtual/gpu/fast/canvas/canvas-text-alignment-expected.png: Added.
* platform/chromium-linux/platform/chromium/virtual/gpu/fast/canvas/canvas-text-baseline-expected.png: Added.
* platform/chromium-linux/platform/chromium/virtual/gpu/fast/canvas/canvas-transforms-during-path-expected.png: Added.
* platform/chromium-linux/platform/chromium/virtual/gpu/fast/canvas/canvasDrawingIntoSelf-expected.png: Added.
* platform/chromium-linux/platform/chromium/virtual/gpu/fast/canvas/drawImage-expected.png: Added.
* platform/chromium-linux/platform/chromium/virtual/gpu/fast/canvas/fill-stroke-clip-reset-path-expected.png: Added.
* platform/chromium-linux/platform/chromium/virtual/gpu/fast/canvas/fillrect-gradient-zero-stops-expected.png: Added.
* platform/chromium-linux/platform/chromium/virtual/gpu/fast/canvas/fillrect_gradient-expected.png: Added.
* platform/chromium-linux/platform/chromium/virtual/gpu/fast/canvas/image-object-in-canvas-expected.png: Added.
* platform/chromium-linux/platform/chromium/virtual/gpu/fast/canvas/image-pattern-rotate-expected.png: Added.
* platform/chromium-linux/platform/chromium/virtual/gpu/fast/canvas/patternfill-repeat-expected.png: Added.
* platform/chromium-linux/platform/chromium/virtual/gpu/fast/canvas/quadraticCurveTo-expected.png: Added.
* platform/chromium-linux/platform/chromium/virtual/gpu/fast/canvas/setWidthResetAfterForcedRender-expected.png: Added.
* platform/chromium-linux/platform/chromium/virtual/gpu/fast/canvas/shadow-offset-1-expected.png: Added.
* platform/chromium-linux/platform/chromium/virtual/gpu/fast/canvas/shadow-offset-2-expected.png: Added.
* platform/chromium-linux/platform/chromium/virtual/gpu/fast/canvas/shadow-offset-3-expected.png: Added.
* platform/chromium-linux/platform/chromium/virtual/gpu/fast/canvas/shadow-offset-4-expected.png: Added.
* platform/chromium-linux/platform/chromium/virtual/gpu/fast/canvas/shadow-offset-5-expected.png: Added.
* platform/chromium-linux/platform/chromium/virtual/gpu/fast/canvas/shadow-offset-6-expected.png: Added.
* platform/chromium-linux/platform/chromium/virtual/gpu/fast/canvas/shadow-offset-7-expected.png: Added.
* platform/chromium-linux/platform/chromium/virtual/gpu/fast/canvas/toDataURL-alpha-expected.png: Added.
* platform/chromium-linux/platform/chromium/virtual/gpu/fast/canvas/zero-size-fill-rect-expected.png: Added.
* platform/chromium-mac/platform/chromium/virtual/gpu/canvas/philip/2d.gradient.radial.cone.cylinder-expected.txt: Added.
* platform/chromium-mac/platform/chromium/virtual/gpu/canvas/philip/2d.line.width.basic-expected.txt: Added.
* platform/chromium-mac/platform/chromium/virtual/gpu/canvas/philip/2d.line.width.transformed-expected.txt: Added.
* platform/chromium-mac/platform/chromium/virtual/gpu/canvas/philip/2d.path.arcTo.shape.curve1-expected.txt: Added.
* platform/chromium-mac/platform/chromium/virtual/gpu/canvas/philip/2d.path.arcTo.shape.curve2-expected.txt: Added.
* platform/chromium-mac/platform/chromium/virtual/gpu/canvas/philip/2d.shadow.enable.blur-expected.txt: Added.
* platform/chromium-mac/platform/chromium/virtual/gpu/canvas/philip/2d.text.draw.fontface.notinpage-expected.txt: Added.
* platform/chromium-mac/platform/chromium/virtual/gpu/canvas/philip/2d.transformation.setTransform.skewed-expected.txt: Added.
* platform/chromium-mac/platform/chromium/virtual/gpu/canvas/philip/2d.transformation.transform.skewed-expected.txt: Added.
* platform/chromium-mac/platform/chromium/virtual/gpu/fast/canvas/canvas-as-image-expected.png: Added.
* platform/chromium-mac/platform/chromium/virtual/gpu/fast/canvas/canvas-bg-expected.png: Added.
* platform/chromium-mac/platform/chromium/virtual/gpu/fast/canvas/canvas-bg-zoom-expected.png: Added.
* platform/chromium-mac/platform/chromium/virtual/gpu/fast/canvas/canvas-composite-expected.png: Added.
* platform/chromium-mac/platform/chromium/virtual/gpu/fast/canvas/canvas-composite-fill-repaint-expected.png: Added.
* platform/chromium-mac/platform/chromium/virtual/gpu/fast/canvas/canvas-composite-transformclip-expected.png: Added.
* platform/chromium-mac/platform/chromium/virtual/gpu/fast/canvas/canvas-currentColor-expected.txt: Added.
* platform/chromium-mac/platform/chromium/virtual/gpu/fast/canvas/canvas-draw-canvas-on-canvas-shadow-expected.txt: Added.
* platform/chromium-mac/platform/chromium/virtual/gpu/fast/canvas/canvas-fillPath-shadow-expected.txt: Added.
* platform/chromium-mac/platform/chromium/virtual/gpu/fast/canvas/canvas-scale-strokePath-shadow-expected.txt: Added.
* platform/chromium-mac/platform/chromium/virtual/gpu/fast/canvas/canvas-shadow-expected.txt: Added.
* platform/chromium-mac/platform/chromium/virtual/gpu/fast/canvas/canvas-text-alignment-expected.png: Added.
* platform/chromium-mac/platform/chromium/virtual/gpu/fast/canvas/canvas-text-baseline-expected.png: Added.
* platform/chromium-mac/platform/chromium/virtual/gpu/fast/canvas/canvas-transform-skewed-expected.png: Added.
* platform/chromium-mac/platform/chromium/virtual/gpu/fast/canvas/canvas-transforms-during-path-expected.png: Added.
* platform/chromium-mac/platform/chromium/virtual/gpu/fast/canvas/fillrect-gradient-zero-stops-expected.png: Added.
* platform/chromium-mac/platform/chromium/virtual/gpu/fast/canvas/fillrect_gradient-expected.png: Added.
* platform/chromium-mac/platform/chromium/virtual/gpu/fast/canvas/image-object-in-canvas-expected.png: Added.
* platform/chromium-mac/platform/chromium/virtual/gpu/fast/canvas/image-pattern-rotate-expected.png: Added.
* platform/chromium-mac/platform/chromium/virtual/gpu/fast/canvas/patternfill-repeat-expected.png: Added.
* platform/chromium-mac/platform/chromium/virtual/gpu/fast/canvas/quadraticCurveTo-expected.png: Added.
* platform/chromium-mac/platform/chromium/virtual/gpu/fast/canvas/setWidthResetAfterForcedRender-expected.png: Added.
* platform/chromium-win/platform/chromium/virtual/gpu/fast/canvas/arc360-expected.png: Added.
* platform/chromium-win/platform/chromium/virtual/gpu/fast/canvas/canvas-as-image-expected.png: Added.
* platform/chromium-win/platform/chromium/virtual/gpu/fast/canvas/canvas-as-image-expected.txt: Added.
* platform/chromium-win/platform/chromium/virtual/gpu/fast/canvas/canvas-as-image-incremental-repaint-expected.png: Added.
* platform/chromium-win/platform/chromium/virtual/gpu/fast/canvas/canvas-as-image-incremental-repaint-expected.txt: Added.
* platform/chromium-win/platform/chromium/virtual/gpu/fast/canvas/canvas-before-css-expected.png: Added.
* platform/chromium-win/platform/chromium/virtual/gpu/fast/canvas/canvas-bg-expected.png: Added.
* platform/chromium-win/platform/chromium/virtual/gpu/fast/canvas/canvas-bg-expected.txt: Added.
* platform/chromium-win/platform/chromium/virtual/gpu/fast/canvas/canvas-bg-zoom-expected.png: Added.
* platform/chromium-win/platform/chromium/virtual/gpu/fast/canvas/canvas-bg-zoom-expected.txt: Added.
* platform/chromium-win/platform/chromium/virtual/gpu/fast/canvas/canvas-composite-expected.png: Added.
* platform/chromium-win/platform/chromium/virtual/gpu/fast/canvas/canvas-composite-fill-repaint-expected.png: Added.
* platform/chromium-win/platform/chromium/virtual/gpu/fast/canvas/canvas-composite-transformclip-expected.png: Added.
* platform/chromium-win/platform/chromium/virtual/gpu/fast/canvas/canvas-empty-image-pattern-expected.png: Added.
* platform/chromium-win/platform/chromium/virtual/gpu/fast/canvas/canvas-resize-reset-expected.png: Added.
* platform/chromium-win/platform/chromium/virtual/gpu/fast/canvas/canvas-text-alignment-expected.png: Added.
* platform/chromium-win/platform/chromium/virtual/gpu/fast/canvas/canvas-text-baseline-expected.png: Added.
* platform/chromium-win/platform/chromium/virtual/gpu/fast/canvas/canvas-transform-identity-expected.png: Added.
* platform/chromium-win/platform/chromium/virtual/gpu/fast/canvas/canvas-transform-infinity-expected.png: Added.
* platform/chromium-win/platform/chromium/virtual/gpu/fast/canvas/canvas-transform-multiply-expected.png: Added.
* platform/chromium-win/platform/chromium/virtual/gpu/fast/canvas/canvas-transform-nan-expected.png: Added.
* platform/chromium-win/platform/chromium/virtual/gpu/fast/canvas/canvas-transform-non-invertible-expected.png: Added.
* platform/chromium-win/platform/chromium/virtual/gpu/fast/canvas/canvas-transform-skewed-expected.png: Added.
* platform/chromium-win/platform/chromium/virtual/gpu/fast/canvas/canvas-transforms-during-path-expected.png: Added.
* platform/chromium-win/platform/chromium/virtual/gpu/fast/canvas/canvasDrawingIntoSelf-expected.png: Added.
* platform/chromium-win/platform/chromium/virtual/gpu/fast/canvas/drawImage-expected.png: Added.
* platform/chromium-win/platform/chromium/virtual/gpu/fast/canvas/fill-stroke-clip-reset-path-expected.png: Added.
* platform/chromium-win/platform/chromium/virtual/gpu/fast/canvas/fillrect-gradient-zero-stops-expected.png: Added.
* platform/chromium-win/platform/chromium/virtual/gpu/fast/canvas/fillrect_gradient-expected.png: Added.
* platform/chromium-win/platform/chromium/virtual/gpu/fast/canvas/gradient-add-second-start-end-stop-expected.png: Added.
* platform/chromium-win/platform/chromium/virtual/gpu/fast/canvas/image-object-in-canvas-expected.png: Added.
* platform/chromium-win/platform/chromium/virtual/gpu/fast/canvas/image-pattern-rotate-expected.png: Added.
* platform/chromium-win/platform/chromium/virtual/gpu/fast/canvas/patternfill-repeat-expected.png: Added.
* platform/chromium-win/platform/chromium/virtual/gpu/fast/canvas/quadraticCurveTo-expected.png: Added.
* platform/chromium-win/platform/chromium/virtual/gpu/fast/canvas/setWidthResetAfterForcedRender-expected.png: Added.
* platform/chromium-win/platform/chromium/virtual/gpu/fast/canvas/shadow-offset-1-expected.png: Added.
* platform/chromium-win/platform/chromium/virtual/gpu/fast/canvas/shadow-offset-2-expected.png: Added.
* platform/chromium-win/platform/chromium/virtual/gpu/fast/canvas/shadow-offset-3-expected.png: Added.
* platform/chromium-win/platform/chromium/virtual/gpu/fast/canvas/shadow-offset-4-expected.png: Added.
* platform/chromium-win/platform/chromium/virtual/gpu/fast/canvas/shadow-offset-5-expected.png: Added.
* platform/chromium-win/platform/chromium/virtual/gpu/fast/canvas/shadow-offset-6-expected.png: Added.
* platform/chromium-win/platform/chromium/virtual/gpu/fast/canvas/shadow-offset-7-expected.png: Added.
* platform/chromium-win/platform/chromium/virtual/gpu/fast/canvas/toDataURL-alpha-expected.png: Added.
* platform/chromium-win/platform/chromium/virtual/gpu/fast/canvas/zero-size-fill-rect-expected.png: Added.
* platform/chromium/test_expectations.txt:
* platform/chromium/virtual/gpu/README.txt: Added.
* platform/chromium/virtual/gpu/canvas/philip/README.txt: Added.
* platform/chromium/virtual/gpu/fast/canvas/README.txt: Added.

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

9 years ago[CMake] Unreviewed, fix build on 64-bit platforms with SHARED_CORE=ON after r109197.
kubo@profusion.mobi [Thu, 1 Mar 2012 02:39:26 +0000 (02:39 +0000)]
[CMake] Unreviewed, fix build on 64-bit platforms with SHARED_CORE=ON after r109197.
https://bugs.webkit.org/show_bug.cgi?id=79965

This partially reverts r66714, in that whether -fPIC is passed to
the compiler does not depend on the value of SHARED_CORE anymore:
since we always build WTF as a static library, it will always need
-fPIC because our shared libraries are built with it.

* Source/cmake/WebKitHelpers.cmake: Always pass -fPIC to
STATIC_LIBRARY targets.

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

9 years agoSwitch to using json rather than simplejson now that the master is using Python 2.7.
mrowe@apple.com [Thu, 1 Mar 2012 02:38:03 +0000 (02:38 +0000)]
Switch to using json rather than simplejson now that the master is using Python 2.7.

* BuildSlaveSupport/build.webkit.org-config/master.cfg:
(loadBuilderConfig):

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

9 years agoUnreviewed gardening.
haraken@chromium.org [Thu, 1 Mar 2012 02:28:22 +0000 (02:28 +0000)]
Unreviewed gardening.

* platform/chromium/fast/regions/select-in-region-crash-expected.txt: Added.

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

9 years ago[CMake] Unreviewed, fix build on 64-bit platforms with SHARED_CORE=ON after r109197.
kubo@profusion.mobi [Thu, 1 Mar 2012 02:09:25 +0000 (02:09 +0000)]
[CMake] Unreviewed, fix build on 64-bit platforms with SHARED_CORE=ON after r109197.

This partially reverts r66714, in that whether -fPIC is passed to
the compiler does not depend on the value of SHARED_CORE anymore:
since we always build WTF as a static library, it will always need
-fPIC because our shared libraries are built with it.

* Source/cmake/WebKitHelpers.cmake: Always pass -fPIC to
STATIC_LIBRARY targets.

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

9 years agoUnreviewed, marking RegExp.html as FAIL in Chromium/V8
haraken@chromium.org [Thu, 1 Mar 2012 01:56:39 +0000 (01:56 +0000)]
Unreviewed, marking RegExp.html as FAIL in Chromium/V8
since it requires a fix in V8.

* platform/chromium/test_expectations.txt:

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