WebKit-https.git
8 years agofast/table/max-width-integer-overflow.html should be skipped because it gives
ossy@webkit.org [Tue, 20 Mar 2012 06:35:23 +0000 (06:35 +0000)]
fast/table/max-width-integer-overflow.html should be skipped because it gives
different results on 32- and 64-bit systems.

Patch by János Badics <jbadics@inf.u-szeged.hu> on 2012-03-19
Reviewed by Csaba Osztrogonác.

* platform/qt/Skipped:

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

8 years agoAdd FractionalLayoutUnit version of blend to AnimationUtilities
eae@chromium.org [Tue, 20 Mar 2012 06:17:23 +0000 (06:17 +0000)]
Add FractionalLayoutUnit version of blend to AnimationUtilities
https://bugs.webkit.org/show_bug.cgi?id=81572

Reviewed by Eric Seidel.

Add version of blend method that operates on FractionalLayoutUnits. This
will be used in place of the integer version in many places once we
enable support for subpixel layout.

No new tests.

* platform/FractionalLayoutUnit.h:
Include math.h to make GTK build happy.

* platform/animation/AnimationUtilities.h:
(WebCore::blend):

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

8 years agoRemove support for "magic" iframe
abarth@webkit.org [Tue, 20 Mar 2012 05:58:36 +0000 (05:58 +0000)]
Remove support for "magic" iframe
https://bugs.webkit.org/show_bug.cgi?id=81590

Reviewed by Eric Seidel.

Source/WebCore:

This patch removes support for "magic" iframe, which previously allowed
an iframe to be transfered from one document to another without
reloading the iframe.  The idea behind this feature was to let sites
create "pop out" windows that could outlive their parents by
transfering state to these windows via these magic iframes.

Unforuntately, this feature was never implemented by other browsers and
has been the source of a series of security vulnerabilities.  Although
we have fixed each vulnerability as it has been discovered, the feature
is still a complex corner case that isn't widely exercised on the web.
For that reason, it's likely to have more vulnerabilities in the
future.

I'm not aware of any web sites that use this feature anymore.  There
were a handful of them, but we appear to have been successful in
evangalizing them to move away from "magic" iframe.

* dom/Document.cpp:
(WebCore::Document::adoptNode):
* html/HTMLFrameElementBase.cpp:
(WebCore):
(WebCore::HTMLFrameElementBase::HTMLFrameElementBase):
(WebCore::HTMLFrameElementBase::insertedIntoDocument):
* html/HTMLFrameElementBase.h:
(HTMLFrameElementBase):
* loader/DocumentLoader.cpp:
(WebCore):
* loader/DocumentLoader.h:
(DocumentLoader):
* loader/EmptyClients.h:
(WebCore::EmptyFrameLoaderClient::createFrame):
* loader/FrameLoader.cpp:
(WebCore):
* loader/FrameLoader.h:
(FrameLoader):
* loader/FrameLoaderClient.h:
(FrameLoaderClient):
* loader/ResourceLoadNotifier.cpp:
(WebCore):
* loader/ResourceLoadNotifier.h:
(ResourceLoadNotifier):
* page/Frame.cpp:
(WebCore):
* page/Frame.h:
(Frame):

Source/WebKit/blackberry:

Remove FrameLoaderClient methods that no longer exist.

* WebCoreSupport/FrameLoaderClientBlackBerry.cpp:
(WebCore):
* WebCoreSupport/FrameLoaderClientBlackBerry.h:
(FrameLoaderClientBlackBerry):
(WebCore::FrameLoaderClientBlackBerry::didDetectXSS):

Source/WebKit/chromium:

Remove FrameLoaderClient methods that no longer exist.

* public/WebFrameClient.h:
(WebFrameClient):
* src/FrameLoaderClientImpl.cpp:
(WebKit):
* src/FrameLoaderClientImpl.h:
(FrameLoaderClientImpl):

Source/WebKit/efl:

Remove FrameLoaderClient methods that no longer exist.

* WebCoreSupport/FrameLoaderClientEfl.cpp:
(WebCore):
* WebCoreSupport/FrameLoaderClientEfl.h:
(FrameLoaderClientEfl):

Source/WebKit/gtk:

Remove FrameLoaderClient methods that no longer exist.

* WebCoreSupport/FrameLoaderClientGtk.cpp:
(WebKit):
* WebCoreSupport/FrameLoaderClientGtk.h:
(FrameLoaderClient):

Source/WebKit/mac:

Remove FrameLoaderClient methods that no longer exist.

* WebCoreSupport/WebFrameLoaderClient.h:
* WebCoreSupport/WebFrameLoaderClient.mm:

Source/WebKit/qt:

Remove FrameLoaderClient methods that no longer exist.

* WebCoreSupport/FrameLoaderClientQt.cpp:
(WebCore):
* WebCoreSupport/FrameLoaderClientQt.h:
(FrameLoaderClientQt):

Source/WebKit/win:

Remove FrameLoaderClient methods that no longer exist.

* WebCoreSupport/WebFrameLoaderClient.cpp:
* WebCoreSupport/WebFrameLoaderClient.h:
(WebFrameLoaderClient):

Source/WebKit/wince:

Remove FrameLoaderClient methods that no longer exist.

* WebCoreSupport/FrameLoaderClientWinCE.cpp:
(WebKit):
* WebCoreSupport/FrameLoaderClientWinCE.h:
(FrameLoaderClientWinCE):

Source/WebKit/wx:

Remove FrameLoaderClient methods that no longer exist.

* WebKitSupport/FrameLoaderClientWx.cpp:
(WebCore):
* WebKitSupport/FrameLoaderClientWx.h:
(FrameLoaderClientWx):

Source/WebKit2:

Remove FrameLoaderClient methods that no longer exist.

* WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
(WebKit):
* WebProcess/WebCoreSupport/WebFrameLoaderClient.h:

LayoutTests:

Remove tests of magic iframe. These tests don't reall make sense to
keep without the feature.

* fast/frames/adopt-iframe-into-itself-expected.txt: Added.
* fast/frames/adopt-iframe-into-itself.html: Added.
    - I've added a test about adopting an iframe into itself. We might
      already have a test for this, but it covers a mistake I made in
      an earlier iteration of this patch.
* fast/frames/iframe-reparenting-adopt-node-expected.txt: Removed.
* fast/frames/iframe-reparenting-adopt-node.html: Removed.
* fast/frames/iframe-reparenting-embed-elements-expected.txt: Removed.
* fast/frames/iframe-reparenting-embed-elements.html: Removed.
* fast/frames/iframe-reparenting-expected.txt: Removed.
* fast/frames/iframe-reparenting-fail-load-expected.txt: Removed.
* fast/frames/iframe-reparenting-fail-load.html: Removed.
* fast/frames/iframe-reparenting-new-page-expected.txt: Removed.
* fast/frames/iframe-reparenting-new-page.html: Removed.
* fast/frames/iframe-reparenting-plugins-expected.txt: Removed.
* fast/frames/iframe-reparenting-plugins.html: Removed.
* fast/frames/iframe-reparenting.html: Removed.
* fast/frames/resources/iframe-reparenting-adopt-node-iframe-content.html: Removed.
* fast/frames/resources/iframe-reparenting-adopt-node-new-page.html: Removed.
* fast/frames/resources/iframe-reparenting-embed-frame1.html: Removed.
* fast/frames/resources/iframe-reparenting-embed-iframe.html: Removed.
* fast/frames/resources/iframe-reparenting-frame1.html: Removed.
* fast/frames/resources/iframe-reparenting-frame2.html: Removed.
* fast/frames/resources/iframe-reparenting-iframe-content.html: Removed.
* fast/frames/resources/iframe-reparenting-new-page-1.html: Removed.
* fast/frames/resources/iframe-reparenting-new-page-2.html: Removed.
* fast/frames/resources/iframe-reparenting-new-page-iframe.html: Removed.
* fast/frames/resources/iframe-reparenting-plugins-iframe-content.html: Removed.
* fast/frames/resources/iframe-reparenting-plugins-new-page.html: Removed.
* fast/frames/script-tests/iframe-reparenting-new-page.js: Removed.

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

8 years agoREGRESSION(r110072): Improper repainting on table with overflow: hidden
jchaffraix@webkit.org [Tue, 20 Mar 2012 05:37:44 +0000 (05:37 +0000)]
REGRESSION(r110072): Improper repainting on table with overflow: hidden
https://bugs.webkit.org/show_bug.cgi?id=81460

Reviewed by Simon Fraser.

Source/WebCore:

Test: fast/repaint/table-hover-on-link.html

* rendering/RenderTable.cpp:
(WebCore::RenderTable::layout): Add a call to RenderBlock::updateCachedSizeForOverflowClip
so that we properly keep our cached size up to date. This fixes the problem for now but the
real solution is to make sure it is called on all classes that needs to. This is tracked by
bug 81461.

LayoutTests:

* fast/repaint/table-hover-on-link-expected.txt: Added.
* fast/repaint/table-hover-on-link.html: Added.

* platform/chromium-linux/fast/repaint/table-hover-on-link-expected.png: Added.
* platform/chromium-mac/fast/repaint/table-hover-on-link-expected.png: Added.
* platform/mac/fast/repaint/table-hover-on-link-expected.png: Added.
There seem to be some small color difference here (maybe color profile related).

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

8 years agoAdd support for crossorigin attribute in script elements
commit-queue@webkit.org [Tue, 20 Mar 2012 05:29:11 +0000 (05:29 +0000)]
Add support for crossorigin attribute in script elements
https://bugs.webkit.org/show_bug.cgi?id=81438

Patch by Pablo Flouret <pablof@motorola.com> on 2012-03-19
Reviewed by Adam Barth.

Source/WebCore:

Works similarly to img and its crossorigin attribute. In the future it
could allow for things like showing full error messages in error
handlers, etc.

Tests: http/tests/security/script-crossorigin-loads-correctly.html
       http/tests/security/script-crossorigin-loads-same-origin.html
       http/tests/security/script-with-failed-cors-check-fails-to-load.html

* dom/ScriptElement.cpp:
(WebCore::ScriptElement::ScriptElement):
(WebCore::ScriptElement::requestScript):
(WebCore::ScriptElement::notifyFinished):
* dom/ScriptElement.h:
(ScriptElement):
* html/HTMLScriptElement.idl:

LayoutTests:

* http/tests/security/resources/alert-fail.js: Added.
* http/tests/security/resources/cors-script.php: Added.
* http/tests/security/script-crossorigin-loads-correctly-expected.txt: Added.
* http/tests/security/script-crossorigin-loads-correctly.html: Added.
* http/tests/security/script-crossorigin-loads-same-origin-expected.txt: Added.
* http/tests/security/script-crossorigin-loads-same-origin.html: Added.
* http/tests/security/script-with-failed-cors-check-fails-to-load-expected.txt: Added.
* http/tests/security/script-with-failed-cors-check-fails-to-load.html: Added.

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

8 years agoDo not copy the script source in the SourceProvider, just reference the existing...
benjamin@webkit.org [Tue, 20 Mar 2012 05:24:24 +0000 (05:24 +0000)]
Do not copy the script source in the SourceProvider, just reference the existing string
https://bugs.webkit.org/show_bug.cgi?id=81466

Reviewed by Geoffrey Garen.

Source/JavaScriptCore:

* parser/SourceCode.h: Remove the unused, and incorrect, function data().
* parser/SourceProvider.h: Add OVERRIDE for clarity.

Source/WebCore:

Instead of creating a copy of the string with 16bits characters, we just return
a shared StringImpl.

* bindings/js/CachedScriptSourceProvider.h:
* bindings/js/StringSourceProvider.h:

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

8 years agoA quick early-out for Region::contains() test
commit-queue@webkit.org [Tue, 20 Mar 2012 05:21:20 +0000 (05:21 +0000)]
A quick early-out for Region::contains() test
https://bugs.webkit.org/show_bug.cgi?id=81625

Patch by Dana Jansens <danakj@chromium.org> on 2012-03-19
Reviewed by Anders Carlsson.

If the bounds of region B include a row/column that is outside the bounds of
region A, then region B contains a pixel within that row/column that is
outside of region A.

* platform/graphics/Region.cpp:
(WebCore::Region::contains):

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

8 years agoUnreviewed attempt to fix the EFL build.
eric@webkit.org [Tue, 20 Mar 2012 05:20:04 +0000 (05:20 +0000)]
Unreviewed attempt to fix the EFL build.

* platform/graphics/efl/IconEfl.cpp:

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

8 years agoDivision optimizations fail to infer cases of truncated division and
fpizlo@apple.com [Tue, 20 Mar 2012 05:15:50 +0000 (05:15 +0000)]
Division optimizations fail to infer cases of truncated division and
mishandle -2147483648/-1
https://bugs.webkit.org/show_bug.cgi?id=81428
<rdar://problem/11067382>

