WebKit-https.git
8 years agoRemove useless const modifier from KURL::init
ddkilzer@apple.com [Tue, 15 Nov 2011 19:16:34 +0000 (19:16 +0000)]
Remove useless const modifier from KURL::init
<http://webkit.org/b/72387>

Reviewed by Darin Adler.

* platform/KURL.cpp:
(WebCore::KURL::init): Remove useless const.

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

8 years agoediting/pasteboard/drag-drop-dead-frame.html is flaky
tonyg@chromium.org [Tue, 15 Nov 2011 19:16:17 +0000 (19:16 +0000)]
editing/pasteboard/drag-drop-dead-frame.html is flaky
https://bugs.webkit.org/show_bug.cgi?id=72379

Reviewed by Adam Barth.

* editing/pasteboard/drag-drop-dead-frame.html: Wait for iframe to load before running test.
* platform/chromium-win/editing/pasteboard/drag-drop-dead-frame-expected.txt: Rebaseline.
* platform/gtk/editing/pasteboard/drag-drop-dead-frame-expected.txt: Speculative rebaseline based on change to chromium.
* platform/mac/editing/pasteboard/drag-drop-dead-frame-expected.txt: Speculative rebaseline based on change to chromium.
* platform/qt/editing/pasteboard/drag-drop-dead-frame-expected.txt: Speculative rebaseline based on change to chromium.

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

8 years agoChange layout tests for cuechange, enter, and exit events to check the order
annacc@chromium.org [Tue, 15 Nov 2011 19:14:53 +0000 (19:14 +0000)]
Change layout tests for cuechange, enter, and exit events to check the order
rather than the timing of the events (since actual timing can not be guaranteed).
https://bugs.webkit.org/show_bug.cgi?id=72269

Reviewed by Tony Gentilcore.

* media/track/track-cues-cuechange-expected.txt:
* media/track/track-cues-cuechange.html:
* media/track/track-cues-enter-exit-expected.txt:
* media/track/track-cues-enter-exit.html:
* platform/chromium/test_expectations.txt:

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

8 years agoenable new flexbox tests everywhere
tony@chromium.org [Tue, 15 Nov 2011 18:25:08 +0000 (18:25 +0000)]
enable new flexbox tests everywhere
https://bugs.webkit.org/show_bug.cgi?id=72325

Reviewed by Ojan Vafai.

* platform/chromium/test_expectations.txt:
* platform/efl/Skipped:
* platform/gtk/Skipped:
* platform/mac/Skipped:
* platform/qt/Skipped:
* platform/win/Skipped:
* platform/wincairo/Skipped:

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

8 years agoREGRESSION (r91125): Polyline tool in google docs is broken
commit-queue@webkit.org [Tue, 15 Nov 2011 18:21:17 +0000 (18:21 +0000)]
REGRESSION (r91125): Polyline tool in google docs is broken
https://bugs.webkit.org/show_bug.cgi?id=65796

This adds test to ensure that the bug does not reappear unnoticed.

Patch by Stephen Chenney <schenney@chromium.org> on 2011-11-15
Reviewed by Nikolas Zimmermann.

* svg/custom/zero-path-square-cap-rendering3-expected.png: Added.
* svg/custom/zero-path-square-cap-rendering3-expected.txt: Added.
* svg/custom/zero-path-square-cap-rendering3.svg: Added.

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

8 years agoHostWindow invalidation functions should use root view coordinates
andersca@apple.com [Tue, 15 Nov 2011 17:54:52 +0000 (17:54 +0000)]
HostWindow invalidation functions should use root view coordinates
https://bugs.webkit.org/show_bug.cgi?id=72338

Reviewed by Dan Bernstein.

Source/WebCore:

Rename invalidateWindow to invalidateRootView, and invalidateContentsAndWindow
to invalidateContentsAndRootView. Make sure that the rects passed to the renamed functions
are in root view coordinates by changing contentsToWindow calls to contentsToRootView.

In practice this doesn't matter because for all platforms except Mac WebKit1, root view coordinates
and window coordinates are equivalent, and Mac WebKit1 doesn't use these invalidation functions.

* loader/EmptyClients.h:
* page/Chrome.cpp:
(WebCore::Chrome::invalidateRootView):
(WebCore::Chrome::invalidateContentsAndRootView):
* page/Chrome.h:
* page/ChromeClient.h:
* page/Frame.cpp:
(WebCore::Frame::tiledBackingStorePaintEnd):
* page/FrameView.cpp:
(WebCore::FrameView::invalidateRect):
(WebCore::FrameView::scrollContentsFastPath):
* platform/HostWindow.h:
* platform/ScrollView.cpp:
(WebCore::ScrollView::rectToCopyOnScroll):
(WebCore::ScrollView::scrollContents):
(WebCore::ScrollView::wheelEvent):
* platform/chromium/FramelessScrollView.cpp:
(WebCore::FramelessScrollView::invalidateRect):
* svg/graphics/SVGImage.cpp:
(WebCore::SVGImageChromeClient::invalidateContentsAndRootView):

Source/WebKit/chromium:

* src/ChromeClientImpl.cpp:
(WebKit::ChromeClientImpl::invalidateRootView):
(WebKit::ChromeClientImpl::invalidateContentsAndRootView):
(WebKit::ChromeClientImpl::invalidateContentsForSlowScroll):
* src/ChromeClientImpl.h:
* src/WebPopupMenuImpl.cpp:
(WebKit::WebPopupMenuImpl::invalidateRootView):
(WebKit::WebPopupMenuImpl::invalidateContentsAndRootView):
(WebKit::WebPopupMenuImpl::invalidateContentsForSlowScroll):
* src/WebPopupMenuImpl.h:

Source/WebKit/efl:

* WebCoreSupport/ChromeClientEfl.cpp:
(WebCore::ChromeClientEfl::invalidateRootView):
(WebCore::ChromeClientEfl::invalidateContentsAndRootView):
(WebCore::ChromeClientEfl::invalidateContentsForSlowScroll):
* WebCoreSupport/ChromeClientEfl.h:

Source/WebKit/gtk:

* WebCoreSupport/ChromeClientGtk.cpp:
(WebKit::ChromeClient::invalidateRootView):
(WebKit::ChromeClient::invalidateContentsAndRootView):
(WebKit::ChromeClient::invalidateContentsForSlowScroll):
* WebCoreSupport/ChromeClientGtk.h:

Source/WebKit/mac:

* WebCoreSupport/WebChromeClient.h:
* WebCoreSupport/WebChromeClient.mm:
(WebChromeClient::invalidateRootView):
(WebChromeClient::invalidateContentsAndRootView):
(WebChromeClient::invalidateContentsForSlowScroll):

Source/WebKit/qt:

* WebCoreSupport/ChromeClientQt.cpp:
(WebCore::ChromeClientQt::invalidateRootView):
(WebCore::ChromeClientQt::invalidateContentsAndRootView):
(WebCore::ChromeClientQt::invalidateContentsForSlowScroll):
* WebCoreSupport/ChromeClientQt.h:

Source/WebKit/win:

* WebCoreSupport/WebChromeClient.cpp:
(WebChromeClient::invalidateRootView):
(WebChromeClient::invalidateContentsAndRootView):
* WebCoreSupport/WebChromeClient.h:

Source/WebKit/wince:

* WebCoreSupport/ChromeClientWinCE.cpp:
(WebKit::ChromeClientWinCE::invalidateRootView):
(WebKit::ChromeClientWinCE::invalidateContentsAndRootView):
(WebKit::ChromeClientWinCE::invalidateContentsForSlowScroll):
(WebKit::ChromeClientWinCE::scroll):
* WebCoreSupport/ChromeClientWinCE.h:

Source/WebKit/wx:

* WebKitSupport/ChromeClientWx.cpp:
(WebCore::ChromeClientWx::invalidateRootView):
(WebCore::ChromeClientWx::invalidateContentsForSlowScroll):
(WebCore::ChromeClientWx::invalidateContentsAndRootView):
* WebKitSupport/ChromeClientWx.h:

Source/WebKit2:

* WebProcess/WebCoreSupport/WebChromeClient.cpp:
(WebKit::WebChromeClient::invalidateRootView):
(WebKit::WebChromeClient::invalidateContentsAndRootView):
* WebProcess/WebCoreSupport/WebChromeClient.h:

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

8 years agoFix invalid markup in some tests
arv@chromium.org [Tue, 15 Nov 2011 17:52:02 +0000 (17:52 +0000)]
Fix invalid markup in some tests
https://bugs.webkit.org/show_bug.cgi?id=72391

Reviewed by Ojan Vafai.

These tests had <div id="console"></p> in them which causes a lot of extra whitespace.

* fast/dom/HTMLElement/attr-dir-auto-change-before-text-node-expected.txt:
* fast/dom/HTMLElement/attr-dir-auto-change-before-text-node.html:
* fast/dom/HTMLElement/attr-dir-auto-change-child-node-expected.txt:
* fast/dom/HTMLElement/attr-dir-auto-change-child-node.html:
* fast/dom/HTMLElement/attr-dir-auto-change-text-expected.txt:
* fast/dom/HTMLElement/attr-dir-auto-change-text-form-control-expected.txt:
* fast/dom/HTMLElement/attr-dir-auto-change-text-form-control.html:
* fast/dom/HTMLElement/attr-dir-auto-change-text.html:
* fast/dom/HTMLElement/attr-dir-auto-children-expected.txt:
* fast/dom/HTMLElement/attr-dir-auto-children.html:
* fast/dom/HTMLElement/attr-dir-auto-expected.txt:
* fast/dom/HTMLElement/attr-dir-auto-remove-add-children-expected.txt:
* fast/dom/HTMLElement/attr-dir-auto-remove-add-children.html:
* fast/dom/HTMLElement/attr-dir-auto-text-form-control-child-expected.txt:
* fast/dom/HTMLElement/attr-dir-auto-text-form-control-child.html:
* fast/dom/HTMLElement/attr-dir-auto-text-form-control-expected.txt:
* fast/dom/HTMLElement/attr-dir-auto-text-form-control.html:
* fast/dom/HTMLElement/attr-dir-auto.html:
* fast/dom/HTMLElement/attr-dir-value-change-expected.txt:
* fast/dom/HTMLElement/attr-dir-value-change.html:
* fast/dom/HTMLElement/attr-empty-string-expected.txt:
* fast/dom/HTMLElement/attr-empty-string.html:
* fast/dom/HTMLElement/attr-false-string-expected.txt:
* fast/dom/HTMLElement/attr-false-string.html:
* fast/dom/HTMLElement/attr-invalid-string-expected.txt:
* fast/dom/HTMLElement/attr-invalid-string.html:
* fast/dom/HTMLElement/attr-missing-ancestor-false-expected.txt:
* fast/dom/HTMLElement/attr-missing-ancestor-false.html:
* fast/dom/HTMLElement/attr-missing-ancestor-true-expected.txt:
* fast/dom/HTMLElement/attr-missing-ancestor-true.html:
* fast/dom/HTMLElement/attr-missing-parent-ancestor-missing-expected.txt:
* fast/dom/HTMLElement/attr-missing-parent-ancestor-missing.html:
* fast/dom/HTMLElement/attr-missing-parent-false-expected.txt:
* fast/dom/HTMLElement/attr-missing-parent-false.html:
* fast/dom/HTMLElement/attr-missing-parent-true-expected.txt:
* fast/dom/HTMLElement/attr-missing-parent-true.html:
* fast/dom/HTMLElement/attr-true-string-expected.txt:
* fast/dom/HTMLElement/attr-true-string.html:
* fast/dom/HTMLElement/iscontenteditable-designmodeon-allinherit-expected.txt:
* fast/dom/HTMLElement/iscontenteditable-designmodeon-allinherit-subframe-expected.txt:
* fast/dom/HTMLElement/iscontenteditable-designmodeon-allinherit-subframe.html:
* fast/dom/HTMLElement/iscontenteditable-designmodeon-allinherit.html:
* fast/dom/HTMLElement/iscontenteditable-designmodeon-ancestor-expected.txt:
* fast/dom/HTMLElement/iscontenteditable-designmodeon-ancestor.html:
* fast/dom/HTMLElement/iscontenteditable-designmodeon-expected.txt:
* fast/dom/HTMLElement/iscontenteditable-designmodeon.html:
* fast/dom/HTMLElement/set-false-expected.txt:
* fast/dom/HTMLElement/set-false.html:
* fast/dom/HTMLElement/set-inherit-parent-false-expected.txt:
* fast/dom/HTMLElement/set-inherit-parent-false.html:
* fast/dom/HTMLElement/set-inherit-parent-true-expected.txt:
* fast/dom/HTMLElement/set-inherit-parent-true.html:
* fast/dom/HTMLElement/set-invalid-value-expected.txt:
* fast/dom/HTMLElement/set-invalid-value.html:
* fast/dom/HTMLElement/set-true-expected.txt:
* fast/dom/HTMLElement/set-true.html:
* fast/dom/HTMLElement/set-value-caseinsensitive-expected.txt:
* fast/dom/HTMLElement/set-value-caseinsensitive.html:
* fast/dom/Orientation/create-event-orientationchange.html:

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

8 years agoUnreviewed, GTK rebaseline.
philn@webkit.org [Tue, 15 Nov 2011 17:30:52 +0000 (17:30 +0000)]
Unreviewed, GTK rebaseline.

* platform/gtk/fast/dom/Window/window-properties-expected.txt:

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

8 years agoDon't use File::Slurp for run-leaks unit tests
ddkilzer@apple.com [Tue, 15 Nov 2011 17:25:51 +0000 (17:25 +0000)]
Don't use File::Slurp for run-leaks unit tests
<http://webkit.org/b/72356>

Reviewed by Daniel Bates.

* Scripts/webkitperl/run-leaks_unittest/RunLeaks.pm: Added.
* Scripts/webkitperl/run-leaks_unittest/run-leaks-report-v1.0.pl:
Extracted common package logic into RunLeaks.pm.  Fixed call to
RunLeaks::parseLeaksOutput().
* Scripts/webkitperl/run-leaks_unittest/run-leaks-report-v2.0-new.pl: Ditto.
* Scripts/webkitperl/run-leaks_unittest/run-leaks-report-v2.0-old.pl: Ditto.

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

8 years agoHandle svn 1.7 when detecting whether a directory is in an svn checkout.
commit-queue@webkit.org [Tue, 15 Nov 2011 16:37:58 +0000 (16:37 +0000)]
Handle svn 1.7 when detecting whether a directory is in an svn checkout.
https://bugs.webkit.org/show_bug.cgi?id=72349

Patch by Peter Kasting <pkasting@google.com> on 2011-11-15
Reviewed by Adam Roben.

* Scripts/VCSUtils.pm:
(isSVNDirectory):

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

8 years agoImplement maxWidth for fillText and strokeText, fixing the canvas/philip/tests/2d...
commit-queue@webkit.org [Tue, 15 Nov 2011 16:32:02 +0000 (16:32 +0000)]
Implement maxWidth for fillText and strokeText, fixing the canvas/philip/tests/2d.text.draw.fill.maxWidth.fontface.html test.
https://bugs.webkit.org/show_bug.cgi?id=61528

Patch by Philip Rogers <pdr@google.com> on 2011-11-15
Reviewed by Stephen White.

Source/WebCore:

Tests: fast/canvas/2d.text.draw.fill.maxWidth.gradient.html
       fast/canvas/2d.text.draw.fill.maxWidth.negative.html
       fast/canvas/2d.text.draw.fill.maxWidth.veryLarge.html
       fast/canvas/2d.text.draw.fill.maxWidth.verySmall.html

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

LayoutTests:

* fast/canvas/2d.text.draw.fill.maxWidth.gradient-expected.txt: Added.
* fast/canvas/2d.text.draw.fill.maxWidth.gradient.html: Added.
* fast/canvas/2d.text.draw.fill.maxWidth.negative-expected.txt: Added.
* fast/canvas/2d.text.draw.fill.maxWidth.negative.html: Added.
* fast/canvas/2d.text.draw.fill.maxWidth.veryLarge-expected.txt: Added.
* fast/canvas/2d.text.draw.fill.maxWidth.veryLarge.html: Added.
* fast/canvas/2d.text.draw.fill.maxWidth.verySmall-expected.txt: Added.
* fast/canvas/2d.text.draw.fill.maxWidth.verySmall.html: Added.
* platform/chromium/canvas/philip/tests/2d.text.draw.fill.maxWidth.fontface-expected.txt: Removed.
* platform/chromium/test_expectations.txt:
* platform/gtk/Skipped:
* platform/mac-leopard/Skipped:
* platform/mac/canvas/philip/tests/2d.text.draw.fill.maxWidth.fontface-expected.txt:
* platform/qt/Skipped:
* resources/Ahem.ttf: Added.

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

8 years ago[GTK] Implement download support in WebKit2
carlosgc@webkit.org [Tue, 15 Nov 2011 16:24:54 +0000 (16:24 +0000)]
[GTK] Implement download support in WebKit2
https://bugs.webkit.org/show_bug.cgi?id=72258

Reviewed by Martin Robinson.

Source/WebCore:

Add common download errors to ErrorsGtk.

* platform/gtk/ErrorsGtk.cpp:
(WebCore::downloadNetworkError):
(WebCore::downloadCancelledByUserError):
(WebCore::downloadDestinationError):
* platform/gtk/ErrorsGtk.h:

Source/WebKit/gtk:

Use errors from WebCore to emit the error signals.

* webkit/webkitdownload.cpp:
(webkitDownloadEmitError): Helper function that emits the error
signal for the given ResourceError.
(webkit_download_open_stream_for_uri): Use webkitDownloadEmitError().
(webkit_download_cancel): Ditto.
(webkit_download_set_destination_uri): Ditto.
(webkit_download_received_data): Ditto.
(webkit_download_error): Ditto.

Source/WebKit2:

* WebProcess/Downloads/Download.h:
* WebProcess/Downloads/soup/DownloadSoup.cpp:
(WebKit::DownloadClient::DownloadClient):
(WebKit::DownloadClient::downloadFailed):
(WebKit::DownloadClient::didReceiveResponse):
(WebKit::DownloadClient::didReceiveData):
(WebKit::DownloadClient::didFinishLoading):
(WebKit::DownloadClient::didFail):
(WebKit::DownloadClient::wasBlocked):
(WebKit::DownloadClient::cannotShowURL):
(WebKit::Download::start):
(WebKit::Download::startWithHandle):
(WebKit::Download::cancel):
(WebKit::Download::platformInvalidate):

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

8 years ago[chromium-mac] Enable vertical text using Skia
caryclark@google.com [Tue, 15 Nov 2011 16:17:25 +0000 (16:17 +0000)]
[chromium-mac] Enable vertical text using Skia
https://bugs.webkit.org/show_bug.cgi?id=72137

Source/WebCore:

Use Skia to draw vertical text. This is much
faster and has higher fidelity than the old method
of drawing text on a path.

The graphics context passed to Skia has been
rotated 90 degrees but the character advances
have not, so it is necessary to unrotate the canvas,
and re-rotate the positions.

This generates correct output (or, at least,
consistent with Chromium CG on Mac) for all vertical
text tests, one of which is mentioned below.

Reviewed by Stephen White.

Test: fast/writing-mode/text-orientation-basic.html

* platform/graphics/skia/FontSkia.cpp:
(WebCore::setupPaint):
(WebCore::Font::drawGlyphs):

LayoutTests:

Ignore vertical text tests on Skia on Mac for now.

Reviewed by Stephen White.

* platform/chromium/test_expectations.txt:

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

8 years agomedia-blocked-by-willsendrequest.html is flaky
eric.carlson@apple.com [Tue, 15 Nov 2011 16:14:39 +0000 (16:14 +0000)]
media-blocked-by-willsendrequest.html is flaky
https://bugs.webkit.org/show_bug.cgi?id=72381

Reviewed by Tony Gentilcore.

* media/media-blocked-by-willsendrequest.html:
    Don't assume the media events will be dispatched before the window 'load' event.
* platform/chromium/test_expectations.txt:
    Don't skip media/media-blocked-by-willsendrequest.html.

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

8 years ago[Qt] Enable skipped but now passing tests (http/tests)
ossy@webkit.org [Tue, 15 Nov 2011 15:59:33 +0000 (15:59 +0000)]
[Qt] Enable skipped but now passing tests (http/tests)
https://bugs.webkit.org/show_bug.cgi?id=71911

Patch by Zoltan Arvai <zarvai@inf.u-szeged.hu> on 2011-11-15
Reviewed by Csaba Osztrogonác.

* platform/qt/Skipped: Unskip 24 tests.

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

8 years agoFix SVG hit testing when padding is present
commit-queue@webkit.org [Tue, 15 Nov 2011 15:38:09 +0000 (15:38 +0000)]
Fix SVG hit testing when padding is present
https://bugs.webkit.org/show_bug.cgi?id=37325

Patch by Philip Rogers <pdr@google.com> on 2011-11-15
Reviewed by Nikolas Zimmermann.

Source/WebCore:

Test: svg/hittest/svg-padding.xhtml

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

LayoutTests:

* svg/hittest/svg-padding-expected.txt: Added.
* svg/hittest/svg-padding.xhtml: Added.

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

8 years agoUnreviewed, marked
philn@webkit.org [Tue, 15 Nov 2011 15:11:36 +0000 (15:11 +0000)]
Unreviewed, marked
fast/frames/flattening/frameset-flattening-simple.html as flaky on GTK.

* platform/gtk/test_expectations.txt:

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

8 years agoTests occasionally report missing expectations
tonyg@chromium.org [Tue, 15 Nov 2011 14:58:16 +0000 (14:58 +0000)]
Tests occasionally report missing expectations
https://bugs.webkit.org/show_bug.cgi?id=72039

* platform/chromium/test_expectations.txt: Add 3 more tests which flakily report missing.

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

8 years agoWeb Inspector: move generic code from DevTools.js into the WebCore.
pfeldman@chromium.org [Tue, 15 Nov 2011 14:52:25 +0000 (14:52 +0000)]
Web Inspector: move generic code from DevTools.js into the WebCore.
https://bugs.webkit.org/show_bug.cgi?id=72377

re-landing r100269.

Reviewed by Yury Semikhatsky.

Source/WebCore:

* English.lproj/localizedStrings.js:
* inspector/front-end/InspectorFrontendHostStub.js:
(.WebInspector.InspectorFrontendHostStub.prototype.inspectedURLChanged):
* inspector/front-end/ProfilesPanel.js:
* inspector/front-end/Resource.js:
* inspector/front-end/Settings.js:
* inspector/front-end/UIUtils.js:
(WebInspector.setToolbarColors):
(WebInspector.resetToolbarColors):
* inspector/front-end/inspector.js:

Source/WebKit/chromium:

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

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

8 years ago[skia] mark to rebaseline aft cr104128 lands (colorfilter optimization)
reed@google.com [Tue, 15 Nov 2011 14:51:32 +0000 (14:51 +0000)]
[skia] mark to rebaseline aft cr104128 lands (colorfilter optimization)
https://bugs.webkit.org/show_bug.cgi?id=72270

Reviewed by NOBODY.

* platform/chromium/test_expectations.txt:

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

8 years agomedia-blocked-by-willsendrequest.html is flaky
tonyg@chromium.org [Tue, 15 Nov 2011 14:43:39 +0000 (14:43 +0000)]
media-blocked-by-willsendrequest.html is flaky
https://bugs.webkit.org/show_bug.cgi?id=72381

* platform/chromium/test_expectations.txt: Mark test as flaky.

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

8 years agoUnreviewed, rolling out r100269.
commit-queue@webkit.org [Tue, 15 Nov 2011 14:30:36 +0000 (14:30 +0000)]
Unreviewed, rolling out r100269.
http://trac.webkit.org/changeset/100269
https://bugs.webkit.org/show_bug.cgi?id=72383