Reviewed by Oliver Hunt.

If you're a division over integers and you're only used as an integer, then you're
an integer division and remainder checks become unnecessary. If you're dividing
-2147483648 by -1, don't crash.

* assembler/MacroAssemblerX86Common.h:
(MacroAssemblerX86Common):
(JSC::MacroAssemblerX86Common::add32):
* dfg/DFGSpeculativeJIT.cpp:
(DFG):
(JSC::DFG::SpeculativeJIT::compileIntegerArithDivForX86):
* dfg/DFGSpeculativeJIT.h:
(SpeculativeJIT):
* dfg/DFGSpeculativeJIT32_64.cpp:
(JSC::DFG::SpeculativeJIT::compile):
* dfg/DFGSpeculativeJIT64.cpp:
(JSC::DFG::SpeculativeJIT::compile):
* llint/LowLevelInterpreter64.asm:

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

8 years agoFix more WTF header include paths in WebCore
eric@webkit.org [Tue, 20 Mar 2012 05:04:58 +0000 (05:04 +0000)]
Fix more WTF header include paths in WebCore
https://bugs.webkit.org/show_bug.cgi?id=81602

Reviewed by Martin Robinson.

Chromium, Mac and Win already build w/o including wtf subdirectories
in their include paths for WebCore/WebKit.  Gtk, Qt, and other ports
should eventually do the same.  This patch fixes up a few loose
wtf includes in these ports using some search/replace across WebCore.
If the EWS bots pass this patch doesn't really need any other review.

* accessibility/gtk/AXObjectCacheAtk.cpp:
* accessibility/gtk/WebKitAccessibleInterfaceText.cpp:
* platform/KURL.cpp:
* platform/audio/gstreamer/AudioDestinationGStreamer.cpp:
* platform/audio/gstreamer/WebKitWebAudioSourceGStreamer.cpp:
* platform/audio/gtk/AudioBusGtk.cpp:
* platform/clutter/GRefPtrClutter.h:
* platform/graphics/gstreamer/GRefPtrGStreamer.h:
* platform/graphics/gstreamer/ImageGStreamerCairo.cpp:
* platform/graphics/gstreamer/ImageGStreamerQt.cpp:
* platform/graphics/gstreamer/WebKitWebSourceGStreamer.cpp:
* platform/graphics/gtk/ImageBufferGtk.cpp:
* platform/graphics/pango/FontPango.cpp:
* platform/graphics/qt/ImageBufferDataQt.h:
* platform/graphics/wx/ImageBufferDataWx.h:
* platform/gtk/ContextMenuGtk.cpp:
* platform/gtk/ContextMenuItemGtk.cpp:
* platform/gtk/FileSystemGtk.cpp:
* platform/gtk/GOwnPtrGtk.h:
* platform/gtk/GtkAuthenticationDialog.h:
* platform/gtk/GtkPopupMenu.cpp:
* platform/gtk/LanguageGtk.cpp:
* platform/gtk/LocalizedStringsGtk.cpp:
* platform/gtk/PopupMenuGtk.cpp:
* platform/gtk/RenderThemeGtk.cpp:
* platform/gtk/RenderThemeGtk.h:
* platform/network/soup/GOwnPtrSoup.h:
* platform/network/soup/ResourceRequestSoup.cpp:
* platform/network/soup/ResourceResponseSoup.cpp:
* platform/network/soup/SocketStreamHandle.h:
* platform/network/soup/SoupURIUtils.cpp:
* platform/text/TextEncoding.cpp:
* platform/text/gtk/TextBreakIteratorGtk.cpp:
* platform/text/gtk/TextCodecGtk.cpp:
* platform/text/gtk/TextCodecGtk.h:

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

8 years agoMove the extra logical height distribution into RenderTable as a new step in our...
jchaffraix@webkit.org [Tue, 20 Mar 2012 04:53:14 +0000 (04:53 +0000)]
Move the extra logical height distribution into RenderTable as a new step in our layout algorithm
https://bugs.webkit.org/show_bug.cgi?id=81548

Reviewed by Tony Chang.

Refactoring, no expected change in behavior.

Moving the distribution step into RenderTable is needed to implement a better distribution algorithm that would
span several RenderTableSection (which is what IE and FF are doing right now).

* rendering/RenderTable.cpp:
(WebCore::RenderTable::distributeExtraLogicalHeight):
(WebCore::RenderTable::layout):
Moved the distribution step into distributeExtraLogicalHeight. While at it, changed the code to make use of the helper
methods to iterate over the sections and explicitly floor the LayoutUnit before calling distributeExtraLogicalHeight.

* rendering/RenderTable.h:
Added distributeExtraLogicalHeight.

* rendering/RenderTableSection.cpp:
(WebCore::RenderTableSection::layoutRows):
Changed the method signature as it doesn't handle the distribution step anymore.

* rendering/RenderTableSection.h:
Updated layoutRows signature and exposed distributeExtraLogicalHeightToRows for RenderTable use.

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

8 years agoAnother attempt at fixing the Windows build.
andersca@apple.com [Tue, 20 Mar 2012 04:50:55 +0000 (04:50 +0000)]
Another attempt at fixing the Windows build.

* platform/graphics/avfoundation/cf/MediaPlayerPrivateAVFoundationCF.cpp:
(WebCore::LayerClient::platformCALayerDeviceScaleFactor):

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

8 years agoplugins/application-plugin-plugins-disabled.html should be a Qt specific test
andersca@apple.com [Tue, 20 Mar 2012 04:48:53 +0000 (04:48 +0000)]
plugins/application-plugin-plugins-disabled.html should be a Qt specific test
https://bugs.webkit.org/show_bug.cgi?id=81628

Reviewed by Jessie Berlin.

This test tests an "application specific plug-in" feature that only Qt has so this should be
a Qt specific test.

* platform/chromium-linux/plugins/application-plugin-plugins-disabled-expected.png: Removed.
* platform/chromium-mac-leopard/plugins/application-plugin-plugins-disabled-expected.png: Removed.
* platform/chromium-mac-snowleopard/plugins/application-plugin-plugins-disabled-expected.png: Removed.
* platform/chromium-mac/plugins/application-plugin-plugins-disabled-expected.png: Removed.
* platform/chromium-win/plugins/application-plugin-plugins-disabled-expected.png: Removed.
* platform/chromium-win/plugins/application-plugin-plugins-disabled-expected.txt: Removed.
* platform/gtk/plugins/application-plugin-plugins-disabled-expected.txt: Removed.
* platform/mac-snowleopard/plugins/application-plugin-plugins-disabled-expected.png: Removed.
* platform/mac/plugins/application-plugin-plugins-disabled-expected.txt: Removed.
* platform/qt/plugins/application-plugin-plugins-disabled.html: Renamed from LayoutTests/plugins/application-plugin-plugins-disabled.html.
* platform/wk2/Skipped:

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

8 years ago[Chromium] Add registerURLSchemeAsEmptyDocument to WebSecurityPolicy
commit-queue@webkit.org [Tue, 20 Mar 2012 04:47:25 +0000 (04:47 +0000)]
[Chromium] Add registerURLSchemeAsEmptyDocument to WebSecurityPolicy
https://bugs.webkit.org/show_bug.cgi?id=81421

Patch by Charlie Reis <creis@chromium.org> on 2012-03-19
Reviewed by Adam Barth.

* public/WebSecurityPolicy.h:
(WebSecurityPolicy):
* src/WebSecurityPolicy.cpp:
(WebKit::WebSecurityPolicy::registerURLSchemeAsEmptyDocument):
(WebKit):

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

8 years ago[chromium] Rebaseline caused by r111334
keishi@webkit.org [Tue, 20 Mar 2012 04:45:15 +0000 (04:45 +0000)]
[chromium] Rebaseline caused by r111334

* platform/chromium-linux-x86/fast/repaint/canvas-putImageData-expected.txt: Added.
* platform/chromium-linux/fast/repaint/canvas-putImageData-expected.txt: Added.
* platform/chromium-mac-snowleopard/fast/repaint/canvas-putImageData-expected.txt: Added.

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

8 years ago[EFL] Fix build break because of PlatformString.h
gyuyoung.kim@samsung.com [Tue, 20 Mar 2012 04:39:36 +0000 (04:39 +0000)]
[EFL] Fix build break because of PlatformString.h
https://bugs.webkit.org/show_bug.cgi?id=81619

Unreviewed. Fix build break because of PlatformString.h.

* platform/graphics/efl/IconEfl.cpp: Include PlatformString.h from text directory.

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

8 years agoFix CrWin build after r111258.
eric@webkit.org [Tue, 20 Mar 2012 04:25:21 +0000 (04:25 +0000)]
Fix CrWin build after r111258.
https://bugs.webkit.org/show_bug.cgi?id=81281

Unreviewed build fix.
I also fixed similarly incorrect wtf/ includes for other ports
(which aren't yet as strict as Chromium about wtf includes).

* platform/blackberry/CookieManager.cpp:
* platform/blackberry/CookieParser.cpp:
* platform/blackberry/ParsedCookie.cpp:
* platform/blackberry/SharedTimerBlackBerry.cpp:
* platform/graphics/qt/GraphicsLayerQt.cpp:
* platform/graphics/texmap/TextureMapperAnimation.cpp:
* rendering/RenderThemeChromiumWin.cpp:
(WebCore):

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

8 years ago[WK2] Four http/tests/xmlhttprequest tests fail on mac-wk2
timothy_horton@apple.com [Tue, 20 Mar 2012 04:04:28 +0000 (04:04 +0000)]
[WK2] Four http/tests/xmlhttprequest tests fail on mac-wk2
https://bugs.webkit.org/show_bug.cgi?id=81627

Unreviewed; skip failing http/tests/xmlhttprequest tests on mac-wk2.

* platform/mac-wk2/Skipped:

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

8 years agoFix CrWin build after r111258.
eric@webkit.org [Tue, 20 Mar 2012 03:48:20 +0000 (03:48 +0000)]
Fix CrWin build after r111258.
https://bugs.webkit.org/show_bug.cgi?id=81281

Unreviewed build fix.

* platform/graphics/chromium/FontCacheChromiumWin.cpp:
* platform/graphics/chromium/FontPlatformDataChromiumWin.cpp:
* platform/graphics/texmap/TextureMapperAnimation.h:

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

8 years agoUnreviewed; roll out http://trac.webkit.org/changeset/111307 and http://trac.webkit...
jberlin@webkit.org [Tue, 20 Mar 2012 03:46:26 +0000 (03:46 +0000)]
Unreviewed; roll out trac.webkit.org/changeset/111307 and http://trac.webkit.org/changeset/111293
because they broke running the layout tests on mac.

* Scripts/webkitpy/layout_tests/port/webkit.py:
(WebKitDriver._check_for_driver_crash):

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

8 years agoadd css parsing of flex-line-pack
tony@chromium.org [Tue, 20 Mar 2012 03:32:29 +0000 (03:32 +0000)]
add css parsing of flex-line-pack
https://bugs.webkit.org/show_bug.cgi?id=81427

Reviewed by Ojan Vafai.

Source/WebCore:

Spec: http://dev.w3.org/csswg/css3-flexbox/#flex-line-pack

Updated tests in css3/flexbox/css-properties.html

* css/CSSComputedStyleDeclaration.cpp:
(WebCore):
(WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
* css/CSSParser.cpp:
(WebCore::CSSParser::parseValue):
* css/CSSPrimitiveValueMappings.h:
(WebCore::CSSPrimitiveValue::CSSPrimitiveValue):
(WebCore):
(WebCore::CSSPrimitiveValue::operator EFlexLinePack):
* css/CSSProperty.cpp:
(WebCore::CSSProperty::isInheritedProperty):
* css/CSSPropertyNames.in:
* css/CSSStyleApplyProperty.cpp:
(WebCore::CSSStyleApplyProperty::CSSStyleApplyProperty):
* css/CSSStyleSelector.cpp:
(WebCore::CSSStyleSelector::collectMatchingRulesForList):
* css/CSSValueKeywords.in:
* rendering/style/RenderStyle.h:
* rendering/style/RenderStyleConstants.h:
* rendering/style/StyleFlexibleBoxData.cpp:
(WebCore::StyleFlexibleBoxData::StyleFlexibleBoxData):
(WebCore::StyleFlexibleBoxData::operator==):
* rendering/style/StyleFlexibleBoxData.h:
(StyleFlexibleBoxData):

LayoutTests:

* css3/flexbox/css-properties-expected.txt:
* css3/flexbox/script-tests/css-properties.js:

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

8 years ago http://bugs.webkit.org/show_bug.cgi?id=81618
slewis@apple.com [Tue, 20 Mar 2012 03:27:27 +0000 (03:27 +0000)]
http://bugs.webkit.org/show_bug.cgi?id=81618
fast/workers/storage/use-same-database-in-page-and-workers.html times out on the lion bots
parser test that times out waiting for notifyDone

Unreviewed.

Skip test that times out on the Lion WK1 bots.

* platform/mac/Skipped:

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

8 years ago[GTK] libWebCore.la has become too big for make
kov@webkit.org [Tue, 20 Mar 2012 03:22:34 +0000 (03:22 +0000)]
[GTK] libWebCore.la has become too big for make
https://bugs.webkit.org/show_bug.cgi?id=81582

Unreviewed build fix.

Source/WebCore:

* GNUmakefile.am: build an intermediate library for modules, so that the list
of source files used to build WebCore can be split and not reach make's limits;
also try to force relinking libWebCore.la and libWebCoreModules.la when the
GNUmakefile.am or GNUmakefile.list.am change

Source/WebKit/gtk:

* GNUmakefile.am: link-in the new libDerivedWebCore.la

Source/WebKit2:

* GNUmakefile.am: link-in the new libWebCoreModules.la

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

8 years agohttps://bugs.webkit.org/show_bug.cgi?id=81620 tables/mozilla/bugs/bug27038-* fail...
slewis@apple.com [Tue, 20 Mar 2012 03:17:10 +0000 (03:17 +0000)]
https://bugs.webkit.org/show_bug.cgi?id=81620 tables/mozilla/bugs/bug27038-* fail on Lion Bots.

Unreviewed.

Check in new expected (failing?) results.

* platform/mac/tables/mozilla/bugs/bug27038-1-expected.txt:
* platform/mac/tables/mozilla/bugs/bug27038-2-expected.txt:

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

8 years ago[chromium] Fixing build. Adding missing virtual.
keishi@webkit.org [Tue, 20 Mar 2012 03:14:24 +0000 (03:14 +0000)]
[chromium] Fixing build. Adding missing virtual.

* src/GraphicsContext3DPrivate.h:
(GraphicsContext3DPrivate):

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

8 years ago[WK2] http/tests/websocket/tests/hixie76/frame-lengths.html times out on mac-wk2
timothy_horton@apple.com [Tue, 20 Mar 2012 03:13:06 +0000 (03:13 +0000)]
[WK2] http/tests/websocket/tests/hixie76/frame-lengths.html times out on mac-wk2
https://bugs.webkit.org/show_bug.cgi?id=81624

Unreviewed; skip timing out http/tests/websocket/tests/hixie76/frame-lengths.html on mac-wk2

* platform/mac-wk2/Skipped:

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

8 years agohttps://bugs.webkit.org/show_bug.cgi?id=81615
slewis@apple.com [Tue, 20 Mar 2012 03:12:09 +0000 (03:12 +0000)]
https://bugs.webkit.org/show_bug.cgi?id=81615
fast/parser/nested-fragment-parser-crash.html is failing on the lion bots

Unreviewed.

Check in new expected (failing?) results.

* platform/mac/fast/parser/nested-fragment-parser-crash-expected.txt: Added.

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

8 years ago[chromium] Push culled tiles that are prepainted
commit-queue@webkit.org [Tue, 20 Mar 2012 03:10:45 +0000 (03:10 +0000)]
[chromium] Push culled tiles that are prepainted
https://bugs.webkit.org/show_bug.cgi?id=81552

Patch by Dana Jansens <danakj@chromium.org> on 2012-03-19
Reviewed by Adrienne Walker.

Source/WebCore:

If a tile was culled during paint, but then prepainted in the following
idle paint pass, it was still marked as culled (and thus dirty) and not
pushed to the impl side.

Renames tile->m_updateCulled to tile->m_updated. This value is true if
the tile is updated any time during a commit, and remains false if it
is culled every time the layer is painted.

Unit test: TiledLayerChromiumTest.pushIdlePaintedOccludedTiles

* platform/graphics/chromium/TiledLayerChromium.cpp:
(WebCore::UpdatableTile::isDirtyForCurrentFrame):
(UpdatableTile):
(WebCore::UpdatableTile::UpdatableTile):
(WebCore::TiledLayerChromium::updateCompositorResources):
(WebCore::TiledLayerChromium::prepareToUpdateTiles):
(WebCore::TiledLayerChromium::resetUpdateState):

Source/WebKit/chromium:

* tests/TiledLayerChromiumTest.cpp:
(WTF::TEST):
(WTF):

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

8 years agohttps://bugs.webkit.org/show_bug.cgi?id=81617 fast/repaint/canvas-putImageData.html...
slewis@apple.com [Tue, 20 Mar 2012 03:09:08 +0000 (03:09 +0000)]
https://bugs.webkit.org/show_bug.cgi?id=81617 fast/repaint/canvas-putImageData.html fails on the Lion bots

Unreviewed.

Check in new expected (failing?) results.

* platform/mac/fast/repaint/canvas-putImageData-expected.txt: Added.
* platform/mac/tables/mozilla_expected_failures/bugs/bug2479-5-expected.txt:
* platform/mac/transforms/3d/general/perspective-non-layer-expected.txt:

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

8 years ago[chromium] Rebaselining float-in-float-hit-testing and 056 in response
keishi@webkit.org [Tue, 20 Mar 2012 03:08:21 +0000 (03:08 +0000)]
[chromium] Rebaselining float-in-float-hit-testing and 056 in response
to r111281.

* platform/chromium-mac/fast/block/float/float-in-float-hit-testing-expected.txt: Added.
* platform/chromium-mac/fast/block/margin-collapse/056-expected.txt: Added.

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

8 years agoA bunch of media tests failing on Lion Intel Debug WebKit1 and WebKit2 testers.
jberlin@webkit.org [Tue, 20 Mar 2012 03:05:35 +0000 (03:05 +0000)]
A bunch of media tests failing on Lion Intel Debug WebKit1 and WebKit2 testers.
https://bugs.webkit.org/show_bug.cgi?id=81623

Rebaseline failing mac and mac-wk2 media tests.

* platform/mac-wk2/media/no-auto-play-in-sandbox-expected.txt: Added.
* platform/mac-wk2/media/video-playing-and-pause-expected.txt:
* platform/mac/media/audio-controls-rendering-expected.png:
* platform/mac/media/controls-after-reload-expected.png:
* platform/mac/media/controls-after-reload-expected.txt:
* platform/mac/media/controls-layout-direction-expected.png:
* platform/mac/media/controls-strict-expected.png:
* platform/mac/media/controls-strict-expected.txt:
* platform/mac/media/media-controls-clone-expected.png:
* platform/mac/media/video-colorspace-yuv420-expected.png: Added.
* platform/mac/media/video-colorspace-yuv422-expected.png: Added.
* platform/mac/media/video-controls-rendering-expected.png:
* platform/mac/media/video-controls-rendering-expected.txt:
* platform/mac/media/video-display-toggle-expected.png:
* platform/mac/media/video-display-toggle-expected.txt:
* platform/mac/media/video-layer-crash-expected.png:
* platform/mac/media/video-no-audio-expected.png:
* platform/mac/media/video-no-audio-expected.txt:
* platform/mac/media/video-playing-and-pause-expected.png:
* platform/mac/media/video-playing-and-pause-expected.txt:
* platform/mac/media/video-size-intrinsic-scale-expected.txt: Added.

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

8 years agoFix Windows build.
andersca@apple.com [Tue, 20 Mar 2012 03:02:12 +0000 (03:02 +0000)]
Fix Windows build.

* FullscreenVideoController.cpp:
(FullscreenVideoController::LayerClient::platformCALayerDeviceScaleFactor):

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

8 years agoFix Snow Leopard build.
andersca@apple.com [Tue, 20 Mar 2012 02:57:33 +0000 (02:57 +0000)]
Fix Snow Leopard build.

* platform/graphics/ca/mac/TileCache.mm:
(WebCore::TileCache::createTileLayer):

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

8 years agoUnreviewed chromium compile fix - put all TRACE_*s in their own scope explicitly.
jamesr@google.com [Tue, 20 Mar 2012 02:54:16 +0000 (02:54 +0000)]
Unreviewed chromium compile fix - put all TRACE_*s in their own scope explicitly.

* src/WebCompositorInputHandlerImpl.cpp:
(WebKit::WebCompositorInputHandlerImpl::handleInputEventInternal):
(WebKit::WebCompositorInputHandlerImpl::handleGestureFling):

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

8 years ago[WK2] http/tests/security/contentSecurityPolicy/script-src-star-cross-scheme.html...
timothy_horton@apple.com [Tue, 20 Mar 2012 02:52:47 +0000 (02:52 +0000)]
[WK2] http/tests/security/contentSecurityPolicy/script-src-star-cross-scheme.html fails after r97360
https://bugs.webkit.org/show_bug.cgi?id=70245

Unreviewed; skip failing http/tests/security/contentSecurityPolicy/script-src-star-cross-scheme.html on mac-wk2.

* platform/mac-wk2/Skipped:

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

8 years agohttps://bugs.webkit.org/show_bug.cgi?id=81610 fast/regions fail on Lion bots
slewis@apple.com [Tue, 20 Mar 2012 02:47:11 +0000 (02:47 +0000)]
https://bugs.webkit.org/show_bug.cgi?id=81610 fast/regions fail on Lion bots

Unreviewed.

Check in new expected (failing?) results.

* platform/mac/fast/regions/overflow-in-uniform-regions-dynamic-expected.txt:
* platform/mac/fast/regions/overflow-size-change-with-stacking-context-expected.txt:
* platform/mac/fast/regions/overflow-size-change-with-stacking-context-rtl-expected.txt:

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

8 years agoclean up gitignore
tony@chromium.org [Tue, 20 Mar 2012 02:45:48 +0000 (02:45 +0000)]
clean up gitignore
https://bugs.webkit.org/show_bug.cgi?id=81594

Reviewed by James Robinson.

* .gitignore: .suo files are per-user files used by VS2010. .ninja
files are no longer generated in the tree-- they are generated in the
build directory.

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

8 years agohttps://bugs.webkit.org/show_bug.cgi?id=81608 fast/multicol/span/span-as-immediate...
slewis@apple.com [Tue, 20 Mar 2012 02:44:25 +0000 (02:44 +0000)]
https://bugs.webkit.org/show_bug.cgi?id=81608 fast/multicol/span/span-as-immediate… fail on Lion bots

Unreviewed.

Check in new expected (failing?) results.

* platform/mac/fast/multicol/span/span-as-immediate-child-property-removal-expected.txt:
* platform/mac/fast/multicol/span/span-as-immediate-columns-child-removal-expected.txt:

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

8 years ago[WK2] http/tests/navigation/https-in-page-cache.html times out on mac-wk2
timothy_horton@apple.com [Tue, 20 Mar 2012 02:40:32 +0000 (02:40 +0000)]
[WK2] http/tests/navigation/https-in-page-cache.html times out on mac-wk2
https://bugs.webkit.org/show_bug.cgi?id=81622

Unreviewed; skip failing http/tests/navigation/https-in-page-cache.html on mac-wk2.

* platform/mac-wk2/Skipped:

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

8 years agoSource/WebKit/gtk: [GTK] Allow running run-gtk-tests during 'make dist'
mrobinson@webkit.org [Tue, 20 Mar 2012 02:34:53 +0000 (02:34 +0000)]
Source/WebKit/gtk: [GTK] Allow running run-gtk-tests during 'make dist'
https://bugs.webkit.org/show_bug.cgi?id=81415

Reviewed by Philippe Normand.

* GNUmakefile.am: Remove 'make check' rules from the makefile
Instead this functionality is now in the Tools makefile.

Tools: [GTK] Allow running run-gtk-tests during 'make distcheck'
https://bugs.webkit.org/show_bug.cgi?id=81415

Reviewed by Philippe Normand.

Modify the build and run-gtk-tests so that it can run during 'make distcheck'

* GNUmakefile.am: Distribute run-gtk-tests during 'make dist' and make it the
main command run during 'make check.'
* Scripts/run-gtk-tests: Refactored run-gtk-tests so that jhbuild is no longer
a requirement to run it. If jhbuild isn't around it will simply not start the
SPI daemons and skip the WebKit2 accessibility test. Remove test runs from the
main loop and simply use the main loop in a synchronous method to start SPI
daemons. Did a bunch of general cleanup around these tasks.

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

8 years ago[WK2] http/tests/navigation/anchor-frames-gbk.html fails
timothy_horton@apple.com [Tue, 20 Mar 2012 02:30:24 +0000 (02:30 +0000)]
[WK2] http/tests/navigation/anchor-frames-gbk.html fails
https://bugs.webkit.org/show_bug.cgi?id=76896
<rdar://problem/11078978>

Unreviewed; skip failing http/tests/navigation/anchor-frames-gbk.html on mac-wk2.

* platform/mac-wk2/Skipped:

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

8 years ago[chromium] return true/false on GestureFlingCancel if a fling was stopped
commit-queue@webkit.org [Tue, 20 Mar 2012 02:28:14 +0000 (02:28 +0000)]
[chromium] return true/false on GestureFlingCancel if a fling was stopped
https://bugs.webkit.org/show_bug.cgi?id=81563

Patch by Robert Kroeger <rjkroege@chromium.org> on 2012-03-19
Reviewed by James Robinson.

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

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

8 years agojhbuild: Use the multiprocessing module to get the number of CPUs.
kubo@profusion.mobi [Tue, 20 Mar 2012 02:27:13 +0000 (02:27 +0000)]
jhbuild: Use the multiprocessing module to get the number of CPUs.
https://bugs.webkit.org/show_bug.cgi?id=81585

Reviewed by Martin Robinson.

Now that support for Python 2.5 has been dropped, we can safely
use multiprocessing.cpu_count() to obtain the current number of
CPUs in the system instead of running a webkitperl script for
that.

* efl/common.py:
(top_level_path):
* efl/jhbuildrc:
* gtk/common.py:
(build_path):
* gtk/jhbuildrc:

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

8 years ago[chromium] Adding support for GL_EXT_discard_framebuffer.
commit-queue@webkit.org [Tue, 20 Mar 2012 02:25:55 +0000 (02:25 +0000)]
[chromium] Adding support for GL_EXT_discard_framebuffer.
https://bugs.webkit.org/show_bug.cgi?id=81383

Patch by Michal Mocny <mmocny@google.com> on 2012-03-19
Reviewed by James Robinson.

Source/Platform:

* chromium/public/WebGraphicsContext3D.h:
(WebGraphicsContext3D):
(WebKit::WebGraphicsContext3D::discardFramebufferEXT):
(WebKit::WebGraphicsContext3D::ensureFramebufferCHROMIUM):

Source/WebCore:

* platform/graphics/chromium/Extensions3DChromium.h:

Source/WebKit/chromium:

* src/Extensions3DChromium.cpp:
(WebCore::Extensions3DChromium::discardFramebufferEXT):
(WebCore):
(WebCore::Extensions3DChromium::ensureFramebufferCHROMIUM):
* src/GraphicsContext3DChromium.cpp:
(WebCore):
* src/GraphicsContext3DPrivate.h:
(GraphicsContext3DPrivate):
* tests/FakeWebGraphicsContext3D.h:
(WebKit::FakeWebGraphicsContext3D::discardFramebufferEXT):
(WebKit::FakeWebGraphicsContext3D::ensureFramebufferCHROMIUM):
(FakeWebGraphicsContext3D):

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

8 years agoWe should only add a live event listener once, not once per TestSelector.
ojan@chromium.org [Tue, 20 Mar 2012 02:20:01 +0000 (02:20 +0000)]
We should only add a live event listener once, not once per TestSelector.
Adding one per TestSelector would cause accordion('option', 'active') to
incorrectly be "false" if you examine multiple sets of tests.

* BuildSlaveSupport/build.webkit.org-config/public_html/TestFailures/scripts/ui/results.js:

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

8 years agoRefactor ContainerNode::replaceChild to match other mutation methods and share code
adamk@chromium.org [Tue, 20 Mar 2012 02:19:08 +0000 (02:19 +0000)]
Refactor ContainerNode::replaceChild to match other mutation methods and share code
https://bugs.webkit.org/show_bug.cgi?id=81579

Reviewed by Ojan Vafai.

A future change will make use of the consistency among insertBefore/appendChild/replaceChild
to handle insertion of DocumentFragments more cleanly.

No new tests, no change in behavior.

* dom/ContainerNode.cpp:
(WebCore::ContainerNode::replaceChild): Use collectTargetNodes rather than walking through DocumentFragment children.
Insert before rather than inserting after. Dispatch to other methods to update parent/sibling pointers.
(WebCore::ContainerNode::appendChild): Call appendChildToContainer to update parent/sibling pointers.
(WebCore::ContainerNode::parserAddChild): Use type inference in call to appendChildToContainer.

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

8 years agohttp/tests/misc/acid3.html fails on mac-lion-wk2
timothy_horton@apple.com [Tue, 20 Mar 2012 02:19:01 +0000 (02:19 +0000)]
http/tests/misc/acid3.html fails on mac-lion-wk2
https://bugs.webkit.org/show_bug.cgi?id=81621
<rdar://problem/11078942>

Unreviewed; check in failing results for mac-wk2.

* platform/mac-wk2/http/tests/misc/acid3-expected.png: Added.
* platform/mac-wk2/http/tests/misc/acid3-expected.txt: Added.

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

8 years ago[chromium] Times in the cc should be expressed in seconds.
commit-queue@webkit.org [Tue, 20 Mar 2012 02:15:48 +0000 (02:15 +0000)]
[chromium] Times in the cc should be expressed in seconds.
https://bugs.webkit.org/show_bug.cgi?id=80514

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

Source/WebCore:

Updated timer tests to use seconds.

* platform/TouchFlingPlatformGestureCurve.h:
(TouchFlingPlatformGestureCurve):
* platform/graphics/chromium/cc/CCActiveGestureAnimation.cpp:
(WebCore::CCActiveGestureAnimation::animate):
* platform/graphics/chromium/cc/CCActiveGestureAnimation.h:
(CCActiveGestureAnimation):
* platform/graphics/chromium/cc/CCDelayBasedTimeSource.cpp:
(WebCore::CCDelayBasedTimeSource::create):
(WebCore::CCDelayBasedTimeSource::CCDelayBasedTimeSource):
(WebCore::CCDelayBasedTimeSource::setActive):
(WebCore::CCDelayBasedTimeSource::onTimerFired):
(WebCore::CCDelayBasedTimeSource::monotonicallyIncreasingTime):
(WebCore):
(WebCore::CCDelayBasedTimeSource::postNextTickTask):
* platform/graphics/chromium/cc/CCDelayBasedTimeSource.h:
(CCDelayBasedTimeSource):
* platform/graphics/chromium/cc/CCGestureCurve.h:
(CCGestureCurve):
* platform/graphics/chromium/cc/CCThreadProxy.cpp:
(WTF):
(WebCore::CCThreadProxy::beginContextRecreation):
(WebCore::CCThreadProxy::tryToRecreateContext):
(WebCore::CCThreadProxy::initializeImplOnImplThread):
* platform/graphics/chromium/cc/CCTimer.cpp:
(WebCore::CCTimer::startOneShot):
* platform/graphics/chromium/cc/CCTimer.h:
(CCTimer):

Source/WebKit/chromium:

* tests/CCDelayBasedTimeSourceTest.cpp:
(WebKitTests::TEST):
* tests/CCFrameRateControllerTest.cpp:
(WebKitTests::TEST):
* tests/CCSchedulerTestCommon.h:
(WebKitTests::FakeCCThread::pendingDelayMs):
(WebKitTests::FakeCCDelayBasedTimeSource::create):
(WebKitTests::FakeCCDelayBasedTimeSource::setMonotonicallyIncreasingTime):
(WebKitTests::FakeCCDelayBasedTimeSource::monotonicallyIncreasingTime):
(WebKitTests::FakeCCDelayBasedTimeSource::FakeCCDelayBasedTimeSource):
(FakeCCDelayBasedTimeSource):
* tests/CCTimerTest.cpp:
(WebKitTests::TEST_F):

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

8 years agoFix typo introduced in r111293.
dpranke@chromium.org [Tue, 20 Mar 2012 02:10:44 +0000 (02:10 +0000)]
Fix typo introduced in r111293.

Unreviewed, build fix.

* Scripts/webkitpy/layout_tests/port/webkit.py:
(WebKitDriver._check_for_driver_crash):

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

8 years agoSimplify SmallStrings
benjamin@webkit.org [Tue, 20 Mar 2012 02:09:38 +0000 (02:09 +0000)]
Simplify SmallStrings
https://bugs.webkit.org/show_bug.cgi?id=81445

Patch by Benjamin Poulain <bpoulain@apple.com> on 2012-03-19
Reviewed by Gavin Barraclough.

SmallStrings had two methods that should not be public: count() and clear().

The method clear() is effectively replaced by finalizeSmallStrings(). The body
of the method was moved to the constructor since the code is obvious.

The method count() is unused.

* runtime/SmallStrings.cpp:
(JSC::SmallStrings::SmallStrings):
* runtime/SmallStrings.h:
(SmallStrings):

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

8 years ago[WK2] WebKitTestRunner needs to print frame load delegate information
timothy_horton@apple.com [Tue, 20 Mar 2012 02:04:35 +0000 (02:04 +0000)]
[WK2] WebKitTestRunner needs to print frame load delegate information
https://bugs.webkit.org/show_bug.cgi?id=42705

Skip http/tests/loading/state-object-security-exception.html until WKTR prints frame load delegate information.

* platform/wk2/Skipped:

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

8 years agofast/dom/Window/window-properties.html failing on Lion Intel Debug WebKit1 and WebKit2
jberlin@webkit.org [Tue, 20 Mar 2012 02:01:50 +0000 (02:01 +0000)]
fast/dom/Window/window-properties.html failing on Lion Intel Debug WebKit1 and WebKit2
testers.
https://bugs.webkit.org/show_bug.cgi?id=81612

Update the expected (failing?) results to get the bots green.

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

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

8 years agofast/harness/page-cache-crash-on-data-urls.html and fast/harness/use-page-cache.html...
jberlin@webkit.org [Tue, 20 Mar 2012 02:01:43 +0000 (02:01 +0000)]
fast/harness/page-cache-crash-on-data-urls.html and fast/harness/use-page-cache.html fail on
Lion Intel Debug WebKit2 testers.
https://bugs.webkit.org/show_bug.cgi?id=81616

Skip the flakey one and add expected failing results for the other.

* platform/mac-wk2/fast/harness/use-page-cache-expected.txt: Added.
* platform/wk2/Skipped:

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

8 years agoStop messing with the AppKit grow box on platforms that don't support it
weinig@apple.com [Tue, 20 Mar 2012 01:45:52 +0000 (01:45 +0000)]
Stop messing with the AppKit grow box on platforms that don't support it
<rdar://problem/10752048>
https://bugs.webkit.org/show_bug.cgi?id=81614

Reviewed by Dan Bernstein.

* UIProcess/API/mac/WKView.mm:
(-[WKView viewWillMoveToWindow:]):
(-[WKView _didChangeScrollbarsForMainFrame]):
Snow Leopard was the last Mac OS to need a grow box.

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

8 years ago[WK2] Support layoutTestController.dumpProgressFinishedCallback() in WKTR
timothy_horton@apple.com [Tue, 20 Mar 2012 01:41:15 +0000 (01:41 +0000)]
[WK2] Support layoutTestController.dumpProgressFinishedCallback() in WKTR
https://bugs.webkit.org/show_bug.cgi?id=81613

Unreviewed; skip http/tests/loading/progress-finished-callback.html on mac-wk2.

* platform/mac-wk2/Skipped:

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

8 years agowebkitpy: get ServerProcess out of the reportcrash business
dpranke@chromium.org [Tue, 20 Mar 2012 01:33:01 +0000 (01:33 +0000)]
webkitpy: get ServerProcess out of the reportcrash business
https://bugs.webkit.org/show_bug.cgi?id=81600

Reviewed by Adam Barth.

ServerProcess was half-aware that ReportCrash might run
sometimes, and that the process ServerProcess was talking to
might have its own crashing subprocesses; neither of these
things really worked right and it made the logic convoluted, so
this change makes handling crashes completely separate from the
server_process code, so that it can focus on just I/O to the
subprocess.

There should be no functional changes resulting from this patch.

* Scripts/webkitpy/layout_tests/port/server_process.py:
(ServerProcess._reset):
(ServerProcess._handle_possible_interrupt):
(ServerProcess.write):
(ServerProcess.read_stdout):
(ServerProcess.has_crashed):
(ServerProcess._read):
(ServerProcess.stop):
* Scripts/webkitpy/layout_tests/port/server_process_unittest.py:
(TrivialMockPort.check_for_leaks):
(TestServerProcess.test_broken_pipe):
* Scripts/webkitpy/layout_tests/port/webkit.py:
(WebKitPort._read_image_diff):
(WebKitDriver.has_crashed):
(WebKitDriver._check_for_driver_crash):
(WebKitDriver.run_test):
(WebKitDriver._read_block):
* Scripts/webkitpy/layout_tests/port/webkit_unittest.py:
(MockServerProcess.__init__):
(MockServerProcess):
(MockServerProcess.has_crashed):

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

8 years agoUnreviewed new mac baselines for fast/css/font-family-pictograph and fast/css/pseudo...
timothy_horton@apple.com [Tue, 20 Mar 2012 01:29:42 +0000 (01:29 +0000)]
Unreviewed new mac baselines for fast/css/font-family-pictograph and fast/css/pseudo-first-line-border-width.

* platform/mac/fast/css/font-family-pictograph-expected.png: Added.
* platform/mac/fast/css/font-family-pictograph-expected.txt:
* platform/mac/fast/css/pseudo-first-line-border-width-expected.png: Added.
* platform/mac/fast/css/pseudo-first-line-border-width-expected.txt: Added.

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

8 years agowebkitpy: crashlog parsing is broken
dpranke@chromium.org [Tue, 20 Mar 2012 01:28:48 +0000 (01:28 +0000)]
webkitpy: crashlog parsing is broken
https://bugs.webkit.org/show_bug.cgi?id=81586

Reviewed by Adam Barth.

Seeking on a file opened through codecs() appears to not work
correctly (at least on SL).

The code was more complicated than it needed to be, so I have
revamped it to just read a full crashlog at once and then look
for matches.

I have also added the ability to optionally propagate
errors back (which can be helpful to debug races when ReportCrash is
still running and you need to see that you couldn't open some
files, rather than just ignoring them).

* Scripts/webkitpy/common/system/crashlogs.py:
(CrashLogs.find_newest_log):
(CrashLogs._find_newest_log_darwin):
* Scripts/webkitpy/common/system/crashlogs_unittest.py:
(CrashLogsTest.test_find_log_darwin):

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

8 years agofast/loader/window-properties-restored-from-page-cache.html timing out on Lion Intel...
jberlin@webkit.org [Tue, 20 Mar 2012 01:28:28 +0000 (01:28 +0000)]
fast/loader/window-properties-restored-from-page-cache.html timing out on Lion Intel Debug WebKit2 testers
https://bugs.webkit.org/show_bug.cgi?id=81609

Skip it to get the bots green.

* platform/wk2/Skipped:

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

8 years agowebkitpy: clean up some port._filesystem references to not reference private members
dpranke@chromium.org [Tue, 20 Mar 2012 01:25:54 +0000 (01:25 +0000)]
webkitpy: clean up some port._filesystem references to not reference private members
https://bugs.webkit.org/show_bug.cgi?id=81595

Reviewed by Eric Seidel.

There should be no functional changes in this patch, just some
refactoring. Also, fixes a minor nit in write_image_diff_files(()

* Scripts/webkitpy/layout_tests/controllers/single_test_runner.py:
(SingleTestRunner.__init__):
(SingleTestRunner._run_compare_test):
(SingleTestRunner._run_rebaseline):
(SingleTestRunner._save_baseline_data):
(SingleTestRunner._handle_error):
(SingleTestRunner._run_reftest):
* Scripts/webkitpy/layout_tests/controllers/test_result_writer.py:
(write_test_result):
(TestResultWriter.__init__):
(TestResultWriter._make_output_directory):
(TestResultWriter.output_filename):
(TestResultWriter._output_testname):
(TestResultWriter.write_output_files):
(TestResultWriter.write_stderr):
(TestResultWriter.write_crash_report):
(TestResultWriter.create_text_diff_and_write_result):
(TestResultWriter.write_image_diff_files):
(copy_file):
* Scripts/webkitpy/layout_tests/controllers/test_result_writer_unittest.py:
(TestResultWriterTest.test_reftest_diff_image):

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

8 years agowebkitpy: fix nit - incorrect reference to DRT in test_expectations.py
dpranke@chromium.org [Tue, 20 Mar 2012 01:22:45 +0000 (01:22 +0000)]
webkitpy: fix nit - incorrect reference to DRT in test_expectations.py
https://bugs.webkit.org/show_bug.cgi?id=81598

Reviewed by Eric Seidel.

"DumpRenderTree" shouldn't be hard-coded here, since some other
process may actually be crashing (WebKitTestRunner, WebProcess, etc.)

* Scripts/webkitpy/layout_tests/models/test_expectations.py:
(TestExpectations):

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

8 years agowebkitpy: allow instance data in TestFailure objects
dpranke@chromium.org [Tue, 20 Mar 2012 01:21:16 +0000 (01:21 +0000)]
webkitpy: allow instance data in TestFailure objects
https://bugs.webkit.org/show_bug.cgi?id=81580

Reviewed by Tony Chang.

Current TestFailures are basically enums, but it would be nice,
especially for crashes, if they contained the name and pid of
the process that crashed.

* Scripts/webkitpy/layout_tests/models/test_failures.py:
(TestFailure.message):
(FailureTimeout.message):
(FailureCrash):
(FailureCrash.__init__):
(FailureCrash.message):
(FailureMissingResult.message):
(FailureTextMismatch.message):
(FailureMissingImageHash.message):
(FailureMissingImage.message):
(FailureImageHashMismatch.message):
(FailureImageHashIncorrect.message):
(FailureReftestMismatch.message):
(FailureReftestMismatchDidNotOccur.message):
(FailureReftestNoImagesGenerated.message):
(FailureMissingAudio.message):
(FailureAudioMismatch.message):
* Scripts/webkitpy/layout_tests/models/test_failures_unittest.py:
(TestFailuresTest.test_equals):
(TestFailuresTest):
(TestFailuresTest.test_crashes):

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

8 years agoA bunch of jquery tests are timing out on the Lion Intel Debug WebKit2 testers.
jberlin@webkit.org [Tue, 20 Mar 2012 01:16:20 +0000 (01:16 +0000)]
A bunch of jquery tests are timing out on the Lion Intel Debug WebKit2 testers.
https://bugs.webkit.org/show_bug.cgi?id=81606

Skip them to get the bots green.

* platform/wk2/Skipped:

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

8 years ago[chromium] Stop deriving WebCompositor from WebCompositorInputHandler
nduca@chromium.org [Tue, 20 Mar 2012 01:13:38 +0000 (01:13 +0000)]
[chromium] Stop deriving WebCompositor from WebCompositorInputHandler
https://bugs.webkit.org/show_bug.cgi?id=80586

Reviewed by Darin Fisher.

* public/WebCompositor.h:
(WebKit):
* public/WebCompositorInputHandler.h:
(WebCompositorInputHandler):
* public/WebWidgetClient.h:
(WebWidgetClient):
(WebKit::WebWidgetClient::didActivateCompositor):
* src/WebCompositorInputHandlerImpl.cpp:
(WebKit::WebCompositorInputHandler::fromIdentifier):
* src/WebCompositorInputHandlerImpl.h:
(WebCompositorInputHandlerImpl):

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

8 years agoA bunch of media tests time out on the Lion Intel Debug WebKit1 and WebKit2 testers.
jberlin@webkit.org [Tue, 20 Mar 2012 01:06:21 +0000 (01:06 +0000)]
A bunch of media tests time out on the Lion Intel Debug WebKit1 and WebKit2 testers.
https://bugs.webkit.org/show_bug.cgi?id=81604

Skip them to get the bots green.

* platform/mac/Skipped:
* platform/wk2/Skipped:

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

8 years agoUnreviewed new mac baseline for compositing/repaint/become-overlay-composited-layer...
timothy_horton@apple.com [Tue, 20 Mar 2012 01:02:37 +0000 (01:02 +0000)]
Unreviewed new mac baseline for compositing/repaint/become-overlay-composited-layer.html.

* platform/mac/compositing/repaint/become-overlay-composited-layer-expected.png:
* platform/mac/compositing/repaint/become-overlay-composited-layer-expected.txt:

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

8 years agoUnreviewed skip of canvas/philip/tests/2d.path.arc.scale.1.html as an addition to...
timothy_horton@apple.com [Tue, 20 Mar 2012 00:53:57 +0000 (00:53 +0000)]
Unreviewed skip of canvas/philip/tests/2d.path.arc.scale.1.html as an addition to trac.webkit.org/changeset/111278

* platform/mac/Skipped:

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

8 years agoUnreviewed mac baselines for some fast/block tests after http://trac.webkit.org/chang...
timothy_horton@apple.com [Tue, 20 Mar 2012 00:47:52 +0000 (00:47 +0000)]
Unreviewed mac baselines for some fast/block tests after trac.webkit.org/changeset/97596

* platform/mac/fast/block/float/float-in-float-hit-testing-expected.png:
* platform/mac/fast/block/float/float-in-float-hit-testing-expected.txt:
* platform/mac/fast/block/margin-collapse/056-expected.txt:

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

8 years agoA bunch of inspector tests time out on Lion Intel Debug WebKit2 testers.
jberlin@webkit.org [Tue, 20 Mar 2012 00:40:38 +0000 (00:40 +0000)]
A bunch of inspector tests time out on Lion Intel Debug WebKit2 testers.
https://bugs.webkit.org/show_bug.cgi?id=81601

Skip them on WK2 to get the bots green.

* platform/wk2/Skipped:

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

8 years agoRelative-height block SVG root not layed out on container height change
commit-queue@webkit.org [Tue, 20 Mar 2012 00:37:32 +0000 (00:37 +0000)]
Relative-height block SVG root not layed out on container height change
https://bugs.webkit.org/show_bug.cgi?id=81513

Patch by Florin Malita <fmalita@google.com> on 2012-03-19
Reviewed by Dirk Schulze.

Source/WebCore:

Tests: svg/custom/svg-percent-scale-block-expected.html
       svg/custom/svg-percent-scale-block.html

A couple of places still have style()->logical{Min,Max,}Height percent checks,
which do not work for SVG elements. This patch adds a virtual hasRelativeLogicalHeight()
RenderBox method to replace the explicit style checks.

* rendering/RenderBlock.cpp:
(WebCore::RenderBlock::layoutBlockChildren):
Use virtual hasRelativeLogicalHeight() instead of logical height style checks.

* rendering/RenderBox.cpp:
(WebCore::RenderBox::hasRelativeLogicalHeight):
(WebCore):
* rendering/RenderBox.h:
(RenderBox):
Add virtual hasRelativeLogicalHeight().

* rendering/RenderView.cpp:
(WebCore::RenderView::layout):
Use virtual hasRelativeLogicalHeight() instead of logical height style checks, if possible.

* rendering/svg/RenderSVGRoot.cpp:
(WebCore::RenderSVGRoot::hasRelativeLogicalHeight):
(WebCore):
* rendering/svg/RenderSVGRoot.h:
(RenderSVGRoot):
Add hasRelativeLogicalHeight() override.

LayoutTests:

* svg/custom/svg-percent-scale-block-expected.html: Added.
* svg/custom/svg-percent-scale-block.html: Added.

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

8 years agoFour fast/canvas tests are flaky (fail on bots, not locally, or vice versa)
timothy_horton@apple.com [Tue, 20 Mar 2012 00:33:00 +0000 (00:33 +0000)]
Four fast/canvas tests are flaky (fail on bots, not locally, or vice versa)
https://bugs.webkit.org/show_bug.cgi?id=81599
<rdar://problem/11078302>

Unreviewed skip of four flaky tests:

fast/canvas/canvas-createPattern-fillRect-shadow.html
fast/canvas/canvas-draw-canvas-on-canvas-shadow.html
fast/canvas/canvas-fillRect-gradient-shadow.html
fast/canvas/set-colors.html

* platform/mac/Skipped:

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

8 years agoAssertion failure in RenderBlock::addChildIgnoringAnonymousColumnBlocks when running...
jer.noble@apple.com [Tue, 20 Mar 2012 00:20:41 +0000 (00:20 +0000)]
Assertion failure in RenderBlock::addChildIgnoringAnonymousColumnBlocks when running fullscreen/full-screen-twice-crash.html
causing "crashes" on the Lion Intel Debug WebKit2 test bots.
https://bugs.webkit.org/show_bug.cgi?id=81171

Reviewed by Dan Bernstein.

No new tests; fixes fullscreen/* tests when running in WebKitTestRunner (WebKit2).

Add a special-case check if the parent anonymous container is a full screen renderer or placeholder.

* rendering/RenderBlock.cpp:
(WebCore::RenderBlock::addChildIgnoringAnonymousColumnBlocks):

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

8 years agoWebKit2: create sandbox extensions for files that are dropped in an input control.
enrica@apple.com [Tue, 20 Mar 2012 00:12:22 +0000 (00:12 +0000)]
WebKit2: create sandbox extensions for files that are dropped in an input control.
https://bugs.webkit.org/show_bug.cgi?id=81153
<rdar://problem/11031207>

Reviewed by Alexey Proskuryakov.

Source/WebCore:

Now the pasteboard access is performed only in the UI process, it is
necessary to create sandbox extensions for each file that is dropped into
an input type=file element. The extensions are created at the time the files
are dropped and consumed immediately.

* page/DragActions.h: Added new drag action to be used by the WebDragClient.
* page/DragController.cpp:
(WebCore::DragController::concludeEditDrag): Added call to the drag client with the new action.

Source/WebKit/mac:

* WebCoreSupport/WebDragClient.mm:
(WebDragClient::willPerformDragDestinationAction): Avoid calling the delegate with the new drag action.
We want to avoid any unwanted side effects for the WebKit clients.

Source/WebKit2:

Now the pasteboard access is performed only in the UI process, it is
necessary to create sandbox extensions for each file that is dropped into
an input type=file element. The extensions are created at the time the files
are dropped and consumed immediately.

* Platform/CoreIPC/HandleMessage.h:
(CoreIPC::callMemberFunction): Added template that takes 8 arguments.
* Shared/SandboxExtension.h:
(HandleArray): Added new class to handle an array of sandbox extension handles.
(WebKit::SandboxExtension::HandleArray::HandleArray):
(WebKit::SandboxExtension::HandleArray::~HandleArray):
(WebKit::SandboxExtension::HandleArray::resize):
(WebKit::SandboxExtension::HandleArray::operator[]):
(WebKit::SandboxExtension::HandleArray::size):
(WebKit::SandboxExtension::HandleArray::encode):
(WebKit::SandboxExtension::HandleArray::decode):
* Shared/mac/SandboxExtensionMac.mm: Added new class implementation.
(WebKit::SandboxExtension::HandleArray::HandleArray):
(WebKit::SandboxExtension::HandleArray::~HandleArray):
(WebKit::SandboxExtension::HandleArray::resize):
(WebKit::SandboxExtension::HandleArray::operator[]):
(WebKit::SandboxExtension::HandleArray::size):
(WebKit::SandboxExtension::HandleArray::encode):
(WebKit::SandboxExtension::HandleArray::decode):
* UIProcess/API/mac/WKView.mm:
(createSandboxExtensionsForFileUpload):
(-[WKView performDragOperation:]): Added logic to create the sandbox extensions for each
file/directory being dropped.
* UIProcess/WebPageProxy.cpp:
(WebKit::WebPageProxy::dragEntered):
(WebKit::WebPageProxy::dragUpdated):
(WebKit::WebPageProxy::dragExited):
(WebKit::WebPageProxy::performDrag):
(WebKit::WebPageProxy::performDragControllerAction): Added the handle array parameter.
* UIProcess/WebPageProxy.h:
* UIProcess/qt/QtWebPageEventHandler.cpp:
(QtWebPageEventHandler::handleDropEvent):
* UIProcess/API/gtk/WebKitWebViewBase.cpp:
* UIProcess/win/WebView.cpp:
(WebKit::WebView::Drop):
* WebProcess/WebCoreSupport/WebDragClient.cpp:
(WebKit::WebDragClient::willPerformDragDestinationAction): Added handling of the new DragActionUpload.
* WebProcess/WebCoreSupport/WebPlatformStrategies.cpp:
(WebKit::WebPlatformStrategies::getPathnamesForType): Implemented using message to the UI process.
* WebProcess/WebPage/WebPage.cpp:
(WebKit::WebPage::performDragControllerAction):
(WebKit::WebPage::performUploadDragDestinationAction): Added method that consumes the received extensions.
* WebProcess/WebPage/WebPage.h:
* WebProcess/WebPage/WebPage.messages.in:

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

8 years agoFix Chromium Win
eric@webkit.org [Tue, 20 Mar 2012 00:08:56 +0000 (00:08 +0000)]
Fix Chromium Win
https://bugs.webkit.org/show_bug.cgi?id=81281

Unreviewed build fix.

* platform/graphics/chromium/TransparencyWin.h:

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

8 years agoFix the chromium world.
eric@webkit.org [Tue, 20 Mar 2012 00:02:08 +0000 (00:02 +0000)]
Fix the chromium world.
https://bugs.webkit.org/show_bug.cgi?id=81281

Unreviewed build fix.

* rendering/RenderThemeChromiumSkia.cpp:

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

8 years agoDFG can no longer compile V8-v4/regexp in debug mode
fpizlo@apple.com [Mon, 19 Mar 2012 23:59:12 +0000 (23:59 +0000)]
DFG can no longer compile V8-v4/regexp in debug mode
https://bugs.webkit.org/show_bug.cgi?id=81592

Reviewed by Gavin Barraclough.

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

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

8 years ago<rdar://problem/10917120> and https://bugs.webkit.org/show_bug.cgi?id=81066
beidson@apple.com [Mon, 19 Mar 2012 23:59:07 +0000 (23:59 +0000)]
<rdar://problem/10917120> and https://bugs.webkit.org/show_bug.cgi?id=81066
Crash in 3rd party WebKit apps under XHR/Cache code

Reviewed by Antti Koivisto.

Source/WebCore:

No new layout tests.
TestWebKitAPI test MemoryCachePruneWithinResourceLoadDelegate included

A CachedResource representing an XHR was being deleted by cache pruning during a delegate callback.
This worked until http://trac.webkit.org/changeset/98380

* history/PageCache.cpp:
(WebCore::PageCache::releaseAutoreleasedPagesNow): Only trigger pruning after the page cache
  autorelease if it was enabled before.

* loader/cache/CachedResourceLoader.cpp:
(WebCore::CachedResourceLoader::loadResource): Disable pruning before loading the resource and
  re-enable it afterwards if necessary.

* loader/cache/MemoryCache.h:
(WebCore::MemoryCache::pruneEnabled):

Tools:

* TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
* TestWebKitAPI/Tests/mac/MemoryCachePruneWithinResourceLoadDelegate.html: Added.
* TestWebKitAPI/Tests/mac/MemoryCachePruneWithinResourceLoadDelegate.mm: Added.
(-[MemoryCachePruneTestResourceLoadDelegate webView:identifierForInitialRequest:fromDataSource:]):
(-[MemoryCachePruneTestResourceLoadDelegate webView:resource:willSendRequest:redirectResponse:fromDataSource:]):
(-[MemoryCachePruneTestResourceLoadDelegate webView:resource:didFinishLoadingFromDataSource:]):
(-[MemoryCachePruneTestResourceLoadDelegate webView:resource:didFailLoadingWithError:fromDataSource:]):
(TestWebKitAPI):
(TestWebKitAPI::TEST):

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

8 years agoFix Windows build.
andersca@apple.com [Mon, 19 Mar 2012 23:46:13 +0000 (23:46 +0000)]
Fix Windows build.

* platform/graphics/win/MediaPlayerPrivateQuickTimeVisualContext.cpp:
(WebCore::MediaPlayerPrivateQuickTimeVisualContext::LayerClient::platformCALayerDeviceScaleFactor):

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

8 years ago[chromium] Implement fling-by-wheel on compositor thread
jamesr@google.com [Mon, 19 Mar 2012 23:45:10 +0000 (23:45 +0000)]
[chromium] Implement fling-by-wheel on compositor thread
https://bugs.webkit.org/show_bug.cgi?id=81462

Reviewed by Adrienne Walker.

Source/WebCore:

Adds compositor thread support for a fling type implemented as a sequence of wheel scrolls. Covered by new tests
in WebCompositorInputHandlerImplTests.

* platform/graphics/chromium/cc/CCInputHandler.h:
(CCInputHandler):
* platform/graphics/chromium/cc/CCLayerTreeHostImpl.cpp:
(WebCore::CCLayerTreeHostImpl::scheduleAnimation):
(WebCore):
* platform/graphics/chromium/cc/CCLayerTreeHostImpl.h:
(CCLayerTreeHostImpl):
* platform/graphics/chromium/cc/CCThreadProxy.cpp:
(WebCore::CCThreadProxy::scheduledActionDrawAndSwap):

Source/WebKit/chromium:

Implement fling-by-wheel and beef up existing unit test coverage considerably by using gmock instead of mocking
by hand.

* src/WebCompositorInputHandlerImpl.cpp:
(WebKit::WebCompositorInputHandlerImpl::handleInputEvent):
(WebKit):
(WebKit::WebCompositorInputHandlerImpl::handleInputEventInternal):
(WebKit::WebCompositorInputHandlerImpl::handleGestureFling):
(WebKit::WebCompositorInputHandlerImpl::animate):
(WebKit::WebCompositorInputHandlerImpl::cancelCurrentFling):
(WebKit::WebCompositorInputHandlerImpl::scrollBy):
* src/WebCompositorInputHandlerImpl.h:
(WebCompositorInputHandlerImpl):
* tests/WebCompositorInputHandlerImplTest.cpp:

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

8 years agoPrediction propagation for UInt32ToNumber incorrectly assumes that outs outcome does not
fpizlo@apple.com [Mon, 19 Mar 2012 23:36:59 +0000 (23:36 +0000)]
Prediction propagation for UInt32ToNumber incorrectly assumes that outs outcome does not
change throughout the fixpoint
https://bugs.webkit.org/show_bug.cgi?id=81583

Reviewed by Michael Saboff.

* dfg/DFGPredictionPropagationPhase.cpp:
(JSC::DFG::PredictionPropagationPhase::propagate):

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

8 years agoSource/WebCore: [mac/chromium] Change platform code to use pixelSnappedRect methods
eae@chromium.org [Mon, 19 Mar 2012 23:33:53 +0000 (23:33 +0000)]
Source/WebCore: [mac/chromium] Change platform code to use pixelSnappedRect methods
https://bugs.webkit.org/show_bug.cgi?id=81016

Reviewed by Eric Seidel.

Change platform code to use Node::getPixelSnappedRect,
pixelSnappedBoundingBoxRect and pixelSnappedAbsoluteClippedOverflowRect
to avoid exposing subpixel types to the platform layer.

No new tests.

* WebCore.exp.in:
* rendering/RenderObject.cpp:
(WebCore::RenderObject::pixelSnappedAbsoluteClippedOverflowRect):
Add pixelSnapped version of absoluteClippedOverflowRect

(WebCore):
* rendering/RenderObject.h:
(RenderObject):

Source/WebKit/chromium: [mac/chromium] Change platform code to use pixelSnappedRect methods
https://bugs.webkit.org/show_bug.cgi?id=81016

Reviewed by Eric Seidel.

* src/WebViewImpl.cpp:
(WebKit::WebViewImpl::computeBlockBounds):
(WebKit::WebViewImpl::applyAutofillSuggestions):
(WebKit::WebViewImpl::refreshAutofillPopup):

Source/WebKit/mac: [mac/chromium] Change platform code to use pixelSnappedRect methods
https://bugs.webkit.org/show_bug.cgi?id=81016

Reviewed by Eric Seidel.

* Plugins/WebBaseNetscapePluginView.mm:
(-[WebBaseNetscapePluginView actualVisibleRectInWindow]):
* WebView/WebFrame.mm:
(-[WebFrame _getVisibleRect:]):
(-[WebFrame _computePageRectsWithPrintScaleFactor:pageSize:]):
* WebView/WebView.mm:
(-[WebView _dashboardRegions]):
(-[WebView trackedRepaintRects]):

Source/WebKit/qt: [mac/qt/chromium] Change platform code to use pixelSnappedRect methods
https://bugs.webkit.org/show_bug.cgi?id=81016

Reviewed by Eric Seidel.

* Api/qwebelement.cpp:
(QWebElement::geometry):
(QWebElement::render):

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

8 years ago<rdar://problem/10848575> and https://bugs.webkit.org/show_bug.cgi?id=81516
beidson@apple.com [Mon, 19 Mar 2012 23:20:56 +0000 (23:20 +0000)]
<rdar://problem/10848575> and https://bugs.webkit.org/show_bug.cgi?id=81516
REGRESSION (r107435) URLs copied from WebKit apps aren't in the right pasteboard format

Reviewed by Enrica Casucci.

Source/WebCore:

r107435 started saving/restoring URLs as strings.
We need to go back to setting the URL on the pasteboard using AppKit URL pasteboard APIs.

WebKit API test: ContextMenuCanCopyURL
No WebKit2 API test possible at this time.

* platform/mac/PlatformPasteboardMac.mm:
(WebCore::PlatformPasteboard::setURL):

Tools:

Bring up a context menu on a link, copy the link, then verify the pasteboard contents
are in the correct format.

* TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
* TestWebKitAPI/Tests/mac/ContextMenuCanCopyURL.html: Added.
* TestWebKitAPI/Tests/mac/ContextMenuCanCopyURL.mm: Added.
(-[ContextMenuCanCopyURLDelegate webView:didFinishLoadForFrame:]):
(TestWebKitAPI::contextMenuCopyLink):
(TestWebKitAPI::TEST):

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

8 years agoMake the TileCache work with HiDPI again
andersca@apple.com [Mon, 19 Mar 2012 23:11:15 +0000 (23:11 +0000)]
Make the TileCache work with HiDPI again
https://bugs.webkit.org/show_bug.cgi?id=81569
<rdar://problem/11031542>

Reviewed by Sam Weinig.

Set the contentsScale of the individual tile layers to be the same as the device scale factor.
Also, take into account the fact that the value passed to TileCache::setScale is the product of the
page scale factor and the device scale factor, so divide it by the device scale factor before storing
it in m_scale.

* platform/graphics/ca/GraphicsLayerCA.cpp:
(WebCore::GraphicsLayerCA::platformCALayerDeviceScaleFactor):
(WebCore):
* platform/graphics/ca/GraphicsLayerCA.h:
(GraphicsLayerCA):
* platform/graphics/ca/PlatformCALayerClient.h:
(PlatformCALayerClient):
* platform/graphics/ca/mac/TileCache.h:
(TileCache):
* platform/graphics/ca/mac/TileCache.mm:
(WebCore::TileCache::TileCache):
(WebCore::TileCache::setScale):
(WebCore::TileCache::createTileLayer):

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

8 years agoShadow DOM is not enabled on Mac, so skip the whole directory instead of skipping...
jberlin@webkit.org [Mon, 19 Mar 2012 23:02:32 +0000 (23:02 +0000)]
Shadow DOM is not enabled on Mac, so skip the whole directory instead of skipping the tests
one by one.

* platform/mac/Skipped:

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

8 years agoGC should not attempt to clear LLInt instruction inline caches for code blocks that...
fpizlo@apple.com [Mon, 19 Mar 2012 23:01:57 +0000 (23:01 +0000)]
GC should not attempt to clear LLInt instruction inline caches for code blocks that are in
the process of being generated
https://bugs.webkit.org/show_bug.cgi?id=81565

Reviewed by Oliver Hunt.

* bytecode/CodeBlock.cpp:
(JSC::CodeBlock::finalizeUnconditionally):

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

8 years agoCrash due to layer tree information not updated when moving run-in children.
inferno@chromium.org [Mon, 19 Mar 2012 22:53:57 +0000 (22:53 +0000)]
Crash due to layer tree information not updated when moving run-in children.
https://bugs.webkit.org/show_bug.cgi?id=81265

Reviewed by Julien Chaffraix.

Source/WebCore:

We need to do a full removal as the run-in child is getting inserted into
the neighbouring block and |blockRunIn| is going to be destroyed later
in the function.

Test: fast/runin/run-in-layer-not-removed-crash.html

* rendering/RenderBlock.cpp:
(WebCore::RenderBlock::handleRunInChild):

LayoutTests:

* fast/runin/run-in-layer-not-removed-crash-expected.txt: Added.
* fast/runin/run-in-layer-not-removed-crash.html: Added.

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

8 years agoMake the selected item in the accordion a link to the flakiness dashboard
ojan@chromium.org [Mon, 19 Mar 2012 22:52:42 +0000 (22:52 +0000)]
Make the selected item in the accordion a link to the flakiness dashboard
https://bugs.webkit.org/show_bug.cgi?id=81571

Reviewed by Dimitri Glazkov.

Also, make it so that you can select the text of the link, instead of the current behavior
of acting as if you had clicked on the accordion header.

* BuildSlaveSupport/build.webkit.org-config/public_html/TestFailures/scripts/ui/results.js:
* BuildSlaveSupport/build.webkit.org-config/public_html/TestFailures/styles/results.css:

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

8 years agoNRWT runs some tests that are skipped with -i command line option
dpranke@chromium.org [Mon, 19 Mar 2012 22:42:53 +0000 (22:42 +0000)]
NRWT runs some tests that are skipped with -i command line option
https://bugs.webkit.org/show_bug.cgi?id=81535

Reviewed by Ojan Vafai.

This change modifies the interaction of Skipped files and
test_expectations files so that entries in Skipped files (and
the -i command line) override *everything* in the expectations
file.

Specifically, a directory in a Skipped file will cause all of
the tests in the dir to be skipped even if individual tests in
the dir are listed in the test_expectations.txt.

Skipped files also override anything in an overrides files.

This seems to make more intuitive sense, since if you list
something in the Skips file (and even more specify it on the
command line) you probably want it to be universally applied.

Theoretically we could add more precedence levels and have full
paths in an expectations file override dirs in a Skipped file
(but not the command line), but I don't know yet that that level
of complexity is justified.

* Scripts/webkitpy/layout_tests/models/test_expectations.py:
(TestExpectations.__init__):
(TestExpectations._add_skipped_tests):
(TestExpectations._add_test):
(TestExpectations._add_expectations):
(TestExpectations._add_expectation_line):
(TestExpectations._already_seen_better_match):
* Scripts/webkitpy/layout_tests/models/test_expectations_unittest.py:
(test_more_specific_override_resets_skip):
(SkippedTests):
(SkippedTests.get_exp):
(SkippedTests.assert_exp):
(SkippedTests.test_skipped_tests_work):
(SkippedTests.test_duplicate_skipped_test_fails_lint):
(SkippedTests.test_skipped_file_overrides_expectations):
(SkippedTests.test_skipped_dir_overrides_expectations):
(SkippedTests.test_skipped_file_overrides_overrides):
(SkippedTests.test_skipped_dir_overrides_overrides):

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

8 years ago[chromium] Remove misleading double-if
commit-queue@webkit.org [Mon, 19 Mar 2012 22:27:24 +0000 (22:27 +0000)]
[chromium] Remove misleading double-if
https://bugs.webkit.org/show_bug.cgi?id=81557

Patch by Dana Jansens <danakj@chromium.org> on 2012-03-19
Reviewed by Adrienne Walker.

Simple code cleanup, no functionality change.

* platform/graphics/chromium/TiledLayerChromium.cpp:
(WebCore::TiledLayerChromium::prepareToUpdateTiles):

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

8 years ago[BlackBerry] speed up text selection for large selections
commit-queue@webkit.org [Mon, 19 Mar 2012 22:17:27 +0000 (22:17 +0000)]
[BlackBerry] speed up text selection for large selections
https://bugs.webkit.org/show_bug.cgi?id=81536

When selecting large disjoint areas of text the cost
of calculating the IntRectRegion union becomes very
expensive. Simply placing all of the text quads into
the IntRectRegion is faster despite the larger memory
footprint and the additional calculations at render
time.

Patch by Tyler Abbott <tabbott@rim.com> on 2012-03-19
Reviewed by Rob Buis.

* WebKitSupport/SelectionHandler.cpp:
(BlackBerry::WebKit::SelectionHandler::getConsolidatedRegionOfTextQuadsForSelection):

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

8 years agoFix WTF header include discipline in Chromium WebKit
eric@webkit.org [Mon, 19 Mar 2012 22:16:48 +0000 (22:16 +0000)]
Fix WTF header include discipline in Chromium WebKit
https://bugs.webkit.org/show_bug.cgi?id=81281

Reviewed by James Robinson.

Source/JavaScriptCore:

* JavaScriptCore.gyp/JavaScriptCore.gyp:
* wtf/unicode/icu/CollatorICU.cpp:

Source/WebCore:

I also fixed some bad include dicipline for other ports
as well.  Those changes are not yet necessary for those ports
to keep building, but soon should be as those authors
remove all the extra WTF includes from WebCore and other non-WTF projects.

* Modules/indexeddb/IDBLevelDBBackingStore.cpp:
* bindings/scripts/test/CPP/WebDOMFloat64Array.cpp:
* bindings/scripts/test/GObject/WebKitDOMFloat64Array.cpp:
* bindings/scripts/test/GObject/WebKitDOMFloat64ArrayPrivate.h:
* bindings/scripts/test/ObjC/DOMFloat64Array.mm:
* bindings/v8/NPV8Object.cpp:
* bindings/v8/SerializedScriptValue.cpp:
* bindings/v8/SerializedScriptValue.h:
* bindings/v8/V8Binding.cpp:
* bindings/v8/V8Binding.h:
* bindings/v8/V8DOMWrapper.cpp:
* bindings/v8/V8Utilities.cpp:
* bindings/v8/custom/V8ArrayBufferCustom.cpp:
* bindings/v8/custom/V8ArrayBufferViewCustom.h:
* bindings/v8/custom/V8AudioContextCustom.cpp:
* bindings/v8/custom/V8DOMWindowCustom.cpp:
* bindings/v8/custom/V8DedicatedWorkerContextCustom.cpp:
* bindings/v8/custom/V8Float32ArrayCustom.cpp:
* bindings/v8/custom/V8Float64ArrayCustom.cpp:
* bindings/v8/custom/V8Int16ArrayCustom.cpp:
* bindings/v8/custom/V8Int32ArrayCustom.cpp:
* bindings/v8/custom/V8Int8ArrayCustom.cpp:
* bindings/v8/custom/V8MessagePortCustom.cpp:
* bindings/v8/custom/V8Uint16ArrayCustom.cpp:
* bindings/v8/custom/V8Uint32ArrayCustom.cpp:
* bindings/v8/custom/V8Uint8ArrayCustom.cpp:
* bindings/v8/custom/V8Uint8ClampedArrayCustom.cpp:
* bindings/v8/custom/V8WorkerCustom.cpp:
* bindings/v8/custom/V8XMLHttpRequestCustom.cpp:
* bridge/qt/qt_runtime.cpp:
* editing/gtk/FrameSelectionGtk.cpp:
* loader/archive/mhtml/MHTMLArchive.cpp:
* platform/ScrollAnimatorNone.cpp:
* platform/blackberry/CookieMap.h:
* platform/blackberry/CookieParser.h:
* platform/blackberry/SSLKeyGeneratorBlackBerry.cpp:
* platform/chromium/DragImageChromiumSkia.cpp:
* platform/chromium/PlatformCursor.h:
* platform/chromium/PlatformSupport.h:
* platform/chromium/PopupMenuPrivate.h:
* platform/chromium/TraceEvent.h:
* platform/chromium/WidgetChromium.cpp:
* platform/efl/RefPtrEfl.h:
* platform/graphics/cairo/RefPtrCairo.h:
* platform/graphics/chromium/RateLimiter.h:
* platform/graphics/chromium/TiledLayerChromium.cpp:
* platform/graphics/efl/IconEfl.cpp:
* platform/graphics/gstreamer/GStreamerGWorld.h:
* platform/graphics/gtk/IconGtk.cpp:
* platform/graphics/skia/PlatformContextSkia.h:
* platform/graphics/texmap/TextureMapperBackingStore.h:
* platform/graphics/texmap/TextureMapperLayer.cpp:
* platform/graphics/wx/TransformationMatrixWx.cpp:
* platform/gtk/PlatformMouseEventGtk.cpp:
* platform/leveldb/LevelDBSlice.h:
* platform/mediastream/MediaStreamCenter.cpp:
* platform/network/soup/SocketStreamHandleSoup.cpp:
* platform/network/win/ResourceHandleWin.cpp:
* platform/qt/RenderThemeQtMobile.cpp:
* platform/wx/MouseEventWx.cpp:
* platform/wx/wxcode/win/fontprops.cpp:

Source/WebKit/chromium:

* src/CompositionUnderlineBuilder.h:
* src/CompositionUnderlineVectorBuilder.h:
* src/FrameLoaderClientImpl.cpp:
* src/WebArrayBuffer.cpp:
* src/WebArrayBufferView.cpp:
* src/WebBindings.cpp:
* src/WebColorName.cpp:
* src/WebGeolocationClientMock.cpp:
* src/WebPageSerializer.cpp:
* src/WebSocketImpl.cpp:
* src/WebViewImpl.cpp:
* tests/FrameTestHelpers.cpp:

Tools:

* DumpRenderTree/DumpRenderTree.gyp/DumpRenderTree.gyp:
* Scripts/update-webkit-chromium: Made it possible to run this from a directory other than the root.

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

8 years ago[BlackBerry] Add new layout test for text match marker
commit-queue@webkit.org [Mon, 19 Mar 2012 22:03:19 +0000 (22:03 +0000)]
[BlackBerry] Add new layout test for text match marker
https://bugs.webkit.org/show_bug.cgi?id=81531

Tools:

Make the LayoutTestControllerBlackBerry::findString to test the
BlackBerry port implementation.

Patch by Andy Chen <andchen@rim.com> on 2012-03-19
Reviewed by Rob Buis.

* DumpRenderTree/blackberry/LayoutTestControllerBlackBerry.cpp:
(LayoutTestController::findString):

LayoutTests:

Patch by Andy Chen <andchen@rim.com> on 2012-03-19
Reviewed by Rob Buis.

Add a new layout test for text match marker for BlackBerry port

* platform/blackberry/editing/text-iterator/findString-markers-expected.txt: Added.
* platform/blackberry/editing/text-iterator/findString-markers.html: Added.

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

8 years agor109204 updated the chromium expected results for
jberlin@webkit.org [Mon, 19 Mar 2012 21:54:37 +0000 (21:54 +0000)]
r109204 updated the chromium expected results for
inspector/timeline/timeline-animation-frame.html and timeline-paint.html, but did not update
the cross-platform results.

Update the cross-platform results.

* inspector/timeline/timeline-animation-frame-expected.txt:
* inspector/timeline/timeline-paint-expected.txt:

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

8 years agoDFG NodeUse should be called Edge and NodeReferenceBlob should be called AdjacencyList
fpizlo@apple.com [Mon, 19 Mar 2012 21:44:23 +0000 (21:44 +0000)]
DFG NodeUse should be called Edge and NodeReferenceBlob should be called AdjacencyList
https://bugs.webkit.org/show_bug.cgi?id=81556

Rubber stamped by Gavin Barraclough.

* GNUmakefile.list.am:
* JavaScriptCore.xcodeproj/project.pbxproj:
* dfg/DFGAbstractState.h:
(JSC::DFG::AbstractState::forNode):
* dfg/DFGAdjacencyList.h: Copied from Source/JavaScriptCore/dfg/DFGNodeReferenceBlob.h.
(JSC::DFG::AdjacencyList::AdjacencyList):
(JSC::DFG::AdjacencyList::child):
(JSC::DFG::AdjacencyList::setChild):
(JSC::DFG::AdjacencyList::child1):
(JSC::DFG::AdjacencyList::child2):
(JSC::DFG::AdjacencyList::child3):
(JSC::DFG::AdjacencyList::setChild1):
(JSC::DFG::AdjacencyList::setChild2):
(JSC::DFG::AdjacencyList::setChild3):
(JSC::DFG::AdjacencyList::child1Unchecked):
(JSC::DFG::AdjacencyList::initialize):
(AdjacencyList):
* dfg/DFGByteCodeParser.cpp:
(JSC::DFG::ByteCodeParser::addVarArgChild):
(JSC::DFG::ByteCodeParser::processPhiStack):
* dfg/DFGCSEPhase.cpp:
(JSC::DFG::CSEPhase::canonicalize):
(JSC::DFG::CSEPhase::performSubstitution):
* dfg/DFGEdge.h: Copied from Source/JavaScriptCore/dfg/DFGNodeUse.h.
(DFG):
(JSC::DFG::Edge::Edge):
(JSC::DFG::Edge::operator==):
(JSC::DFG::Edge::operator!=):
(Edge):
(JSC::DFG::operator==):
(JSC::DFG::operator!=):
* dfg/DFGGraph.h:
(JSC::DFG::Graph::operator[]):
(JSC::DFG::Graph::at):
(JSC::DFG::Graph::ref):
(JSC::DFG::Graph::deref):
(JSC::DFG::Graph::clearAndDerefChild1):
(JSC::DFG::Graph::clearAndDerefChild2):
(JSC::DFG::Graph::clearAndDerefChild3):
(Graph):
* dfg/DFGJITCompiler.h:
(JSC::DFG::JITCompiler::getPrediction):
* dfg/DFGNode.h:
(JSC::DFG::Node::Node):
(JSC::DFG::Node::child1):
(JSC::DFG::Node::child1Unchecked):
(JSC::DFG::Node::child2):
(JSC::DFG::Node::child3):
(Node):
* dfg/DFGNodeFlags.cpp:
(JSC::DFG::arithNodeFlagsAsString):
* dfg/DFGNodeFlags.h:
(DFG):
(JSC::DFG::nodeUsedAsNumber):
* dfg/DFGNodeReferenceBlob.h: Removed.
* dfg/DFGNodeUse.h: Removed.
* dfg/DFGPredictionPropagationPhase.cpp:
(JSC::DFG::PredictionPropagationPhase::propagate):
(JSC::DFG::PredictionPropagationPhase::mergeDefaultArithFlags):
(JSC::DFG::PredictionPropagationPhase::vote):
(JSC::DFG::PredictionPropagationPhase::fixupNode):
* dfg/DFGScoreBoard.h:
(JSC::DFG::ScoreBoard::use):
* dfg/DFGSpeculativeJIT.cpp:
(JSC::DFG::SpeculativeJIT::useChildren):
(JSC::DFG::SpeculativeJIT::writeBarrier):
(JSC::DFG::SpeculativeJIT::compilePutByValForByteArray):
(JSC::DFG::SpeculativeJIT::compilePutByValForIntTypedArray):
(JSC::DFG::SpeculativeJIT::compilePutByValForFloatTypedArray):
(JSC::DFG::SpeculativeJIT::compileStrictEqForConstant):
* dfg/DFGSpeculativeJIT.h:
(JSC::DFG::SpeculativeJIT::at):
(JSC::DFG::SpeculativeJIT::canReuse):
(JSC::DFG::SpeculativeJIT::use):
(SpeculativeJIT):
(JSC::DFG::SpeculativeJIT::speculationCheck):
(JSC::DFG::SpeculativeJIT::terminateSpeculativeExecution):
(JSC::DFG::IntegerOperand::IntegerOperand):
(JSC::DFG::DoubleOperand::DoubleOperand):
(JSC::DFG::JSValueOperand::JSValueOperand):
(JSC::DFG::StorageOperand::StorageOperand):
(JSC::DFG::SpeculateIntegerOperand::SpeculateIntegerOperand):
(JSC::DFG::SpeculateStrictInt32Operand::SpeculateStrictInt32Operand):
(JSC::DFG::SpeculateDoubleOperand::SpeculateDoubleOperand):
(JSC::DFG::SpeculateCellOperand::SpeculateCellOperand):
(JSC::DFG::SpeculateBooleanOperand::SpeculateBooleanOperand):
* dfg/DFGSpeculativeJIT32_64.cpp:
(JSC::DFG::SpeculativeJIT::cachedPutById):
(JSC::DFG::SpeculativeJIT::nonSpeculativeNonPeepholeCompareNull):
(JSC::DFG::SpeculativeJIT::nonSpeculativePeepholeBranchNull):
(JSC::DFG::SpeculativeJIT::nonSpeculativeCompareNull):
(JSC::DFG::SpeculativeJIT::emitCall):
(JSC::DFG::SpeculativeJIT::compileObjectOrOtherLogicalNot):
(JSC::DFG::SpeculativeJIT::emitObjectOrOtherBranch):
* dfg/DFGSpeculativeJIT64.cpp:
(JSC::DFG::SpeculativeJIT::cachedPutById):
(JSC::DFG::SpeculativeJIT::nonSpeculativeNonPeepholeCompareNull):
(JSC::DFG::SpeculativeJIT::nonSpeculativePeepholeBranchNull):
(JSC::DFG::SpeculativeJIT::nonSpeculativeCompareNull):
(JSC::DFG::SpeculativeJIT::emitCall):
(JSC::DFG::SpeculativeJIT::compileObjectOrOtherLogicalNot):
(JSC::DFG::SpeculativeJIT::emitObjectOrOtherBranch):

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

8 years ago[chromium] Invalidate/update evicted tiles during commit
commit-queue@webkit.org [Mon, 19 Mar 2012 21:37:00 +0000 (21:37 +0000)]
[chromium] Invalidate/update evicted tiles during commit
https://bugs.webkit.org/show_bug.cgi?id=81529

Patch by Dana Jansens <danakj@chromium.org> on 2012-03-19
Reviewed by Adrienne Walker.

Source/WebCore:

A previous change caused a regression where evicted (invalid) tiles
were no longer marked as dirty and updated. The regress was caused
in https://bugs.webkit.org/show_bug.cgi?id=81175 and is fixed here.

Unit test: TiledLayerChromiumTest.pushDeletedTiles

* platform/graphics/chromium/TiledLayerChromium.cpp:
(WebCore::UpdatableTile::copyAndClearDirty):
(WebCore::TiledLayerChromium::prepareToUpdateTiles):

Source/WebKit/chromium:

* tests/TiledLayerChromiumTest.cpp:
(WTF::TEST):
(WTF):

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

8 years agoRemove PLATFORM(TORCHMOBILE) ifdef from MainResourceLoader.cpp
abarth@webkit.org [Mon, 19 Mar 2012 21:35:16 +0000 (21:35 +0000)]
Remove PLATFORM(TORCHMOBILE) ifdef from MainResourceLoader.cpp
https://bugs.webkit.org/show_bug.cgi?id=81549

Reviewed by Eric Seidel.

This appears to be the only PLATFORM(TORCHMOBILE) ifdef in WebCore.  I
don't believe this ifdef is needed anymore.

* loader/MainResourceLoader.cpp:
(WebCore::shouldLoadAsEmptyDocument):
(WebCore):

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

8 years agoObject.freeze broken on latest Nightly
barraclough@apple.com [Mon, 19 Mar 2012 21:34:25 +0000 (21:34 +0000)]
Object.freeze broken on latest Nightly
https://bugs.webkit.org/show_bug.cgi?id=80577

Reviewed by Oliver Hunt.

Source/JavaScriptCore:

* runtime/Arguments.cpp:
(JSC::Arguments::defineOwnProperty):
    - defineOwnProperty was checking for correct behaviour, provided that length/callee hadn't
    been overrridden. instead, just reify length/callee & rely on JSObject::defineOwnProperty.
* runtime/JSFunction.cpp:
(JSC::JSFunction::defineOwnProperty):
    - for arguments/caller/length properties, defineOwnProperty was incorrectly asserting that
    the object must be extensible; this is incorrect since these properties should already exist
    on the object. In addition, it was asserting that the arguments/caller values must match the
    corresponding magic data properties, but for strict mode function this is incorrect. Instead,
    just reify the arguments/caller accessor & defer to JSObject::defineOwnProperty.

LayoutTests:

* fast/js/preventExtensions-expected.txt:
* fast/js/script-tests/preventExtensions.js:
(shouldBeTrue):
(shouldBeFalse.shouldBeFalse.preventExtensionsFreezeIsFrozen):
    - Added test cases.

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

8 years agoUnreviewed, rolling out r111207.
commit-queue@webkit.org [Mon, 19 Mar 2012 21:30:47 +0000 (21:30 +0000)]
Unreviewed, rolling out r111207.
http://trac.webkit.org/changeset/111207
https://bugs.webkit.org/show_bug.cgi?id=81561

Causing chromium unit test failure (Requested by reveman on
#webkit).

Patch by Sheriff Bot <webkit.review.bot@gmail.com> on 2012-03-19

Source/Platform:

* chromium/public/WebGraphicsContext3D.h:

Source/WebCore:

* platform/graphics/chromium/Extensions3DChromium.h:
(Extensions3DChromium):

Source/WebKit/chromium:

* src/Extensions3DChromium.cpp:
* src/GraphicsContext3DChromium.cpp:
(WebCore):
* src/GraphicsContext3DPrivate.h:
(GraphicsContext3DPrivate):
* tests/FakeWebGraphicsContext3D.h:

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

8 years ago[chromium] MediaStream API (JSEP): Introducing WebMediaHints and WebIceOptions
tommyw@google.com [Mon, 19 Mar 2012 21:27:06 +0000 (21:27 +0000)]
[chromium] MediaStream API (JSEP): Introducing WebMediaHints and WebIceOptions
https://bugs.webkit.org/show_bug.cgi?id=81341

Reviewed by Darin Fisher.

Simple WebKit representations of the WebCore/platform versions.

* WebKit.gyp:
* public/platform/WebICEOptions.h: Added.
(WebCore):
(WebKit):
(WebICEOptions):
(WebKit::WebICEOptions::WebICEOptions):
(WebKit::WebICEOptions::~WebICEOptions):
(WebKit::WebICEOptions::operator=):
(WebKit::WebICEOptions::isNull):
* public/platform/WebMediaHints.h: Added.
(WebCore):
(WebKit):
(WebMediaHints):
(WebKit::WebMediaHints::WebMediaHints):
(WebKit::WebMediaHints::~WebMediaHints):
(WebKit::WebMediaHints::operator=):
(WebKit::WebMediaHints::isNull):
* src/WebICEOptions.cpp: Added.
(WebKit):
(WebKit::WebICEOptions::WebICEOptions):
(WebKit::WebICEOptions::assign):
(WebKit::WebICEOptions::reset):
(WebKit::WebICEOptions::candidateTypeToUse):
* src/WebMediaHints.cpp: Added.
(WebKit):
(WebKit::WebMediaHints::WebMediaHints):
(WebKit::WebMediaHints::assign):
(WebKit::WebMediaHints::reset):
(WebKit::WebMediaHints::audio):
(WebKit::WebMediaHints::video):

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

8 years agoNPRuntime support for out-of-process plug-ins.
jberlin@webkit.org [Mon, 19 Mar 2012 21:26:19 +0000 (21:26 +0000)]
NPRuntime support for out-of-process plug-ins.
https://bugs.webkit.org/show_bug.cgi?id=48346

This issue was marked as fixed on 2011-01-11, but the tests that required that support were
never taken off the WK2 Skipped list.

Update the WK2 Skipped list to not skip the passing tests, and move the ones that still fail
to a separate section of the list.

* platform/wk2/Skipped:

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