"Broke dozens of tests due to exception in loadingFinished"
(Requested by tonyg-cr on #webkit).

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

Source/WebCore:

* English.lproj/localizedStrings.js:
* inspector/front-end/InspectorFrontendHostStub.js:
(.WebInspector.InspectorFrontendHostStub.prototype.inspectedURLChanged):
* inspector/front-end/ProfilesPanel.js:
* inspector/front-end/Resource.js:
* inspector/front-end/Settings.js:
* inspector/front-end/UIUtils.js:
* inspector/front-end/inspector.js:

Source/WebKit/chromium:

* src/js/DevTools.js:
():
(devtools.domContentLoaded):
(WebInspector.UIString):
(WebInspector.setToolbarColors):
(WebInspector.resetToolbarColors):
(.WebInspector.InspectorFrontendHostStub.prototype.inspectedURLChanged):

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

8 years agofont property does not show up as "shorthand" in inspector
apavlov@chromium.org [Tue, 15 Nov 2011 14:12:43 +0000 (14:12 +0000)]
font property does not show up as "shorthand" in inspector
https://bugs.webkit.org/show_bug.cgi?id=15598

Reviewed by Nikolas Zimmermann.

Source/WebCore:

The "font" CSS property is turned into a real shorthand, as its longhands used to float around
in the resulting style declaration without any reference to their underlying "font" property.

Test: fast/css/font-shorthand.html

* css/CSSMutableStyleDeclaration.cpp:
(WebCore::CSSMutableStyleDeclaration::getPropertyValue): Extracted the "font" value building into fontValue().
(WebCore::CSSMutableStyleDeclaration::appendFontLonghandValueIfExplicit): Added
(WebCore::CSSMutableStyleDeclaration::fontValue): Build the "font" value from longhands.
* css/CSSMutableStyleDeclaration.h:
* css/CSSParser.cpp:
(WebCore::CSSParser::addProperty): Added optional "implicit" parameter.
(WebCore::CSSParser::parseFont): Build respective longhands instead of the shorthand "font" property.
* css/CSSParser.h: Added optional "implicit" parameter to addProperty().
* css/CSSPropertyLonghand.cpp:
(WebCore::initShorthandMap): Added "font" shorthand map entry.
* css/CSSStyleSelector.cpp:
(WebCore::CSSStyleSelector::applyPropertyToStyle): Separated the property application from the instance setup.
(WebCore::CSSStyleSelector::applyPropertyToCurrentStyle): Added.
* css/CSSStyleSelector.h: Made updateFont() public.
* css/FontValue.cpp:
(WebCore::FontValue::customCssText): Made use of StringBuilder.
* html/canvas/CanvasRenderingContext2D.cpp:
(WebCore::CanvasRenderingContext2D::setFont): Apply "font" longhands rather than the (non-existent) "font" property.
* inspector/front-end/StylesSidebarPane.js:
(WebInspector.StylesSidebarPane.prototype._markUsedProperties): Removed a workaround for "font" not being a shorthand.
* page/animation/AnimationBase.cpp:
(WebCore::addShorthandProperties): Removed a workaround for "font" not being a shorthand.

LayoutTests:

* fast/css/font-shorthand-expected.txt: Added.
* fast/css/font-shorthand.html: Added.
* fast/inspector-support/style-expected.txt:
* fast/inspector-support/style.html:

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

8 years agoREGRESSION (r100158-r100162): 5 fast tests failing on GTK Linux 64-bit Debug
philn@webkit.org [Tue, 15 Nov 2011 14:06:38 +0000 (14:06 +0000)]
REGRESSION (r100158-r100162): 5 fast tests failing on GTK Linux 64-bit Debug
https://bugs.webkit.org/show_bug.cgi?id=72297

Unreviewed, GTK rebaseline after r100159.

* platform/gtk/Skipped:
* platform/gtk/fast/dom/Window/window-properties-expected.txt:
* platform/gtk/fast/dom/Window/window-property-descriptors-expected.txt:
* platform/gtk/fast/dom/constructed-objects-prototypes-expected.txt: Added.
* platform/gtk/fast/dom/prototype-inheritance-2-expected.txt:
* platform/gtk/fast/js/global-constructors-expected.txt:

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

8 years agoUnreviewed, skipping some new GTK test failures.
philn@webkit.org [Tue, 15 Nov 2011 13:48:11 +0000 (13:48 +0000)]
Unreviewed, skipping some new GTK test failures.

* platform/gtk/Skipped:

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

8 years ago[Qt] Clean up the remaining duplicate code after the RenderThemeQt refactoring.
commit-queue@webkit.org [Tue, 15 Nov 2011 13:43:36 +0000 (13:43 +0000)]
[Qt] Clean up the remaining duplicate code after the RenderThemeQt refactoring.
https://bugs.webkit.org/show_bug.cgi?id=72262

Patch by Pierre Rossi <pierre.rossi@gmail.com> on 2011-11-15
Reviewed by Antonio Gomes.

No new tests needed, this is purely cosmetic.

* platform/qt/RenderThemeQStyle.cpp:
(WebCore::RenderThemeQStyle::adjustMenuListButtonStyle):
* platform/qt/RenderThemeQStyle.h:
* platform/qt/RenderThemeQt.cpp:
(WebCore::RenderThemeQt::adjustMenuListButtonStyle): remove the call to resetBorderRadius()
since the mobile theme actually didn't do this.
* platform/qt/RenderThemeQtMobile.cpp:
(WebCore::RenderThemeQtMobile::adjustMenuListStyle):

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

8 years agoWeb Inspector: move generic code from DevTools.js into the WebCore.
pfeldman@chromium.org [Tue, 15 Nov 2011 13:38:23 +0000 (13:38 +0000)]
Web Inspector: move generic code from DevTools.js into the WebCore.
https://bugs.webkit.org/show_bug.cgi?id=72377

This includes support for themed toolbar, remote debugging routines,
removes a couple of obsolete overrides from the DevTools.js

Reviewed by Yury Semikhatsky.

Source/WebCore:

* English.lproj/localizedStrings.js:
* inspector/front-end/InspectorFrontendHostStub.js:
(.WebInspector.InspectorFrontendHostStub.prototype.inspectedURLChanged):
* inspector/front-end/ProfilesPanel.js:
* inspector/front-end/Resource.js:
* inspector/front-end/Settings.js:
* inspector/front-end/UIUtils.js:
(WebInspector.setToolbarColors):
(WebInspector.resetToolbarColors):
* inspector/front-end/inspector.js:

Source/WebKit/chromium:

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

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

8 years agoREGRESSION(r100182): It broke 2 http/tests/security tests
ossy@webkit.org [Tue, 15 Nov 2011 13:02:24 +0000 (13:02 +0000)]
REGRESSION(r100182): It broke 2 http/tests/security tests
https://bugs.webkit.org/show_bug.cgi?id=72364

* platform/qt/Skipped: Skip failing tests until fix.

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

8 years ago[chromium] fast/forms/file/input-file-label.html is flaky on win
tonyg@chromium.org [Tue, 15 Nov 2011 12:35:12 +0000 (12:35 +0000)]
[chromium] fast/forms/file/input-file-label.html is flaky on win
https://bugs.webkit.org/show_bug.cgi?id=72376

* platform/chromium/test_expectations.txt: Mark test flaky on win.

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

8 years ago[Qt] Centralize hide_symbols and ensure all libs are built with symbol visibility...
hausmann@webkit.org [Tue, 15 Nov 2011 12:02:19 +0000 (12:02 +0000)]
[Qt] Centralize hide_symbols and ensure all libs are built with symbol visibility & bsymbolic_functions

Reviewed by Tor Arne Vestbø.

.:

* Source/api.pri: Eliminate duplicated symbol stuff that lives now in default_post.prf.

Source/JavaScriptCore:

* Target.pri: Eliminate duplicated symbol stuff that lives now in default_post.prf.

Source/WebCore:

* Target.pri: Eliminate duplicated symbol stuff that lives now in default_post.prf.

Tools:

* qmake/mkspecs/features/default_post.prf: Place the common hide_symbols and -Bsymbolic-functions
magic here where we handle all TEMPLATE = lib .pro files.

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

8 years ago[Qt] Unreviewed prospective --minimal build fix.
hausmann@webkit.org [Tue, 15 Nov 2011 11:33:33 +0000 (11:33 +0000)]
[Qt] Unreviewed prospective --minimal build fix.

* DumpRenderTree/qt/DumpRenderTree.pro: Avoid USE_SYSTEM_MALLOC=0
and USE_SYSTEM_MALLOC=1 appearing in DEFINES at the same time.

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

8 years agoRebaseline gray-scale-jpeg-with-color-profile.html
noel.gordon@gmail.com [Tue, 15 Nov 2011 11:30:46 +0000 (11:30 +0000)]
Rebaseline gray-scale-jpeg-with-color-profile.html
https://bugs.webkit.org/show_bug.cgi?id=72240

Reviewed by Eric Seidel.

* fast/images/gray-scale-jpeg-with-color-profile-expected.txt: Renamed from LayoutTests/platform/gtk/fast/images/gray-scale-jpeg-with-color-profile-expected.txt.
* platform/chromium-linux/fast/images/gray-scale-jpeg-with-color-profile-expected.png: Added.
* platform/chromium-win/fast/images/gray-scale-jpeg-with-color-profile-expected.png: Added.
* platform/chromium/fast/images/gray-scale-jpeg-with-color-profile-expected.png: Added.
* platform/chromium/test_expectations.txt:
* platform/qt/fast/images/gray-scale-jpeg-with-color-profile-expected.txt: Removed.

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

8 years ago[chromium] perf/document-contains.html is flaky on win
tonyg@chromium.org [Tue, 15 Nov 2011 11:24:26 +0000 (11:24 +0000)]
[chromium] perf/document-contains.html is flaky on win
https://bugs.webkit.org/show_bug.cgi?id=72372

* platform/chromium/test_expectations.txt: Marking flaky on WIN.

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

8 years agoUnreviewed, rolling out r100213.
commit-queue@webkit.org [Tue, 15 Nov 2011 11:14:49 +0000 (11:14 +0000)]
Unreviewed, rolling out r100213.
http://trac.webkit.org/changeset/100213
https://bugs.webkit.org/show_bug.cgi?id=72371

"Breaks test_shell_tests" (Requested by tonyg-cr on #webkit).

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

Source/WebCore:

* page/SecurityOrigin.cpp:
(WebCore::SecurityOrigin::SecurityOrigin):
* platform/SchemeRegistry.cpp:
(WebCore::schemesWithUniqueOrigins):

LayoutTests:

* fast/filesystem/async-operations-expected.txt:
* fast/filesystem/not-enough-arguments-expected.txt:
* fast/filesystem/read-directory-expected.txt:
* fast/filesystem/simple-persistent-expected.txt:
* fast/filesystem/simple-readonly-expected.txt:
* fast/filesystem/simple-temporary-expected.txt:
* fast/frames/resources/sandboxed-iframe-storage-disallowed.html:
* fast/frames/sandboxed-iframe-attribute-parsing.html:
* fast/frames/sandboxed-iframe-forms-dynamic.html:
* fast/frames/sandboxed-iframe-forms.html:
* fast/frames/sandboxed-iframe-navigation-top-by-constant-name.html:
* fast/frames/sandboxed-iframe-navigation-top-by-constant-name2.html:
* fast/frames/sandboxed-iframe-navigation-top-by-name.html:
* fast/frames/sandboxed-iframe-navigation-top.html:
* media/video-controls-no-scripting.html:

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

8 years ago[EFL] Use EINA_SAFETY_ON_NULL_RETURN_VAL for NULL checks instead of EINA_SAFETY_ON_FA...
commit-queue@webkit.org [Tue, 15 Nov 2011 11:03:40 +0000 (11:03 +0000)]
[EFL] Use EINA_SAFETY_ON_NULL_RETURN_VAL for NULL checks instead of EINA_SAFETY_ON_FALSE_RETURN_VAL.
https://bugs.webkit.org/show_bug.cgi?id=70091

Patch by Grzegorz Czajkowski <g.czajkowski@samsung.com> on 2011-11-15
Reviewed by Filip Pizlo.

Replaces EINA_SAFETY_ON_FALSE_RETURN_VAL by EINA_SAFETY_ON_NULL_RETURN_VAL for NULL checks in compliance
with WebKit-EFL functions.

* ewk/ewk_frame.cpp:
(ewk_frame_contents_set):
(ewk_frame_contents_alternate_set):

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

8 years agoRemove DFGJITCompilerInlineMethods
yuqiang.xian@intel.com [Tue, 15 Nov 2011 11:01:35 +0000 (11:01 +0000)]
Remove DFGJITCompilerInlineMethods
https://bugs.webkit.org/show_bug.cgi?id=72366

Reviewed by Filip Pizlo.

Those methods are actually seldom used. Modify the few such places and
remove DFGJITCompilerInlineMethods stuffs totally.

* GNUmakefile.list.am:
* JavaScriptCore.xcodeproj/project.pbxproj:
* dfg/DFGJITCompiler.h:
(JSC::DFG::JITCompiler::addressOfDoubleConstant):
* dfg/DFGJITCompilerInlineMethods.h: Removed.
* dfg/DFGSpeculativeJIT.cpp:
* dfg/DFGSpeculativeJIT.h:
(JSC::DFG::SpeculativeJIT::silentFillFPR):
* dfg/DFGSpeculativeJIT32_64.cpp:
(JSC::DFG::SpeculativeJIT::fillJSValue):
(JSC::DFG::SpeculativeJIT::cachedGetMethod):

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

8 years ago[Qt] Unviewed fix after r100254, because committed results was incorrect.
ossy@webkit.org [Tue, 15 Nov 2011 10:59:07 +0000 (10:59 +0000)]
[Qt] Unviewed fix after r100254, because committed results was incorrect.

* platform/qt/fast/dom/Window/window-properties-expected.png:
* platform/qt/fast/dom/Window/window-properties-expected.txt:
* platform/qt/fast/dom/Window/window-property-descriptors-expected.png:
* platform/qt/fast/dom/Window/window-property-descriptors-expected.txt:
* platform/qt/fast/dom/constructed-objects-prototypes-expected.png: Added.
* platform/qt/fast/dom/constructed-objects-prototypes-expected.txt: Added.
* platform/qt/fast/js/global-constructors-expected.png:
* platform/qt/fast/js/global-constructors-expected.txt:

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

8 years ago[chromium] scroll deltas are cleared during commit to the main thread
hclam@chromium.org [Tue, 15 Nov 2011 10:52:27 +0000 (10:52 +0000)]
[chromium] scroll deltas are cleared during commit to the main thread
https://bugs.webkit.org/show_bug.cgi?id=71916

Reviewed by James Robinson.

Source/WebCore:

Patch is covered by unit test.

Add a member m_sentScrollDelta to CCLayerImpl to keep track of the scroll delta being
sent to the main thread during commit. This gives a simpler approach to keep tracking of a
layer's scroll delta in impl thread.

* platform/graphics/chromium/LayerChromium.h:
(WebCore::LayerChromium::sentScrollDelta):
* platform/graphics/chromium/cc/CCLayerImpl.h:
(WebCore::CCLayerImpl::sentScrollDelta):
(WebCore::CCLayerImpl::setSentScrollDelta):
* platform/graphics/chromium/cc/CCLayerTreeHostImpl.cpp:
(WebCore::CCLayerTreeHostImpl::processScrollDeltas):
* platform/graphics/chromium/cc/CCLayerTreeHostImpl.h:

Source/WebKit/chromium:

Modify test to verify sentScrollDeltas() values of CCLayerImpl during commit.

* tests/CCLayerTreeHostImplTest.cpp:
(WebKit::TEST_F):

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

8 years agomedia/track/track-webvtt-tc003-newlines.html is flaky
tonyg@chromium.org [Tue, 15 Nov 2011 10:37:07 +0000 (10:37 +0000)]
media/track/track-webvtt-tc003-newlines.html is flaky
https://bugs.webkit.org/show_bug.cgi?id=72369

* platform/chromium/test_expectations.txt: Marked test flaky.

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

8 years ago[Qt] REGRESSION(100123): It made inspector tests crash https://bugs.webkit.org/show_b...
hausmann@webkit.org [Tue, 15 Nov 2011 10:34:20 +0000 (10:34 +0000)]
[Qt] REGRESSION(100123): It made inspector tests crash https://bugs.webkit.org/show_bug.cgi?id=72274

Reviewed by Tor Arne Vestbø.

Source/WebCore:

* platform/qt/RenderThemeQStyle.h: Remove uninitialized and duplicated
m_page member that should really come from RenderThemeQt.

LayoutTests:

* platform/qt/Skipped: Unskip passing tests.

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

8 years agoUnreviewed. Fix build breaks when EFL port is built.
gyuyoung.kim@samsung.com [Tue, 15 Nov 2011 09:56:38 +0000 (09:56 +0000)]
Unreviewed. Fix build breaks when EFL port is built.

* CMakeLists.txt:
* UseJSC.cmake:

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

8 years agoUnviewed gardening after r100159.
reni@webkit.org [Tue, 15 Nov 2011 09:47:36 +0000 (09:47 +0000)]
Unviewed gardening after r100159.

Patch by Oliver Varga <voliver@inf.u-szeged.hu> on 2011-11-15

* platform/qt/fast/dom/Window/window-properties-expected.png:
* platform/qt/fast/dom/Window/window-properties-expected.txt:
* platform/qt/fast/dom/Window/window-property-descriptors-expected.png:
* platform/qt/fast/dom/Window/window-property-descriptors-expected.txt:
* platform/qt/fast/dom/prototype-inheritance-2-expected.png:
* platform/qt/fast/dom/prototype-inheritance-2-expected.txt:
* platform/qt/fast/js/global-constructors-expected.png:
* platform/qt/fast/js/global-constructors-expected.txt:

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

8 years ago[Qt] Unreviewed --minimal build fix.
hausmann@webkit.org [Tue, 15 Nov 2011 09:37:30 +0000 (09:37 +0000)]
[Qt] Unreviewed --minimal build fix.

* Scripts/build-webkit: Add to DEFINES+= from @options only if there is
a define. The "coverage" option doesn't have one, causing "DEFINES+= =0"
to make moc's preprocessor abort.

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

8 years agoMake ImageFrame member getAddr() public
noel.gordon@gmail.com [Tue, 15 Nov 2011 09:36:36 +0000 (09:36 +0000)]
Make ImageFrame member getAddr() public
https://bugs.webkit.org/show_bug.cgi?id=72321

Reviewed by Adam Barth.

Make ImageFrame member getAddr() public to allow ImageFrame users access to the
underlying frame pixels if needed. Image decoders, for example, could with care
use this service to write decoded pixels direct to the ImageFrame pixel buffer,
avoiding intermeadiate data copies from temporary decoded pixel row buffers and
the decoding performance loss that that entails.

No new tests, refactoring only.

* platform/image-decoders/ImageDecoder.h:
(WebCore::ImageFrame::getAddr):

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

8 years agoWeb Inspector: [Crash] Crash when inspecting namespaced SVG styled via element names
apavlov@chromium.org [Tue, 15 Nov 2011 09:32:16 +0000 (09:32 +0000)]
Web Inspector: [Crash] Crash when inspecting namespaced SVG styled via element names
https://bugs.webkit.org/show_bug.cgi?id=72261

Reviewed by Pavel Feldman.

Source/WebCore:

Test: inspector/styles/svg-style.xhtml

* inspector/InspectorStyleSheet.cpp:
(WebCore::InspectorStyleSheet::inlineStyleSheetText):

LayoutTests:

* inspector/styles/svg-style-expected.txt: Added.
* inspector/styles/svg-style.xhtml: Added.

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

8 years ago[Qt] Platform-specific result for r100157.
reni@webkit.org [Tue, 15 Nov 2011 09:24:01 +0000 (09:24 +0000)]
[Qt] Platform-specific result for r100157.

Unreviewed, gardening.

Patch by Czene Tamás <tczene@inf.u-szeged.hu> on 2011-11-15

* platform/qt/svg/foreignObject/multiple-foreign-objects-expected.png: Added.
* platform/qt/svg/foreignObject/multiple-foreign-objects-expected.txt: Added.

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

8 years ago[Qt] Two tests are skipped after r100182 and r100239.
reni@webkit.org [Tue, 15 Nov 2011 09:13:59 +0000 (09:13 +0000)]
[Qt] Two tests are skipped after r100182 and r100239.

Unreviewed gardening.

* platform/qt/Skipped:

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

8 years ago[GTK][WEBKIT2] Add enable-caret-browsing property to WebKitSettings
mario@webkit.org [Tue, 15 Nov 2011 09:05:33 +0000 (09:05 +0000)]
[GTK][WEBKIT2] Add enable-caret-browsing property to WebKitSettings
https://bugs.webkit.org/show_bug.cgi?id=72267

Reviewed by Martin Robinson.

Allow getting and setting the 'enable-caret-browsing' property
through WebKitSettings.

* UIProcess/API/gtk/WebKitSettings.cpp:
(webKitSettingsSetProperty): Added property setter.
(webKitSettingsGetProperty): Added propery getter.
(webkit_settings_class_init): Install property.
(webkit_settings_get_enable_caret_browsing): Added.
(webkit_settings_set_enable_caret_browsing): Added.
* UIProcess/API/gtk/WebKitSettings.h: Expose new public APIs.
* UIProcess/API/gtk/docs/webkit2gtk-sections.txt: Add new sections for gtk-doc generation.
* UIProcess/API/gtk/tests/TestWebKitSettings.cpp:
(testWebKitSettings): Added new API test.

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

8 years ago[V8] Fix incorrect handling of JavaScript properties in DOMStringMap
tkent@chromium.org [Tue, 15 Nov 2011 08:36:56 +0000 (08:36 +0000)]
[V8] Fix incorrect handling of JavaScript properties in DOMStringMap
https://bugs.webkit.org/show_bug.cgi?id=53578

Reviewed by Adam Barth.

Source/WebCore:

Follows a JSC behavior change by r96893.

* bindings/v8/custom/V8DOMStringMapCustom.cpp:
(WebCore::V8DOMStringMap::namedPropertyGetter):
Propagate to the JavaScript object if the DOMStringMap object
doesn't have the requested item.
(WebCore::V8DOMStringMap::namedPropertyDeleter): ditto.
(WebCore::V8DOMStringMap::namedPropertySetter):
Try to set a property to only a DOMStringMap object.

LayoutTests:

* platform/chromium/test_expectations.txt:
Remove failure expectations of fast/dom/dataset.html and
fast/dom/dataset-xhtml.xhtml.

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

8 years agoWeb Inspector: Command line $x fails for 3 of 4 types of XPath query
pfeldman@chromium.org [Tue, 15 Nov 2011 08:08:59 +0000 (08:08 +0000)]
Web Inspector: Command line $x fails for 3 of 4 types of XPath query
https://bugs.webkit.org/show_bug.cgi?id=72276

Reviewed by Timothy Hatcher.

Source/WebCore:

Test: inspector/console/console-xpath.html

* inspector/InjectedScriptSource.js:
(.):

LayoutTests:

* inspector/console/console-xpath-expected.txt: Added.
* inspector/console/console-xpath.html: Added.

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

8 years agor100237 moved some pixel baselines into platform/chromium without also
pkasting@chromium.org [Tue, 15 Nov 2011 07:10:06 +0000 (07:10 +0000)]
r100237 moved some pixel baselines into platform/chromium without also
moving the text baselines.  As a result all the Chromium Mac "not 10.6
CG" bots were still failing due to MISSING expectations.

Unreviewed, gardening.

* platform/chromium-cg-mac-snowleopard/css2.1/20110323/border-spacing-applies-to-015-expected.txt: Removed.
* platform/chromium-cg-mac-snowleopard/css2.1/20110323/table-caption-001-expected.txt: Removed.
* platform/chromium-cg-mac-snowleopard/css2.1/20110323/table-caption-002-expected.txt: Removed.
* platform/chromium-cg-mac-snowleopard/css2.1/20110323/table-caption-horizontal-alignment-001-expected.txt: Removed.
* platform/chromium-cg-mac-snowleopard/css2.1/20110323/table-caption-margins-001-expected.txt: Removed.
* platform/chromium-cg-mac-snowleopard/css2.1/20110323/table-caption-optional-001-expected.txt: Removed.
* platform/chromium-cg-mac-snowleopard/css2.1/20110323/table-caption-optional-002-expected.txt: Removed.
* platform/chromium/css2.1/20110323/border-spacing-applies-to-015-expected.txt: Copied from platform/chromium-cg-mac-snowleopard/css2.1/20110323/border-spacing-applies-to-015-expected.txt.
* platform/chromium/css2.1/20110323/table-caption-001-expected.txt: Copied from platform/chromium-cg-mac-snowleopard/css2.1/20110323/table-caption-001-expected.txt.
* platform/chromium/css2.1/20110323/table-caption-002-expected.txt: Copied from platform/chromium-cg-mac-snowleopard/css2.1/20110323/table-caption-002-expected.txt.
* platform/chromium/css2.1/20110323/table-caption-horizontal-alignment-001-expected.txt: Copied from platform/chromium-cg-mac-snowleopard/css2.1/20110323/table-caption-horizontal-alignment-001-expected.txt.
* platform/chromium/css2.1/20110323/table-caption-margins-001-expected.txt: Copied from platform/chromium-cg-mac-snowleopard/css2.1/20110323/table-caption-margins-001-expected.txt.
* platform/chromium/css2.1/20110323/table-caption-optional-001-expected.txt: Copied from platform/chromium-cg-mac-snowleopard/css2.1/20110323/table-caption-optional-001-expected.txt.
* platform/chromium/css2.1/20110323/table-caption-optional-002-expected.txt: Copied from platform/chromium-cg-mac-snowleopard/css2.1/20110323/table-caption-optional-002-expected.txt.

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

8 years agoDFG::SpeculativeJIT and DFG::JITCodeGenerator should be combined
fpizlo@apple.com [Tue, 15 Nov 2011 07:04:10 +0000 (07:04 +0000)]
DFG::SpeculativeJIT and DFG::JITCodeGenerator should be combined
https://bugs.webkit.org/show_bug.cgi?id=72348

Reviewed by Gavin Barraclough.

Moved all of JITCodeGenerator into SpeculativeJIT.

* CMakeLists.txt:
* GNUmakefile.list.am:
* JavaScriptCore.xcodeproj/project.pbxproj:
* Target.pri:
* dfg/DFGJITCodeGenerator.cpp: Removed.
* dfg/DFGJITCodeGenerator.h: Removed.
* dfg/DFGJITCodeGenerator32_64.cpp: Removed.
* dfg/DFGJITCodeGenerator64.cpp: Removed.
* dfg/DFGJITCompiler.cpp:
* dfg/DFGRepatch.cpp:
(JSC::DFG::generateProtoChainAccessStub):
(JSC::DFG::tryCacheGetByID):
(JSC::DFG::tryCachePutByID):
* dfg/DFGSpeculativeJIT.cpp:
(JSC::DFG::SpeculativeJIT::clearGenerationInfo):
(JSC::DFG::SpeculativeJIT::fillStorage):
(JSC::DFG::SpeculativeJIT::useChildren):
(JSC::DFG::SpeculativeJIT::isStrictInt32):
(JSC::DFG::SpeculativeJIT::isKnownInteger):
(JSC::DFG::SpeculativeJIT::isKnownNumeric):
(JSC::DFG::SpeculativeJIT::isKnownCell):
(JSC::DFG::SpeculativeJIT::isKnownNotCell):
(JSC::DFG::SpeculativeJIT::isKnownNotInteger):
(JSC::DFG::SpeculativeJIT::isKnownNotNumber):
(JSC::DFG::SpeculativeJIT::isKnownBoolean):
(JSC::DFG::SpeculativeJIT::writeBarrier):
(JSC::DFG::SpeculativeJIT::markCellCard):
(JSC::DFG::SpeculativeJIT::nonSpeculativeCompare):
(JSC::DFG::SpeculativeJIT::nonSpeculativeStrictEq):
(JSC::DFG::dataFormatString):
(JSC::DFG::SpeculativeJIT::dump):
(JSC::DFG::SpeculativeJIT::checkConsistency):
(JSC::DFG::GPRTemporary::GPRTemporary):
(JSC::DFG::GPRTemporary::adopt):
(JSC::DFG::FPRTemporary::FPRTemporary):
* dfg/DFGSpeculativeJIT.h:
(JSC::DFG::SpeculativeJIT::at):
(JSC::DFG::SpeculativeJIT::lock):
(JSC::DFG::SpeculativeJIT::unlock):
(JSC::DFG::SpeculativeJIT::canReuse):
(JSC::DFG::SpeculativeJIT::reuse):
(JSC::DFG::SpeculativeJIT::allocate):
(JSC::DFG::SpeculativeJIT::tryAllocate):
(JSC::DFG::SpeculativeJIT::fprAllocate):
(JSC::DFG::SpeculativeJIT::isFilled):
(JSC::DFG::SpeculativeJIT::isFilledDouble):
(JSC::DFG::SpeculativeJIT::use):
(JSC::DFG::SpeculativeJIT::selectScratchGPR):
(JSC::DFG::SpeculativeJIT::silentSpillGPR):
(JSC::DFG::SpeculativeJIT::silentSpillFPR):
(JSC::DFG::SpeculativeJIT::silentFillGPR):
(JSC::DFG::SpeculativeJIT::silentFillFPR):
(JSC::DFG::SpeculativeJIT::silentSpillAllRegisters):
(JSC::DFG::SpeculativeJIT::silentFillAllRegisters):
(JSC::DFG::SpeculativeJIT::boxDouble):
(JSC::DFG::SpeculativeJIT::unboxDouble):
(JSC::DFG::SpeculativeJIT::spill):
(JSC::DFG::SpeculativeJIT::isConstant):
(JSC::DFG::SpeculativeJIT::isJSConstant):
(JSC::DFG::SpeculativeJIT::isInt32Constant):
(JSC::DFG::SpeculativeJIT::isDoubleConstant):
(JSC::DFG::SpeculativeJIT::isNumberConstant):
(JSC::DFG::SpeculativeJIT::isBooleanConstant):
(JSC::DFG::SpeculativeJIT::isFunctionConstant):
(JSC::DFG::SpeculativeJIT::valueOfInt32Constant):
(JSC::DFG::SpeculativeJIT::valueOfNumberConstant):
(JSC::DFG::SpeculativeJIT::addressOfDoubleConstant):
(JSC::DFG::SpeculativeJIT::valueOfJSConstant):
(JSC::DFG::SpeculativeJIT::valueOfBooleanConstant):
(JSC::DFG::SpeculativeJIT::valueOfFunctionConstant):
(JSC::DFG::SpeculativeJIT::isNullConstant):
(JSC::DFG::SpeculativeJIT::identifier):
(JSC::DFG::SpeculativeJIT::flushRegisters):
(JSC::DFG::SpeculativeJIT::isFlushed):
(JSC::DFG::SpeculativeJIT::valueOfJSConstantAsImmPtr):
(JSC::DFG::SpeculativeJIT::bitOp):
(JSC::DFG::SpeculativeJIT::shiftOp):
(JSC::DFG::SpeculativeJIT::detectPeepHoleBranch):
(JSC::DFG::SpeculativeJIT::addressOfCallData):
(JSC::DFG::SpeculativeJIT::tagOfCallData):
(JSC::DFG::SpeculativeJIT::payloadOfCallData):
(JSC::DFG::SpeculativeJIT::integerResult):
(JSC::DFG::SpeculativeJIT::noResult):
(JSC::DFG::SpeculativeJIT::cellResult):
(JSC::DFG::SpeculativeJIT::booleanResult):
(JSC::DFG::SpeculativeJIT::jsValueResult):
(JSC::DFG::SpeculativeJIT::storageResult):
(JSC::DFG::SpeculativeJIT::doubleResult):
(JSC::DFG::SpeculativeJIT::initConstantInfo):
(JSC::DFG::SpeculativeJIT::resetCallArguments):
(JSC::DFG::SpeculativeJIT::addCallArgument):
(JSC::DFG::SpeculativeJIT::setupArguments):
(JSC::DFG::SpeculativeJIT::setupArgumentsExecState):
(JSC::DFG::SpeculativeJIT::setupArgumentsWithExecState):
(JSC::DFG::SpeculativeJIT::setupTwoStubArgs):
(JSC::DFG::SpeculativeJIT::setupStubArguments):
(JSC::DFG::SpeculativeJIT::callOperation):
(JSC::DFG::SpeculativeJIT::appendCallWithExceptionCheck):
(JSC::DFG::SpeculativeJIT::appendCallWithExceptionCheckSetResult):
(JSC::DFG::SpeculativeJIT::setupResults):
(JSC::DFG::SpeculativeJIT::appendCallSetResult):
(JSC::DFG::SpeculativeJIT::addBranch):
(JSC::DFG::SpeculativeJIT::linkBranches):
(JSC::DFG::SpeculativeJIT::block):
(JSC::DFG::SpeculativeJIT::checkConsistency):
(JSC::DFG::SpeculativeJIT::BranchRecord::BranchRecord):
(JSC::DFG::IntegerOperand::IntegerOperand):
(JSC::DFG::IntegerOperand::~IntegerOperand):
(JSC::DFG::IntegerOperand::index):
(JSC::DFG::IntegerOperand::format):
(JSC::DFG::IntegerOperand::gpr):
(JSC::DFG::IntegerOperand::use):
(JSC::DFG::DoubleOperand::DoubleOperand):
(JSC::DFG::DoubleOperand::~DoubleOperand):
(JSC::DFG::DoubleOperand::index):
(JSC::DFG::DoubleOperand::fpr):
(JSC::DFG::DoubleOperand::use):
(JSC::DFG::JSValueOperand::JSValueOperand):
(JSC::DFG::JSValueOperand::~JSValueOperand):
(JSC::DFG::JSValueOperand::index):
(JSC::DFG::JSValueOperand::gpr):
(JSC::DFG::JSValueOperand::jsValueRegs):
(JSC::DFG::JSValueOperand::isDouble):
(JSC::DFG::JSValueOperand::fill):
(JSC::DFG::JSValueOperand::tagGPR):
(JSC::DFG::JSValueOperand::payloadGPR):
(JSC::DFG::JSValueOperand::fpr):
(JSC::DFG::JSValueOperand::use):
(JSC::DFG::StorageOperand::StorageOperand):
(JSC::DFG::StorageOperand::~StorageOperand):
(JSC::DFG::StorageOperand::index):
(JSC::DFG::StorageOperand::gpr):
(JSC::DFG::StorageOperand::use):
(JSC::DFG::GPRTemporary::~GPRTemporary):
(JSC::DFG::GPRTemporary::gpr):
(JSC::DFG::FPRTemporary::~FPRTemporary):
(JSC::DFG::FPRTemporary::fpr):
(JSC::DFG::FPRTemporary::FPRTemporary):
(JSC::DFG::GPRResult::GPRResult):
(JSC::DFG::GPRResult2::GPRResult2):
(JSC::DFG::FPRResult::FPRResult):
(JSC::DFG::FPRResult::lockedResult):
(JSC::DFG::SpeculativeJIT::SpeculativeJIT):
* dfg/DFGSpeculativeJIT32_64.cpp:
(JSC::DFG::SpeculativeJIT::fillInteger):
(JSC::DFG::SpeculativeJIT::fillDouble):
(JSC::DFG::SpeculativeJIT::fillJSValue):
(JSC::DFG::SpeculativeJIT::nonSpeculativeValueToNumber):
(JSC::DFG::SpeculativeJIT::nonSpeculativeValueToInt32):
(JSC::DFG::SpeculativeJIT::nonSpeculativeUInt32ToNumber):
(JSC::DFG::SpeculativeJIT::nonSpeculativeKnownConstantArithOp):
(JSC::DFG::SpeculativeJIT::nonSpeculativeBasicArithOp):
(JSC::DFG::SpeculativeJIT::cachedGetById):
(JSC::DFG::SpeculativeJIT::cachedPutById):
(JSC::DFG::SpeculativeJIT::cachedGetMethod):
(JSC::DFG::SpeculativeJIT::nonSpeculativeNonPeepholeCompareNull):
(JSC::DFG::SpeculativeJIT::nonSpeculativePeepholeBranchNull):
(JSC::DFG::SpeculativeJIT::nonSpeculativeCompareNull):
(JSC::DFG::SpeculativeJIT::nonSpeculativePeepholeBranch):
(JSC::DFG::SpeculativeJIT::nonSpeculativeNonPeepholeCompare):
(JSC::DFG::SpeculativeJIT::nonSpeculativePeepholeStrictEq):
(JSC::DFG::SpeculativeJIT::nonSpeculativeNonPeepholeStrictEq):
(JSC::DFG::SpeculativeJIT::emitCall):
* dfg/DFGSpeculativeJIT64.cpp:
(JSC::DFG::SpeculativeJIT::fillInteger):
(JSC::DFG::SpeculativeJIT::fillDouble):
(JSC::DFG::SpeculativeJIT::fillJSValue):
(JSC::DFG::SpeculativeJIT::nonSpeculativeValueToNumber):
(JSC::DFG::SpeculativeJIT::nonSpeculativeValueToInt32):
(JSC::DFG::SpeculativeJIT::nonSpeculativeUInt32ToNumber):
(JSC::DFG::SpeculativeJIT::nonSpeculativeKnownConstantArithOp):
(JSC::DFG::SpeculativeJIT::nonSpeculativeBasicArithOp):
(JSC::DFG::SpeculativeJIT::cachedGetById):
(JSC::DFG::SpeculativeJIT::cachedPutById):
(JSC::DFG::SpeculativeJIT::cachedGetMethod):
(JSC::DFG::SpeculativeJIT::nonSpeculativeNonPeepholeCompareNull):
(JSC::DFG::SpeculativeJIT::nonSpeculativePeepholeBranchNull):
(JSC::DFG::SpeculativeJIT::nonSpeculativeCompareNull):
(JSC::DFG::SpeculativeJIT::nonSpeculativePeepholeBranch):
(JSC::DFG::SpeculativeJIT::nonSpeculativeNonPeepholeCompare):
(JSC::DFG::SpeculativeJIT::nonSpeculativePeepholeStrictEq):
(JSC::DFG::SpeculativeJIT::nonSpeculativeNonPeepholeStrictEq):
(JSC::DFG::SpeculativeJIT::emitCall):
* runtime/JSFunction.h:

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

8 years agoFix the change log entry for r59190.
rniwa@webkit.org [Tue, 15 Nov 2011 07:01:50 +0000 (07:01 +0000)]
Fix the change log entry for r59190.

* ChangeLog-2010-05-24:

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

8 years agoWeak reference harvesters should run to fixpoint
fpizlo@apple.com [Tue, 15 Nov 2011 06:58:19 +0000 (06:58 +0000)]
Weak reference harvesters should run to fixpoint
https://bugs.webkit.org/show_bug.cgi?id=72346

Reviewed by Oliver Hunt.

* heap/Heap.cpp:
(JSC::Heap::markRoots):
* heap/ListableHandler.h:
(JSC::ListableHandler::next):
(JSC::ListableHandler::List::head):
(JSC::ListableHandler::List::removeNext):
(JSC::ListableHandler::List::removeAll):
* heap/MarkStack.cpp:
(JSC::MarkStackThreadSharedData::reset):
(JSC::SlotVisitor::harvestWeakReferences):
* heap/MarkStack.h:
(JSC::MarkStack::isEmpty):

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

8 years agobuild-webkit: Accept --cmakearg to pass additional arguments to CMake.
dbates@webkit.org [Tue, 15 Nov 2011 06:43:01 +0000 (06:43 +0000)]
build-webkit: Accept --cmakearg to pass additional arguments to CMake.
https://bugs.webkit.org/show_bug.cgi?id=72156

Patch by Raphael Kubo da Costa <kubo@profusion.mobi> on 2011-11-14
Reviewed by Daniel Bates.

Similar to --makearg and --qmakearg, --cmakearg lets one pass
additional arguments to CMake (eg. --cmakearg="-DFOO=bar").

* Scripts/build-webkit:
* Scripts/webkitdirs.pm:
(generateBuildSystemFromCMakeProject):

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

8 years agor100196 needed to also rebaseline Windows, not just Linux.
pkasting@chromium.org [Tue, 15 Nov 2011 06:29:44 +0000 (06:29 +0000)]
r100196 needed to also rebaseline Windows, not just Linux.

Unreviewed, gardening.

* platform/chromium-linux/fast/repaint/scale-page-shrink-expected.txt: Removed.
* platform/chromium-win/fast/repaint/scale-page-shrink-expected.png:

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

8 years agoSource/WebCore: [V8][Chromium]Serialize dense arrays densly
dslomov@google.com [Tue, 15 Nov 2011 06:14:31 +0000 (06:14 +0000)]
Source/WebCore: [V8][Chromium]Serialize dense arrays densly
https://bugs.webkit.org/show_bug.cgi?id=72198
This patch ensures that:
- Dense arrays are serialized densly, and not as name-value pairs
- Sparse arrays are allocated as sparse on deserialization.
The criteria to choose whether to serialize densly or sparsely is the size
of a resulting serialized stream.

Reviewed by David Levin.

Test: fast/dom/Window/window-postmessage-arrays.html

* bindings/v8/SerializedScriptValue.cpp:
(WebCore::V8ObjectMap::Writer::writeDenseArray):
(WebCore::V8ObjectMap::Writer::writeGenerateFreshSparseArray):
(WebCore::V8ObjectMap::Writer::writeGenerateFreshDenseArray):
(WebCore::V8ObjectMap::Serializer::writeDenseArray):
(WebCore::V8ObjectMap::Serializer::AbstractObjectState::execDepth):
(WebCore::V8ObjectMap::Serializer::AbstractObjectState::serializeProperties):
(WebCore::V8ObjectMap::Serializer::ObjectState::advance):
(WebCore::V8ObjectMap::Serializer::DenseArrayState::DenseArrayState):
(WebCore::V8ObjectMap::Serializer::DenseArrayState::advance):
(WebCore::V8ObjectMap::Serializer::DenseArrayState::objectDone):
(WebCore::V8ObjectMap::Serializer::SparseArrayState::SparseArrayState):
(WebCore::V8ObjectMap::Serializer::SparseArrayState::advance):
(WebCore::V8ObjectMap::Serializer::serializeDensely):
(WebCore::V8ObjectMap::Serializer::startArrayState):
(WebCore::V8ObjectMap::Serializer::startObjectState):
(WebCore::V8ObjectMap::Serializer::doSerialize):
(WebCore::V8ObjectMap::Reader::read):
(WebCore::V8ObjectMap::Deserializer::newSparseArray):
(WebCore::V8ObjectMap::Deserializer::completeSparseArray):
(WebCore::V8ObjectMap::Deserializer::completeDenseArray):

LayoutTests: [V8][Chromium]Serialize dense arrays densly.
https://bugs.webkit.org/show_bug.cgi?id=72198

Reviewed by David Levin.

* fast/dom/Window/script-tests/postmessage-clone.js:
* fast/dom/Window/window-postmessage-arrays-expected.txt: Added.
* fast/dom/Window/window-postmessage-arrays.html: Added.

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

8 years ago[chromium] More rebaselines for r100177 after r100193 did not fully
pkasting@chromium.org [Tue, 15 Nov 2011 06:07:16 +0000 (06:07 +0000)]
[chromium] More rebaselines for r100177 after r100193 did not fully
green the Chromium Mac bots.

Unreviewed, gardening.

* platform/chromium-cg-mac-snowleopard/fast/table/prepend-in-anonymous-table-expected.txt: Removed.
* platform/chromium/fast/table/prepend-in-anonymous-table-expected.txt: Added.

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

8 years ago[chromium] More rebaselines for r100177 after r100193 did not fully
pkasting@chromium.org [Tue, 15 Nov 2011 05:39:19 +0000 (05:39 +0000)]
[chromium] More rebaselines for r100177 after r100193 did not fully
green the Chromium Mac bots.

Unreviewed, gardening.

* platform/chromium-cg-mac-leopard/css2.1/20110323/border-spacing-applies-to-015-expected.png: Added.
* platform/chromium-cg-mac-leopard/css2.1/20110323/table-caption-001-expected.png: Added.
* platform/chromium-cg-mac-leopard/css2.1/20110323/table-caption-002-expected.png: Added.
* platform/chromium-cg-mac-leopard/css2.1/20110323/table-caption-horizontal-alignment-001-expected.png: Added.
* platform/chromium-cg-mac-leopard/css2.1/20110323/table-caption-margins-001-expected.png: Added.
* platform/chromium-cg-mac-leopard/css2.1/20110323/table-caption-optional-001-expected.png: Added.
* platform/chromium-cg-mac-leopard/css2.1/20110323/table-caption-optional-002-expected.png: Added.
* platform/chromium-cg-mac-leopard/fast/table/dynamic-caption-add-before-child-expected.png:
* platform/chromium-cg-mac-leopard/fast/table/multiple-captions-display-expected.png:
* platform/chromium-cg-mac-leopard/tables/mozilla_expected_failures/other/test4-expected.png:
* platform/chromium-cg-mac-snowleopard/css2.1/20110323/table-caption-001-expected.png: Removed.
* platform/chromium-cg-mac-snowleopard/css2.1/20110323/table-caption-horizontal-alignment-001-expected.png: Removed.
* platform/chromium-cg-mac-snowleopard/css2.1/20110323/table-caption-margins-001-expected.png: Removed.
* platform/chromium-cg-mac-snowleopard/css2.1/20110323/table-caption-optional-001-expected.png: Removed.
* platform/chromium-cg-mac-snowleopard/css2.1/20110323/table-caption-optional-002-expected.png: Removed.
* platform/chromium-cg-mac-snowleopard/fast/table/dynamic-caption-add-before-child-expected.txt: Removed.
* platform/chromium-cg-mac-snowleopard/fast/table/multiple-captions-display-expected.txt: Removed.
* platform/chromium-cg-mac-snowleopard/tables/mozilla_expected_failures/other/test4-expected.txt: Removed.
* platform/chromium-mac-leopard/css2.1/20110323/border-spacing-applies-to-015-expected.png: Added.
* platform/chromium-mac-leopard/css2.1/20110323/table-caption-001-expected.png: Added.
* platform/chromium-mac-leopard/css2.1/20110323/table-caption-002-expected.png: Added.
* platform/chromium-mac-leopard/css2.1/20110323/table-caption-horizontal-alignment-001-expected.png: Added.
* platform/chromium-mac-leopard/css2.1/20110323/table-caption-margins-001-expected.png: Added.
* platform/chromium-mac-leopard/css2.1/20110323/table-caption-optional-001-expected.png: Added.
* platform/chromium-mac-leopard/css2.1/20110323/table-caption-optional-002-expected.png: Added.
* platform/chromium-mac-leopard/fast/table/dynamic-caption-add-before-child-expected.png:
* platform/chromium-mac-leopard/fast/table/multiple-captions-display-expected.png:
* platform/chromium-mac-leopard/tables/mozilla_expected_failures/other/test4-expected.png:
* platform/chromium-mac-snowleopard/css2.1/20110323/border-spacing-applies-to-015-expected.png: Added.
* platform/chromium-mac-snowleopard/css2.1/20110323/table-caption-002-expected.png: Added.
* platform/chromium-mac-snowleopard/fast/table/dynamic-caption-add-before-child-expected.png:
* platform/chromium-mac-snowleopard/fast/table/multiple-captions-display-expected.png:
* platform/chromium-mac-snowleopard/tables/mozilla_expected_failures/other/test4-expected.png:
* platform/chromium/css2.1/20110323/table-caption-001-expected.png: Added.
* platform/chromium/css2.1/20110323/table-caption-horizontal-alignment-001-expected.png: Added.
* platform/chromium/css2.1/20110323/table-caption-margins-001-expected.png: Added.
* platform/chromium/css2.1/20110323/table-caption-optional-001-expected.png: Added.
* platform/chromium/css2.1/20110323/table-caption-optional-002-expected.png: Added.
* platform/chromium/fast/table/dynamic-caption-add-before-child-expected.txt: Added.
* platform/chromium/fast/table/multiple-captions-display-expected.txt: Added.
* platform/chromium/tables/mozilla_expected_failures/other/test4-expected.txt: Added.
* platform/chromium/test_expectations.txt:

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

8 years agoRebaseline svg/foreignObject/multiple-foreign-objects.html on Snow
pkasting@chromium.org [Tue, 15 Nov 2011 04:27:50 +0000 (04:27 +0000)]
Rebaseline svg/foreignObject/multiple-foreign-objects.html on Snow
Leopard and earlier.

Unreviewed, gardening.

* platform/mac-snowleopard/svg/foreignObject: Added.
* platform/mac-snowleopard/svg/foreignObject/multiple-foreign-objects-expected.txt: Added.

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

8 years ago[chromium] Fix scaleDelta zoom-out visibility rect bug
commit-queue@webkit.org [Tue, 15 Nov 2011 04:08:20 +0000 (04:08 +0000)]
[chromium] Fix scaleDelta zoom-out visibility rect bug
https://bugs.webkit.org/show_bug.cgi?id=72208

Since the scroll is no longer applied at the top layer of the layer
tree, the scaleDelta transformation needs to be moved down to the
same level.

Also fix zoomAnimator to be applied the same way.  I removed zoom
animator layout tests, as they aren't testing the actual impl-side
codepath, and are hard to continue supporting -- we should cover zoom
features with unit tests in the future.

Patch by Alexandre Elias <aelias@google.com> on 2011-11-14
Reviewed by James Robinson.

No new tests (planning to add later: https://bugs.webkit.org/show_bug.cgi?id=71529)

* platform/graphics/chromium/LayerChromium.h:
(WebCore::LayerChromium::scaleDelta):
* platform/graphics/chromium/LayerRendererChromium.cpp:
(WebCore::LayerRendererChromium::drawLayersInternal):
* platform/graphics/chromium/LayerRendererChromium.h:
* platform/graphics/chromium/cc/CCLayerImpl.cpp:
(WebCore::CCLayerImpl::CCLayerImpl):
(WebCore::CCLayerImpl::setScaleDelta):
* platform/graphics/chromium/cc/CCLayerImpl.h:
(WebCore::CCLayerImpl::scaleDelta):
* platform/graphics/chromium/cc/CCLayerTreeHostCommon.cpp:
(WebCore::calculateDrawTransformsAndVisibilityInternal):
* platform/graphics/chromium/cc/CCLayerTreeHostImpl.cpp:
(WebCore::CCLayerTreeHostImpl::setScaleDelta):
(WebCore::CCLayerTreeHostImpl::setZoomAnimatorTransform):

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

8 years ago[chromium] Fix the build after moving some arrays to WTF
jchaffraix@webkit.org [Tue, 15 Nov 2011 03:14:18 +0000 (03:14 +0000)]
[chromium] Fix the build after moving some arrays to WTF
https://bugs.webkit.org/show_bug.cgi?id=72345

Reviewed by Dirk Pranke.

* public/WebArrayBufferView.h: s/WebCore/WTF/g.

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

8 years agoImprove ChangeLogEntry's reviewer parsing algorithm part 2
rniwa@webkit.org [Tue, 15 Nov 2011 03:08:16 +0000 (03:08 +0000)]
Improve ChangeLogEntry's reviewer parsing algorithm part 2
https://bugs.webkit.org/show_bug.cgi?id=72340

Reviewed by Eric Seidel.

This patch improves the recognition of NOBODY, wrestler names, and parenthesized clauses,
and prepares ChangeLogEntry to support edit-distance-based reviewer-name recognition.

* Scripts/webkitpy/common/checkout/changelog.py:
* Scripts/webkitpy/common/checkout/changelog_unittest.py:

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

8 years agoWebProcess crashes when trying to display your "uploaded videos" page on Facebook
cfleizach@apple.com [Tue, 15 Nov 2011 02:46:35 +0000 (02:46 +0000)]
WebProcess crashes when trying to display your "uploaded videos" page on Facebook
https://bugs.webkit.org/show_bug.cgi?id=72334

Reviewed by Beth Dakin.

Protect against documents without frames.

* accessibility/mac/WebAccessibilityObjectWrapper.mm:
(-[WebAccessibilityObjectWrapper remoteAccessibilityParentObject]):

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

8 years agocheck-webkit-style broken by r99773: "Could not determine the port"
eric@webkit.org [Tue, 15 Nov 2011 02:33:51 +0000 (02:33 +0000)]
check-webkit-style broken by r99773: "Could not determine the port"
https://bugs.webkit.org/show_bug.cgi?id=72275

Reviewed by Adam Barth.

The TestExpectationsChecker was using a generic try/except block
which caught all exceptions, so we didn't notice that failing
to pass a Host to PortFactory was causing an exception in port instantiation.
I've factored out the "lookup the port" logic into a separate function
which I've now unittested.  This should fix the bug and prevent
others like it from occuring the the future.

* Scripts/webkitpy/style/checkers/test_expectations.py:
* Scripts/webkitpy/style/checkers/test_expectations_unittest.py:

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

8 years agoMore V8 build fixes.
oliver@apple.com [Tue, 15 Nov 2011 02:18:38 +0000 (02:18 +0000)]
More V8 build fixes.

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

8 years agoFix V8 build again.
oliver@apple.com [Tue, 15 Nov 2011 02:06:08 +0000 (02:06 +0000)]
Fix V8 build again.

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

8 years agoFix V8 build
oliver@apple.com [Tue, 15 Nov 2011 01:58:46 +0000 (01:58 +0000)]
Fix V8 build

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

8 years agoStart migrating typed array impl types to WTF
oliver@apple.com [Tue, 15 Nov 2011 01:52:20 +0000 (01:52 +0000)]
Start migrating typed array impl types to WTF
https://bugs.webkit.org/show_bug.cgi?id=72336

Reviewed by Geoffrey Garen.

Source/JavaScriptCore:

Add typed array impls to WTF forwarding header.

* wtf/Forward.h:

Source/WebCore:

Move typed arrays from WebCore namespace to WTF, and
start reducing dependencies on WebCore types.

* bindings/js/JSArrayBufferViewHelper.h:
(WebCore::setWebGLArrayHelper):
* bindings/scripts/CodeGeneratorJS.pm:
(IsTypedArrayType):
(AddClassForwardIfNeeded):
(GenerateImplementation):
* bindings/scripts/CodeGeneratorV8.pm:
(IsTypedArrayType):
* bindings/scripts/test/CPP/WebDOMFloat64Array.cpp: Added.
(WebDOMFloat64Array::WebDOMFloat64Array):
(WebDOMFloat64Array::impl):
(toWebCore):
(toWebKit):
* bindings/scripts/test/CPP/WebDOMFloat64Array.h: Added.
(WebDOMFloat64Array::~WebDOMFloat64Array):
* bindings/scripts/test/GObject/WebKitDOMFloat64Array.cpp: Added.
(WebKit::kit):
(WebKit::core):
(webkit_dom_float64array_finalize):
(webkit_dom_float64array_set_property):
(webkit_dom_float64array_get_property):
(webkit_dom_float64array_constructed):
(webkit_dom_float64array_class_init):
(webkit_dom_float64array_init):
(WebKit::wrapFloat64Array):
* bindings/scripts/test/GObject/WebKitDOMFloat64Array.h: Added.
* bindings/scripts/test/GObject/WebKitDOMFloat64ArrayPrivate.h: Added.
* bindings/scripts/test/JS/JSFloat64Array.cpp: Added.
(WebCore::JSFloat64ArrayConstructor::JSFloat64ArrayConstructor):
(WebCore::JSFloat64ArrayConstructor::finishCreation):
(WebCore::JSFloat64ArrayConstructor::getOwnPropertySlot):
(WebCore::JSFloat64ArrayConstructor::getOwnPropertyDescriptor):
(WebCore::JSFloat64ArrayConstructor::getConstructData):
(WebCore::getJSFloat64ArrayPrototypeTable):
(WebCore::JSFloat64ArrayPrototype::self):
(WebCore::getJSFloat64ArrayTable):
(WebCore::JSFloat64Array::JSFloat64Array):
(WebCore::JSFloat64Array::finishCreation):
(WebCore::JSFloat64Array::createPrototype):
(WebCore::JSFloat64Array::getOwnPropertySlot):
(WebCore::JSFloat64Array::getOwnPropertyDescriptor):
(WebCore::JSFloat64Array::getOwnPropertySlotByIndex):
(WebCore::jsFloat64ArrayConstructor):
(WebCore::JSFloat64Array::put):
(WebCore::JSFloat64Array::putByIndex):
(WebCore::JSFloat64Array::getOwnPropertyNames):
(WebCore::JSFloat64Array::getConstructor):
(WebCore::JSFloat64Array::getByIndex):
(WebCore::toFloat64Array):
(WTF::Float64Array::neuterBinding):
* bindings/scripts/test/JS/JSFloat64Array.h: Added.
(WebCore::JSFloat64Array::create):
(WebCore::JSFloat64Array::createStructure):
(WebCore::JSFloat64Array::impl):
(WebCore::JSFloat64ArrayPrototype::create):
(WebCore::JSFloat64ArrayPrototype::createStructure):
(WebCore::JSFloat64ArrayPrototype::JSFloat64ArrayPrototype):
(WebCore::JSFloat64ArrayConstructor::create):
(WebCore::JSFloat64ArrayConstructor::createStructure):
* bindings/scripts/test/ObjC/DOMFloat64Array.h: Copied from Source/WebCore/html/canvas/Int16Array.cpp.
* bindings/scripts/test/ObjC/DOMFloat64Array.mm: Copied from Source/WebCore/html/canvas/Float32Array.cpp.
(core):
(kit):
* bindings/scripts/test/ObjC/DOMFloat64ArrayInternal.h: Copied from Source/WebCore/html/canvas/Int16Array.cpp.
* bindings/scripts/test/TestTypedArray.idl: Copied from Source/WebCore/html/canvas/Float64Array.cpp.
* bindings/scripts/test/V8/V8Float64Array.cpp: Added.
(WebCore::Float64ArrayInternal::V8_USE):
(WebCore::ConfigureV8Float64ArrayTemplate):
(WebCore::V8Float64Array::GetRawTemplate):
(WebCore::V8Float64Array::GetTemplate):
(WebCore::V8Float64Array::HasInstance):
(WebCore::V8Float64Array::wrapSlow):
(WTF::Float64Array::neuterBinding):
(WebCore::V8Float64Array::derefObject):
* bindings/scripts/test/V8/V8Float64Array.h: Added.
(WebCore::V8Float64Array::toNative):
(WebCore::V8Float64Array::existingWrapper):
(WebCore::V8Float64Array::wrap):
(WebCore::toV8):
* fileapi/FileReader.h:
* fileapi/FileReaderLoader.h:
* fileapi/FileReaderSync.h:
* fileapi/WebKitBlobBuilder.h:
* html/HTMLMediaElement.h:
* html/canvas/ArrayBuffer.cpp:
* html/canvas/ArrayBuffer.h:
* html/canvas/ArrayBufferView.cpp:
(WTF::ArrayBufferView::setImpl):
(WTF::ArrayBufferView::setRangeImpl):
(WTF::ArrayBufferView::zeroRangeImpl):
(WTF::ArrayBufferView::neuter):
* html/canvas/ArrayBufferView.h:
* html/canvas/Float32Array.cpp:
* html/canvas/Float32Array.h:
(WTF::Float32Array::set):
* html/canvas/Float64Array.cpp:
* html/canvas/Float64Array.h:
(WTF::Float64Array::set):
* html/canvas/Int16Array.cpp:
* html/canvas/Int16Array.h:
(WTF::Int16Array::set):
* html/canvas/Int32Array.cpp:
* html/canvas/Int32Array.h:
(WTF::Int32Array::set):
* html/canvas/Int8Array.cpp:
* html/canvas/Int8Array.h:
(WTF::Int8Array::set):
* html/canvas/IntegralTypedArrayBase.h:
* html/canvas/TypedArrayBase.h:
(WTF::TypedArrayBase::set):
(WTF::TypedArrayBase::setRange):
(WTF::TypedArrayBase::zeroRange):
* html/canvas/Uint16Array.cpp:
* html/canvas/Uint16Array.h:
(WTF::Uint16Array::set):
* html/canvas/Uint32Array.cpp:
* html/canvas/Uint32Array.h:
(WTF::Uint32Array::set):
* html/canvas/Uint8Array.cpp:
* html/canvas/Uint8Array.h:
(WTF::Uint8Array::set):
* html/canvas/WebGLBuffer.h:
* page/Crypto.h:
* webaudio/AsyncAudioDecoder.h:
* webaudio/AudioBuffer.cpp:
(WebCore::AudioBuffer::AudioBuffer):
(WebCore::AudioBuffer::zero):
* webaudio/AudioContext.h:
* webaudio/JavaScriptAudioNode.h:
* webaudio/RealtimeAnalyser.h:
* webaudio/RealtimeAnalyserNode.h:
* webaudio/WaveShaperNode.h:
* websockets/ThreadableWebSocketChannel.h:
* websockets/WebSocket.h:
* websockets/WebSocketChannel.h:
* xml/XMLHttpRequest.h:

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

8 years agoAdd --css-grid-layout to build-webkit and the build systems
jchaffraix@webkit.org [Tue, 15 Nov 2011 01:48:43 +0000 (01:48 +0000)]
Add --css-grid-layout to build-webkit and the build systems
https://bugs.webkit.org/show_bug.cgi?id=72320

Reviewed by Ojan Vafai.

Source/JavaScriptCore:

* Configurations/FeatureDefines.xcconfig:

Source/WebCore:

* Configurations/FeatureDefines.xcconfig:

Source/WebKit/mac:

* Configurations/FeatureDefines.xcconfig:

Source/WebKit2:

* Configurations/FeatureDefines.xcconfig:

Tools:

* Scripts/build-webkit:
Added the option.

WebKitLibraries:

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

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

8 years agoRemove unnecessary #include SVGResourcesCache.h in SVGDocumentExtensions.h; use forwa...
commit-queue@webkit.org [Tue, 15 Nov 2011 01:43:16 +0000 (01:43 +0000)]
Remove unnecessary #include SVGResourcesCache.h in SVGDocumentExtensions.h; use forward declaration
https://bugs.webkit.org/show_bug.cgi?id=72335

Patch by Daniel Bates <dbates@rim.com> on 2011-11-14
Reviewed by Eric Seidel.

It's sufficient to forward declare SVGResourcesCache in SVGDocumentExtensions.h and #include SVGResourcesCache.h
in SVGDocumentExtensions.cpp. This will reduce the number of files we need to re-compile after the file
SVGResourcesCache.h has been modified. Currently we #include SVGResourcesCache.h in SVGDocumentExtensions.h.

* rendering/svg/RenderSVGBlock.cpp: Include SVGResourcesCache.h.
* rendering/svg/RenderSVGContainer.cpp: Ditto.
* rendering/svg/RenderSVGForeignObject.cpp: Ditto.
* rendering/svg/RenderSVGImage.cpp: Ditto.
* rendering/svg/RenderSVGInline.cpp: Ditto.
* rendering/svg/RenderSVGModelObject.cpp: Ditto.
* rendering/svg/RenderSVGPath.cpp: Ditto.
* rendering/svg/RenderSVGResource.cpp: Ditto.
* rendering/svg/RenderSVGResourceClipper.cpp: Ditto.
* rendering/svg/RenderSVGResourceContainer.cpp: Ditto.
* rendering/svg/RenderSVGRoot.cpp: Ditto.
* rendering/svg/RenderSVGText.cpp: Ditto.
* rendering/svg/SVGInlineTextBox.cpp: Ditto.
* rendering/svg/SVGRenderSupport.cpp: Ditto.
* svg/SVGDocumentExtensions.cpp: Ditto.
* svg/SVGDocumentExtensions.h: Forward declare SVGResourcesCache.

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

8 years agoA little bit of arguments / activation cleanup
ggaren@apple.com [Tue, 15 Nov 2011 01:39:52 +0000 (01:39 +0000)]
A little bit of arguments / activation cleanup
https://bugs.webkit.org/show_bug.cgi?id=72339

Reviewed by Gavin Barraclough.

Renamed copyRegisters => tearOff to match bytecode and other terminology.

Renamed setActivation => didTearOffActivation to indicate that this is a
notification the object may choose to ignore. Moved "Should I ignore?"
code into the arguments object to avoid duplication elsewhere.

* interpreter/Interpreter.cpp:
(JSC::Interpreter::unwindCallFrame):
(JSC::Interpreter::privateExecute):
(JSC::Interpreter::retrieveArguments):
* jit/JITStubs.cpp:
(JSC::DEFINE_STUB_FUNCTION):
* runtime/Arguments.h:
(JSC::Arguments::createAndTearOff):
(JSC::Arguments::didTearOffActivation):
(JSC::Arguments::finishCreationButDontTearOff):
(JSC::Arguments::finishCreation):
(JSC::Arguments::finishCreationAndTearOff):
(JSC::Arguments::tearOff):

* runtime/JSActivation.h:
(JSC::JSActivation::tearOff): Moved Activation's code into its own header
because that's where it belongs.

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

8 years agoShould sign the jsc binary
barraclough@apple.com [Tue, 15 Nov 2011 01:32:34 +0000 (01:32 +0000)]
Should sign the jsc binary
https://bugs.webkit.org/show_bug.cgi?id=72332

Reviewed by David Kilzer.

* Configurations/JSC.xcconfig:
* entitlements.plist: Added.

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

8 years ago[MutationObservers] Add histogram collection for usage of DOM Mutation Events
commit-queue@webkit.org [Tue, 15 Nov 2011 01:23:35 +0000 (01:23 +0000)]
[MutationObservers] Add histogram collection for usage of DOM Mutation Events
https://bugs.webkit.org/show_bug.cgi?id=72316

Patch by Rafael Weinstein <rafaelw@chromium.org> on 2011-11-14
Reviewed by Ryosuke Niwa.

This patch adds six calls in ~Document() which simply pipe-out to the embedder
the (already-collected) bits of whether varous DOM Mutation Events were registered
on the document.

No tests needed. No functional changes.

* dom/Document.cpp:
(WebCore::histogramMutationEventUsage):
(WebCore::Document::~Document):

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

8 years agoDFG's inline references to objects should be tracked
fpizlo@apple.com [Tue, 15 Nov 2011 01:22:52 +0000 (01:22 +0000)]
DFG's inline references to objects should be tracked
https://bugs.webkit.org/show_bug.cgi?id=72313

Reviewed by Gavin Barraclough.

Added a pinCell() method in the parser that currently creates a
dummy constant in CodeBlock. Added calls to pinCell() wherever the
DFG would inline a constant reference that the original code would
not have referred to.

* dfg/DFGByteCodeParser.cpp:
(JSC::DFG::ByteCodeParser::getCellConstantIndex):
(JSC::DFG::ByteCodeParser::pinCell):
(JSC::DFG::ByteCodeParser::cellConstant):
(JSC::DFG::ByteCodeParser::handleCall):
(JSC::DFG::ByteCodeParser::handleInlining):
(JSC::DFG::ByteCodeParser::parseBlock):

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

8 years agoTest JPEG image decoding RGB pixel endianess
noel.gordon@gmail.com [Tue, 15 Nov 2011 01:13:24 +0000 (01:13 +0000)]
Test JPEG image decoding RGB pixel endianess
https://bugs.webkit.org/show_bug.cgi?id=72234

Reviewed by Kent Tamura.

JPEG image RGB pixels should render without color corruption and in strict
order, regardless of the underlying machine pixel buffer endianess.

* fast/images/resources/rgb-jpeg-blue.jpg: Added.
* fast/images/resources/rgb-jpeg-green.jpg: Added.
* fast/images/resources/rgb-jpeg-red.jpg: Added.
* fast/images/rgb-jpeg-endian-pixels-expected.txt: Added.
* fast/images/rgb-jpeg-endian-pixels.html: Added.

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

8 years agoDFG put_by_id transition optimizations test the wrong structures
fpizlo@apple.com [Tue, 15 Nov 2011 01:04:08 +0000 (01:04 +0000)]
DFG put_by_id transition optimizations test the wrong structures
https://bugs.webkit.org/show_bug.cgi?id=72324

Reviewed by Gavin Barraclough.

* dfg/DFGByteCodeParser.cpp:
(JSC::DFG::ByteCodeParser::structureChainIsStillValid):
(JSC::DFG::ByteCodeParser::parseBlock):
* jit/JITPropertyAccess.cpp:
(JSC::JIT::privateCompilePutByIdTransition):

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

8 years agoExpose compositeAndReadback in WebLayerTreeView
commit-queue@webkit.org [Tue, 15 Nov 2011 00:51:31 +0000 (00:51 +0000)]
Expose compositeAndReadback in WebLayerTreeView
https://bugs.webkit.org/show_bug.cgi?id=72188

Patch by Ian Vollick <vollick@chromium.org> on 2011-11-14
Reviewed by Darin Fisher.

* public/WebLayerTreeView.h:
* src/WebLayerTreeView.cpp:
(WebKit::WebLayerTreeView::compositeAndReadback):

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

8 years agoUnreviewed, rolling out r100192.
commit-queue@webkit.org [Tue, 15 Nov 2011 00:47:18 +0000 (00:47 +0000)]
Unreviewed, rolling out r100192.
http://trac.webkit.org/changeset/100192
https://bugs.webkit.org/show_bug.cgi?id=72328

Caused infinite tests to fail (Requested by abarth on
#webkit).

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

* Scripts/webkitpy/layout_tests/port/base.py:
* Scripts/webkitpy/layout_tests/port/base_unittest.py:

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

8 years agodiv with webkit-transform + webkit-box-reflect disappears when switching tabs
simon.fraser@apple.com [Tue, 15 Nov 2011 00:34:35 +0000 (00:34 +0000)]
div with webkit-transform + webkit-box-reflect disappears when switching tabs
https://bugs.webkit.org/show_bug.cgi?id=53355

Reviewed by Dean Jackson.

Tickle Core Animation into updating the layer's content property when
switching back to a tab which has composited reflections. This hack is
needed becuase reflections involve sharing layer contents between layers.

* platform/graphics/mac/WebLayer.mm:
(-[WebLayer actionForKey:]):

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

8 years agoUnique origins shouldn't remember their scheme, host, or port
abarth@webkit.org [Tue, 15 Nov 2011 00:24:33 +0000 (00:24 +0000)]
Unique origins shouldn't remember their scheme, host, or port
https://bugs.webkit.org/show_bug.cgi?id=72308

Reviewed by Eric Seidel.

Source/WebCore:

This patch contains the bulk (all?) of the behavior differences in this
patch series.  Unique origins shouldn't remember their schemes.  Doing
so causes some privileges (e.g., local access) to leak into unique
origins.

* page/SecurityOrigin.cpp:
(WebCore::SecurityOrigin::SecurityOrigin):
    - Explicitly clear out the protocol, host, and port for unique
      origins.  A future patch will refactor all this code to be more
      elegant.
* platform/SchemeRegistry.cpp:
(WebCore::schemesWithUniqueOrigins):
    - Merge "about" and "javascript" in with the general case now that
      we don't have a separate notion of an empty origin.

LayoutTests:

* fast/filesystem/async-operations-expected.txt:
* fast/filesystem/not-enough-arguments-expected.txt:
* fast/filesystem/read-directory-expected.txt:
* fast/filesystem/simple-persistent-expected.txt:
* fast/filesystem/simple-readonly-expected.txt:
* fast/filesystem/simple-temporary-expected.txt:
    - Update test results to show that we no longer leak the scheme in
      storage identifiers.
* fast/frames/resources/sandboxed-iframe-storage-disallowed.html:
    - Inline script because the sandbox iframe isn't allowed to load
      local resources.
* fast/frames/sandboxed-iframe-attribute-parsing.html:
* fast/frames/sandboxed-iframe-forms-dynamic.html:
* fast/frames/sandboxed-iframe-forms.html:
* fast/frames/sandboxed-iframe-navigation-top-by-constant-name.html:
* fast/frames/sandboxed-iframe-navigation-top-by-constant-name2.html:
* fast/frames/sandboxed-iframe-navigation-top-by-name.html:
* fast/frames/sandboxed-iframe-navigation-top.html:
* media/video-controls-no-scripting.html:
    - Previously sandboxed local iframes still got universal access
      when we're running with universal access for file URLs!  Now that
      they correctly get unique origins, we need to update these tests
      to allow-same-origin access in order for them to function
      properly.

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

8 years agoUpgrade WordPress's Akismet plug-in to the latest version.
mrowe@apple.com [Tue, 15 Nov 2011 00:21:53 +0000 (00:21 +0000)]
Upgrade WordPress's Akismet plug-in to the latest version.

* blog/wp-content/plugins/akismet:

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

8 years agoTest getting / setting display: -webkit-flexbox and -webkit-flexbox-inline
jchaffraix@webkit.org [Tue, 15 Nov 2011 00:20:14 +0000 (00:20 +0000)]
Test getting / setting display: -webkit-flexbox and -webkit-flexbox-inline
https://bugs.webkit.org/show_bug.cgi?id=72318

Reviewed by Tony Chang.

Test that covers the change for bug 72296 and also increase our flexbox coverage.

* css3/flexbox/display-flexbox-set-get-expected.txt: Added.
* css3/flexbox/display-flexbox-set-get.html: Added.
* css3/flexbox/resources/display-flexbox-set-get.js: Added.

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

8 years agoAdd buffering to handle mismatch between hardware buffer size and webaudio render...
commit-queue@webkit.org [Tue, 15 Nov 2011 00:18:44 +0000 (00:18 +0000)]
Add buffering to handle mismatch between hardware buffer size and webaudio render size
https://bugs.webkit.org/show_bug.cgi?id=71949

Patch by Raymond Toy <rtoy@google.com> on 2011-11-14
Reviewed by Kenneth Russell.

* src/AudioDestinationChromium.cpp:
(WebCore::AudioDestinationChromium::AudioDestinationChromium):
Create the FIFO for buffering.
(WebCore::AudioDestinationChromium::render):  Get rid of
m_renderCountPerCallback and let the FIFO consume function produce
the appropriate nubmer of calls to the webaudio producer.  Also
remove the rounding of the callback size so we use whatever the
hardware returns.  Removed maximumCallbackBufferSize and use
fifoSize to set the FIFO size.
(WebCore::AudioDestinationChromium::FIFO::FIFO):
(WebCore::AudioDestinationChromium::FIFO::consume):
(WebCore::AudioDestinationChromium::FIFO::findWrapLengths):
(WebCore::AudioDestinationChromium::FIFO::fillBuffer):
Implementation of new FIFO class.
* src/AudioDestinationChromium.h:
(WebCore::AudioDestinationChromium::FIFO::updateIndex):
Define new FIFO class.

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

8 years agoUpdate one file that was missed.
mrowe@apple.com [Tue, 15 Nov 2011 00:16:59 +0000 (00:16 +0000)]
Update one file that was missed.

* blog/wp-settings.php:

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

8 years agoFurther changes and cleanup to JSString.h and cpp.
msaboff@apple.com [Tue, 15 Nov 2011 00:16:59 +0000 (00:16 +0000)]
Further changes and cleanup to JSString.h and cpp.

Reviewed by Darin Adler.

* runtime/JSString.cpp:
(JSC::JSString::resolveRope): Change PassRefPtr to RefPtr.  Eliminated exec in slow case calls.
(JSC::JSString::resolveRopeSlowCase8): Darin and I agreed that this should have 8 in name.
(JSC::JSString::resolveRopeSlowCase): Removed exec parameter.
* runtime/JSString.h:

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

8 years agoUpgrade WordPress to v3.2.1.
mrowe@apple.com [Tue, 15 Nov 2011 00:12:56 +0000 (00:12 +0000)]
Upgrade WordPress to v3.2.1.

* blog:

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

8 years agoDateMath.cpp should not depend on JavaScriptCore
abarth@webkit.org [Tue, 15 Nov 2011 00:04:53 +0000 (00:04 +0000)]
DateMath.cpp should not depend on JavaScriptCore
https://bugs.webkit.org/show_bug.cgi?id=71747

Reviewed by Darin Adler.

This patch moves the JSC-specific parts of DateMath into JSDateMath in
JavaScriptCore.  There shouldn't be any behavior change.

* CMakeLists.txt:
* GNUmakefile.list.am:
* JavaScriptCore.gypi:
* JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCore.vcproj:
* JavaScriptCore.xcodeproj/project.pbxproj:
* Target.pri:
* runtime/DateConstructor.cpp:
* runtime/DateConversion.cpp:
* runtime/DateInstance.cpp:
* runtime/DateInstanceCache.h:
* runtime/DatePrototype.cpp:
* runtime/InitializeThreading.cpp:
* runtime/JSDateMath.cpp: Copied from Source/JavaScriptCore/wtf/DateMath.cpp.
(JSC::timeToMS):
(JSC::msToSeconds):
* runtime/JSDateMath.h: Copied from Source/JavaScriptCore/wtf/DateMath.h.
* wtf/DateMath.cpp:
(WTF::isLeapYear):
(WTF::msToDays):
(WTF::msToMinutes):
(WTF::msToHours):
(WTF::parseDateFromNullTerminatedCharacters):
(WTF::makeRFC2822DateString):
* wtf/DateMath.h:

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

8 years ago[EFL] Update ewk_frame_script_execute to return the result for JavaScript
commit-queue@webkit.org [Tue, 15 Nov 2011 00:01:15 +0000 (00:01 +0000)]
[EFL] Update ewk_frame_script_execute to return the result for JavaScript
https://bugs.webkit.org/show_bug.cgi?id=65972

Patch by Jongseok Yang <js45.yang@samsung.com> on 2011-11-14
Reviewed by Antonio Gomes.

It executes the javascript and converts the result to a string using toString.
And it returns the memory-allocated pointer for the value.

* ewk/ewk_frame.cpp:
(ewk_frame_script_execute):
* ewk/ewk_frame.h:

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

8 years agoSource/WebCore: Don't special-case "data" URLs in drag-and-drop logic
abarth@webkit.org [Tue, 15 Nov 2011 00:00:00 +0000 (00:00 +0000)]
Source/WebCore: Don't special-case "data" URLs in drag-and-drop logic
https://bugs.webkit.org/show_bug.cgi?id=72322

Reviewed by Eric Seidel.

See the bug for more details.

Test: editing/pasteboard/drag-drop-to-data-url.html

* page/SecurityOrigin.cpp:
(WebCore::SecurityOrigin::canReceiveDragData):

LayoutTests: Cross-origin drag-and-drop prevention ineffective
https://bugs.webkit.org/show_bug.cgi?id=72322

Reviewed by Eric Seidel.

Split drag-drop-dead-frame.html into two tests: one that tests for the
previous crash and one that tests out data URL drag-and-drop behavior.

* editing/pasteboard/drag-drop-dead-frame.html:
* editing/pasteboard/drag-drop-to-data-url-expected.txt: Added.
* editing/pasteboard/drag-drop-to-data-url.html: Added.

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

8 years agoTowards 8 bit strings - Add 8 bit handling to JSString Ropes
msaboff@apple.com [Mon, 14 Nov 2011 23:51:06 +0000 (23:51 +0000)]
Towards 8 bit strings - Add 8 bit handling to JSString Ropes
https://bugs.webkit.org/show_bug.cgi?id=72317

Added bit to track that a rope is made up of all 8 bit fibers.
Created an 8 bit path (fast and slow cases) to handle 8 bit
only ropes.

Reviewed by Oliver Hunt.

* runtime/JSString.cpp:
(JSC::JSString::resolveRope):
(JSC::JSString::resolveRopeSlowCase8):
(JSC::JSString::resolveRopeSlowCase16):
* runtime/JSString.h:
(JSC::RopeBuilder::finishCreation):
(JSC::RopeBuilder::is8Bit):
(JSC::jsSubstring8):

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

8 years agoA little bit of function call cleanup
ggaren@apple.com [Mon, 14 Nov 2011 23:16:27 +0000 (23:16 +0000)]
A little bit of function call cleanup
https://bugs.webkit.org/show_bug.cgi?id=72314

Reviewed by Oliver Hunt.

* bytecompiler/BytecodeGenerator.cpp:
(JSC::BytecodeGenerator::emitCall): Renamed callFrame to registerOffset
because this value doesn't give you the offset of the callee's call frame.

(JSC::BytecodeGenerator::emitReturn): Tightened to use equality instead
of greater-than. Removed comment since its reasoning was wrong.

(JSC::BytecodeGenerator::emitConstruct): Updated for rename mentioned above.

(JSC::BytecodeGenerator::isArgumentNumber): Provided a more precise way
to ask this question, giving the bytecode generator more freedom to change
internal implementation details.

* bytecompiler/BytecodeGenerator.h: Reduced default vector capacity because
16 was overkill.
(JSC::CallArguments::registerOffset): Updated for rename mentioned above.

* bytecompiler/NodesCodegen.cpp:
(JSC::CallArguments::CallArguments):
(JSC::CallArguments::newArgument): Factored out argument allocation into
a helper function, so I can change it later.

(JSC::CallFunctionCallDotNode::emitBytecode):
(JSC::FunctionBodyNode::emitBytecode): Use helper function mentioned above.

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

8 years ago[chromium] Pipe compositor commit/swap up to WebWidgetClient
enne@google.com [Mon, 14 Nov 2011 23:10:16 +0000 (23:10 +0000)]
[chromium] Pipe compositor commit/swap up to WebWidgetClient
https://bugs.webkit.org/show_bug.cgi?id=72041

Reviewed by Darin Fisher.

Source/WebCore:

* platform/graphics/chromium/cc/CCLayerTreeHost.h:
(WebCore::CCLayerTreeHost::didCommitAndDrawFrame):
(WebCore::CCLayerTreeHost::didCompleteSwapBuffers):
* platform/graphics/chromium/cc/CCSingleThreadProxy.cpp:
(WebCore::CCSingleThreadProxy::doComposite):
* platform/graphics/chromium/cc/CCThreadProxy.cpp:
(WebCore::CCThreadProxy::onSwapBuffersCompleteOnImplThread):
(WebCore::CCThreadProxy::scheduledActionDrawAndSwap):
(WebCore::CCThreadProxy::didCommitAndDrawFrame):
(WebCore::CCThreadProxy::didCompleteSwapBuffers):
* platform/graphics/chromium/cc/CCThreadProxy.h:

Source/WebKit/chromium:

* public/WebWidgetClient.h:
(WebKit::WebWidgetClient::didCommitAndDrawCompositorFrame):
(WebKit::WebWidgetClient::didCompleteSwapBuffers):
* src/WebLayerTreeViewImpl.cpp:
(WebKit::WebLayerTreeViewImpl::didCommitAndDrawFrame):
(WebKit::WebLayerTreeViewImpl::didCompleteSwapBuffers):
* src/WebLayerTreeViewImpl.h:
* src/WebViewImpl.cpp:
(WebKit::WebViewImpl::didCommitAndDrawFrame):
(WebKit::WebViewImpl::didCompleteSwapBuffers):
* src/WebViewImpl.h:
* tests/CCLayerTreeHostTest.cpp:
(WTF::MockLayerTreeHostClient::didCommitAndDrawFrame):
(WTF::MockLayerTreeHostClient::didCompleteSwapBuffers):

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

8 years agoRemove the CSS3_FLEXBOX compile time flag and enable on all ports
tony@chromium.org [Mon, 14 Nov 2011 22:51:50 +0000 (22:51 +0000)]
Remove the CSS3_FLEXBOX compile time flag and enable on all ports
https://bugs.webkit.org/show_bug.cgi?id=72196

Reviewed by Ojan Vafai.

Source/JavaScriptCore:

* Configurations/FeatureDefines.xcconfig:

Source/WebCore:

* Configurations/FeatureDefines.xcconfig:
* css/CSSComputedStyleDeclaration.cpp:
(WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
* css/CSSFlexValue.cpp:
* css/CSSFlexValue.h:
* css/CSSParser.cpp:
(WebCore::CSSParser::parseValue):
(WebCore::CSSParser::parseFlex):
* css/CSSPrimitiveValueMappings.h:
(WebCore::CSSPrimitiveValue::CSSPrimitiveValue):
* css/CSSProperty.cpp:
(WebCore::CSSProperty::isInheritedProperty):
* css/CSSPropertyNames.in:
* css/CSSStyleApplyProperty.cpp:
(WebCore::ApplyPropertyLength::applyValue):
(WebCore::CSSStyleApplyProperty::CSSStyleApplyProperty):
* css/CSSStyleSelector.cpp:
(WebCore::CSSStyleSelector::applyProperty):
* css/CSSValue.cpp:
(WebCore::CSSValue::cssText):
(WebCore::CSSValue::destroy):
* css/CSSValue.h:
* css/CSSValueKeywords.in:
* rendering/RenderFlexibleBox.cpp:
* rendering/RenderFlexibleBox.h:
* rendering/RenderObject.cpp:
(WebCore::RenderObject::createObject):
* rendering/RenderObject.h:
(WebCore::RenderObject::isFlexibleBoxIncludingDeprecated):
* rendering/style/RenderStyle.cpp:
(WebCore::RenderStyle::RenderStyle):
(WebCore::RenderStyle::diff):
* rendering/style/RenderStyle.h:
* rendering/style/RenderStyleConstants.h:
* rendering/style/StyleFlexibleBoxData.cpp:
* rendering/style/StyleFlexibleBoxData.h:
* rendering/style/StyleRareNonInheritedData.cpp:
(WebCore::StyleRareNonInheritedData::StyleRareNonInheritedData):
(WebCore::StyleRareNonInheritedData::operator==):
* rendering/style/StyleRareNonInheritedData.h:

Source/WebKit/chromium:

* features.gypi:

Source/WebKit/mac:

* Configurations/FeatureDefines.xcconfig:

Source/WebKit2:

* Configurations/FeatureDefines.xcconfig:

Tools:

* Scripts/build-webkit:

WebKitLibraries:

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

LayoutTests:

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

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

8 years ago<rdar://problem/10424154> testRegExp should not be installed as part of JavaScriptCore
mrowe@apple.com [Mon, 14 Nov 2011 22:47:29 +0000 (22:47 +0000)]
<rdar://problem/10424154> testRegExp should not be installed as part of JavaScriptCore

testRegExp and testapi.js were being installed in the JavaScriptCore framework.
As test-only tools they shouldn't be installed there by default, only when
FORCE_TOOL_INSTALL is set to YES.

This patch incorprorates a few related changes:
1) Make the jsc and testRegExp targets be configured via .xcconfig files.
2) Sets up testRegExp so that SKIP_INSTALL is YES by default, and only NO when
   FORCE_TOOL_INSTALL is YES.
3) Switches the testapi target to using a script build phase to install testapi.js
   so that the installation will be skipped when SKIP_INSTALL is YES. I'm not sure
   why this isn't the built-in behavior when a Copy Files build phase has "Copy only
   when installing" checked, but it doesn't seem to be.
4) Other random cleanup such as removing a bogus group that refers to files that do
   not exist, moving testRegExp.cpp in to the tests group, etc.

Reviewed by Geoff Garen.

* Configurations/JSC.xcconfig: Added.
* Configurations/TestRegExp.xcconfig: Added.
* JavaScriptCore.xcodeproj/project.pbxproj:

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

8 years ago[Chromium] setPageScaleFactor and associated methods should take scaling limits into...
fsamuel@chromium.org [Mon, 14 Nov 2011 22:47:05 +0000 (22:47 +0000)]
[Chromium] setPageScaleFactor and associated methods should take scaling limits into account
https://bugs.webkit.org/show_bug.cgi?id=72176

Source/WebKit/chromium:

Reviewed by Darin Fisher.

A couple of changes:

1. setPageScaleFactorLimits now affects the behavior of other scaling methods
   including setPageScaleFactor.
2. setPageScaleFactorPreservingScrollOffset introduced that scales the scroll offset
   along with the page, preserving the scroll position within the page bounds.

* public/WebView.h:
* src/WebViewImpl.cpp:
(WebKit::WebViewImpl::WebViewImpl):
(WebKit::WebViewImpl::computePageScaleFactorWithinLimits):
(WebKit::WebViewImpl::clampOffsetAtScale):
(WebKit::WebViewImpl::setPageScaleFactorPreservingScrollOffset):
(WebKit::WebViewImpl::setPageScaleFactor):
(WebKit::WebViewImpl::setPageScaleFactorLimits):
(WebKit::WebViewImpl::applyScrollAndScale):
* src/WebViewImpl.h:

LayoutTests:

Reviewed by Darin Fisher.

Rebaselined some tests that broke because we now clamp pageScaleFactor to 0.25 (these test at 0.2).

Since this is a Chromium only change, the new baselines are only for Chromium.

* platform/chromium-linux/fast/repaint/scale-page-shrink-expected.png:
* platform/chromium-linux/fast/repaint/scale-page-shrink-expected.txt: Added.
* platform/chromium/fast/repaint/background-scaling-expected.png: Copied from LayoutTests/platform/chromium-linux/fast/repaint/scale-page-shrink-expected.png.
* platform/chromium/fast/repaint/background-scaling-expected.txt: Added.

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

8 years agoTowards 8 bit strings - Add 8 bit paths to StringImpl methods
msaboff@apple.com [Mon, 14 Nov 2011 22:42:36 +0000 (22:42 +0000)]
Towards 8 bit strings - Add 8 bit paths to StringImpl methods
https://bugs.webkit.org/show_bug.cgi?id=72290

Added 8 bit patchs to StringImpl to number and find methods.

Reviewed by Oliver Hunt.

* wtf/text/StringImpl.cpp:
(WTF::StringImpl::toIntStrict):
(WTF::StringImpl::toUIntStrict):
(WTF::StringImpl::toInt64Strict):
(WTF::StringImpl::toUInt64Strict):
(WTF::StringImpl::toIntPtrStrict):
(WTF::StringImpl::toInt):
(WTF::StringImpl::toUInt):
(WTF::StringImpl::toInt64):
(WTF::StringImpl::toUInt64):
(WTF::StringImpl::toIntPtr):
(WTF::StringImpl::toDouble):
(WTF::StringImpl::toFloat):
(WTF::StringImpl::find):
(WTF::StringImpl::reverseFind):
* wtf/text/WTFString.cpp:
(WTF::toIntegralType):
(WTF::lengthOfCharactersAsInteger):
(WTF::charactersToIntStrict):
(WTF::charactersToUIntStrict):
(WTF::charactersToInt64Strict):
(WTF::charactersToUInt64Strict):
(WTF::charactersToIntPtrStrict):
(WTF::charactersToInt):
(WTF::charactersToUInt):
(WTF::charactersToInt64):
(WTF::charactersToUInt64):
(WTF::charactersToIntPtr):
(WTF::toDoubleType):
(WTF::charactersToDouble):
(WTF::charactersToFloat):
* wtf/text/WTFString.h:
(WTF::find):
(WTF::reverseFind):

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

8 years agoMouse Lock: Renaming to 'Pointer Lock': Runtime Enable Flags
scheib@chromium.org [Mon, 14 Nov 2011 22:39:48 +0000 (22:39 +0000)]
Mouse Lock: Renaming to 'Pointer Lock': Runtime Enable Flags
https://bugs.webkit.org/show_bug.cgi?id=72303

Reviewed by Darin Fisher.

Source/WebCore:

* bindings/generic/RuntimeEnabledFeatures.cpp:
* bindings/generic/RuntimeEnabledFeatures.h:
(WebCore::RuntimeEnabledFeatures::webkitPointerLockEnabled):
(WebCore::RuntimeEnabledFeatures::setWebkitPointerLockEnabled):
(WebCore::RuntimeEnabledFeatures::webkitPointerEnabled):
* page/Settings.cpp:
(WebCore::Settings::Settings):
* page/Settings.h:
(WebCore::Settings::setPointerLockEnabled):
(WebCore::Settings::PointerLockEnabled):

Source/WebKit/chromium:

* public/WebRuntimeFeatures.h:
* public/WebSettings.h:
* src/WebRuntimeFeatures.cpp:
(WebKit::WebRuntimeFeatures::enablePointerLock):
(WebKit::WebRuntimeFeatures::isPointerLockEnabled):
* src/WebSettingsImpl.cpp:
(WebKit::WebSettingsImpl::setPointerLockEnabled):
* src/WebSettingsImpl.h:

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

8 years agoPlatform-specific results for r100177
robert@webkit.org [Mon, 14 Nov 2011 22:32:51 +0000 (22:32 +0000)]
Platform-specific results for r100177

Unreviewed gardening.

* platform/chromium-cg-mac-snowleopard/css2.1/20110323/border-spacing-applies-to-015-expected.png: Added.
* platform/chromium-cg-mac-snowleopard/css2.1/20110323/border-spacing-applies-to-015-expected.txt: Added.
* platform/chromium-cg-mac-snowleopard/css2.1/20110323/table-caption-001-expected.png: Added.
* platform/chromium-cg-mac-snowleopard/css2.1/20110323/table-caption-001-expected.txt: Copied from LayoutTests/platform/chromium-linux/css2.1/20110323/table-caption-001-expected.txt.
* platform/chromium-cg-mac-snowleopard/css2.1/20110323/table-caption-002-expected.png: Added.
* platform/chromium-cg-mac-snowleopard/css2.1/20110323/table-caption-002-expected.txt: Added.
* platform/chromium-cg-mac-snowleopard/css2.1/20110323/table-caption-horizontal-alignment-001-expected.png: Added.
* platform/chromium-cg-mac-snowleopard/css2.1/20110323/table-caption-horizontal-alignment-001-expected.txt: Added.
* platform/chromium-cg-mac-snowleopard/css2.1/20110323/table-caption-margins-001-expected.png: Added.
* platform/chromium-cg-mac-snowleopard/css2.1/20110323/table-caption-margins-001-expected.txt: Copied from LayoutTests/platform/chromium-linux/css2.1/20110323/table-caption-margins-001-expected.txt.
* platform/chromium-cg-mac-snowleopard/css2.1/20110323/table-caption-optional-001-expected.png: Added.
* platform/chromium-cg-mac-snowleopard/css2.1/20110323/table-caption-optional-001-expected.txt: Copied from LayoutTests/platform/chromium-linux/css2.1/20110323/table-caption-optional-001-expected.txt.
* platform/chromium-cg-mac-snowleopard/css2.1/20110323/table-caption-optional-002-expected.png: Added.
* platform/chromium-cg-mac-snowleopard/css2.1/20110323/table-caption-optional-002-expected.txt: Copied from LayoutTests/platform/chromium-linux/css2.1/20110323/table-caption-optional-002-expected.txt.
* platform/chromium-cg-mac-snowleopard/fast/table/dynamic-caption-add-before-child-expected.png: Added.
* platform/chromium-cg-mac-snowleopard/fast/table/dynamic-caption-add-before-child-expected.txt: Added.
* platform/chromium-cg-mac-snowleopard/fast/table/multiple-captions-display-expected.png: Added.
* platform/chromium-cg-mac-snowleopard/fast/table/multiple-captions-display-expected.txt: Added.
* platform/chromium-cg-mac-snowleopard/fast/table/prepend-in-anonymous-table-expected.txt: Copied from LayoutTests/platform/gtk/fast/table/prepend-in-anonymous-table-expected.txt.
* platform/chromium-cg-mac-snowleopard/tables/mozilla_expected_failures/other/test4-expected.png: Added.
* platform/chromium-cg-mac-snowleopard/tables/mozilla_expected_failures/other/test4-expected.txt: Added.
* platform/chromium-cg-mac/tables/mozilla_expected_failures/other/test4-expected.png: Removed.
* platform/chromium-mac-snowleopard/fast/table/dynamic-caption-add-before-child-expected.png: Renamed from LayoutTests/platform/chromium-mac/fast/table/dynamic-caption-add-before-child-expected.png.
* platform/chromium-mac-snowleopard/fast/table/multiple-captions-display-expected.png: Renamed from LayoutTests/platform/chromium-mac/fast/table/multiple-captions-display-expected.png.
* platform/chromium-mac-snowleopard/fast/table/prepend-in-anonymous-table-expected.png: Renamed from LayoutTests/platform/chromium-mac/fast/table/prepend-in-anonymous-table-expected.png.
* platform/chromium-mac-snowleopard/tables/mozilla_expected_failures/other/test4-expected.png: Renamed from LayoutTests/platform/chromium-mac/tables/mozilla_expected_failures/other/test4-expected.png.
* platform/chromium-win/css2.1/20110323/border-spacing-applies-to-015-expected.png: Added.
* platform/chromium-win/css2.1/20110323/border-spacing-applies-to-015-expected.txt: Renamed from LayoutTests/platform/chromium-linux/css2.1/20110323/border-spacing-applies-to-015-expected.txt.
* platform/chromium-win/css2.1/20110323/table-caption-001-expected.png: Added.
* platform/chromium-win/css2.1/20110323/table-caption-001-expected.txt: Copied from LayoutTests/platform/chromium-linux/css2.1/20110323/table-caption-001-expected.txt.
* platform/chromium-win/css2.1/20110323/table-caption-002-expected.png: Added.
* platform/chromium-win/css2.1/20110323/table-caption-002-expected.txt: Renamed from LayoutTests/platform/chromium-linux/css2.1/20110323/table-caption-002-expected.txt.
* platform/chromium-win/css2.1/20110323/table-caption-horizontal-alignment-001-expected.png: Added.
* platform/chromium-win/css2.1/20110323/table-caption-horizontal-alignment-001-expected.txt: Renamed from LayoutTests/platform/chromium-linux/css2.1/20110323/table-caption-horizontal-alignment-001-expected.txt.
* platform/chromium-win/css2.1/20110323/table-caption-margins-001-expected.png: Added.
* platform/chromium-win/css2.1/20110323/table-caption-margins-001-expected.txt: Copied from LayoutTests/platform/chromium-linux/css2.1/20110323/table-caption-margins-001-expected.txt.
* platform/chromium-win/css2.1/20110323/table-caption-optional-001-expected.png: Added.
* platform/chromium-win/css2.1/20110323/table-caption-optional-001-expected.txt: Copied from LayoutTests/platform/chromium-linux/css2.1/20110323/table-caption-optional-001-expected.txt.
* platform/chromium-win/css2.1/20110323/table-caption-optional-002-expected.png: Added.
* platform/chromium-win/css2.1/20110323/table-caption-optional-002-expected.txt: Copied from LayoutTests/platform/chromium-linux/css2.1/20110323/table-caption-optional-002-expected.txt.
* platform/chromium-win/fast/table/dynamic-caption-add-before-child-expected.png:
* platform/chromium-win/fast/table/multiple-captions-display-expected.png:
* platform/chromium-win/tables/mozilla_expected_failures/other/test4-expected.png:
* platform/gtk/css2.1/20110323/border-spacing-applies-to-015-expected.txt: Added.
* platform/gtk/css2.1/20110323/table-caption-001-expected.txt: Copied from LayoutTests/platform/chromium-linux/css2.1/20110323/table-caption-001-expected.txt.
* platform/gtk/css2.1/20110323/table-caption-002-expected.txt: Added.
* platform/gtk/css2.1/20110323/table-caption-horizontal-alignment-001-expected.txt: Added.
* platform/gtk/css2.1/20110323/table-caption-margins-001-expected.txt: Copied from LayoutTests/platform/chromium-linux/css2.1/20110323/table-caption-margins-001-expected.txt.
* platform/gtk/css2.1/20110323/table-caption-optional-001-expected.txt: Copied from LayoutTests/platform/chromium-linux/css2.1/20110323/table-caption-optional-001-expected.txt.
* platform/gtk/css2.1/20110323/table-caption-optional-002-expected.txt: Copied from LayoutTests/platform/chromium-linux/css2.1/20110323/table-caption-optional-002-expected.txt.
* platform/gtk/fast/table/dynamic-caption-add-before-child-expected.txt:
* platform/gtk/fast/table/multiple-captions-display-expected.txt:
* platform/gtk/fast/table/prepend-in-anonymous-table-expected.txt:
* platform/gtk/tables/mozilla_expected_failures/other/test4-expected.txt:
* platform/qt/css2.1/20110323/border-spacing-applies-to-015-expected.txt: Added.
* platform/qt/css2.1/20110323/table-caption-001-expected.txt: Renamed from LayoutTests/platform/chromium-linux/css2.1/20110323/table-caption-001-expected.txt.
* platform/qt/css2.1/20110323/table-caption-002-expected.txt: Added.
* platform/qt/css2.1/20110323/table-caption-horizontal-alignment-001-expected.txt: Added.
* platform/qt/css2.1/20110323/table-caption-margins-001-expected.txt: Renamed from LayoutTests/platform/chromium-linux/css2.1/20110323/table-caption-margins-001-expected.txt.
* platform/qt/css2.1/20110323/table-caption-optional-001-expected.txt: Renamed from LayoutTests/platform/chromium-linux/css2.1/20110323/table-caption-optional-001-expected.txt.
* platform/qt/css2.1/20110323/table-caption-optional-002-expected.txt: Renamed from LayoutTests/platform/chromium-linux/css2.1/20110323/table-caption-optional-002-expected.txt.
* platform/qt/fast/table/dynamic-caption-add-before-child-expected.txt:
* platform/qt/fast/table/multiple-captions-display-expected.txt:
* platform/qt/fast/table/prepend-in-anonymous-table-expected.txt:
* platform/qt/tables/mozilla_expected_failures/other/test4-expected.txt:

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

8 years agonew-run-webkit-tests should not be locale dependent https://bugs.webkit.org/show_bug...
commit-queue@webkit.org [Mon, 14 Nov 2011 22:29:04 +0000 (22:29 +0000)]
new-run-webkit-tests should not be locale dependent https://bugs.webkit.org/show_bug.cgi?id=68691
Override LOCALE to en_US.

Patch by John Yani <vanuan@gmail.com> on 2011-11-14
Reviewed by Eric Seidel.

* Scripts/webkitpy/layout_tests/port/base.py:

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