[Chromium] Should call frameDetached() in WebPagePopupImpl::close()
https://bugs.webkit.org/show_bug.cgi?id=88754

Reviewed by Adam Barth.

* src/WebPagePopupImpl.cpp:
(WebKit::WebPagePopupImpl::close): Calls FrameLoader::frameDetached().


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@119974 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Add QML api for setting device width and height
https://bugs.webkit.org/show_bug.cgi?id=88777

Reviewed by Simon Hausmann.

Source/WebCore:

Change the default values for deviceWidth/Height to be 0 (unset). The
original values were introduced by Qt and 0 makes it possible to
detect if a value has never been set and therefore fall back.

Only Qt depended on the former values.

* page/Settings.cpp:
(WebCore::Settings::Settings):

Source/WebKit2:

Add the new API and set the default values to 0 (unset). The
current values were introduced by Qt and only Qt depends on them.

* Shared/WebPreferencesStore.h:
(WebKit):
* UIProcess/API/qt/qquickwebview.cpp:
(QQuickWebViewExperimental::deviceWidth):
(QQuickWebViewExperimental::setDeviceWidth):
(QQuickWebViewExperimental::deviceHeight):
(QQuickWebViewExperimental::setDeviceHeight):
* UIProcess/API/qt/qquickwebview_p.h:
* UIProcess/qt/QtViewportHandler.cpp:
(WebKit::QtViewportHandler::viewportItemSizeChanged):
* WebProcess/WebPage/WebPage.cpp:
(WebKit::WebPage::sendViewportAttributesChanged):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@119975 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Qt] Gardening after r119962. Four inspector/debugger tests still fail after they have been re-enabled.
https://bugs.webkit.org/show_bug.cgi?id=43332

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

* platform/qt/Skipped:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@119976 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore: [Qt] Add config tests for WEBP imagedecoder library, modify HAVE(decoderlibrary) to USE(...)$
https://bugs.webkit.org/show_bug.cgi?id=87841

Reviewed by Simon Hausmann.

No new tests were needed.

* Target.pri:
* WebCore.pri:
* platform/image-decoders/ImageDecoder.cpp:
(WebCore::ImageDecoder::create):

Tools: [Qt] Add config tests for WEBP imagedecoder library, modify HAVE(decoderlibrary) to USE(...)
https://bugs.webkit.org/show_bug.cgi?id=87841

Reviewed by Simon Hausmann.

* qmake/config.tests/libwebp/libwebp.cpp: Added.
(main):
* qmake/config.tests/libwebp/libwebp.pro: Added.
* qmake/sync.profile:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@119977 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Reverted r119940 because it caused multiple media tests to fail on Lion.

Source/WebCore: 

* html/HTMLMediaElement.cpp:
(WebCore::HTMLMediaElement::prepareForLoad):
(WebCore):
(WebCore::HTMLMediaElement::userCancelledLoad):
* html/HTMLMediaElement.h:
(HTMLMediaElement):
* platform/graphics/mac/MediaPlayerPrivateQTKit.mm:
(WebCore::MediaPlayerPrivateQTKit::commonMovieAttributes):

LayoutTests: 

* http/tests/media/video-src-invalid-error-expected.txt: Removed.
* http/tests/media/video-src-invalid-error.html: Removed.



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@119978 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Chromium] Unreviewed: Rebaselines for svg/as-background-image tests on Windows.

* platform/chromium-linux/svg/as-background-image/svg-as-background-2-expected.png: Removed.
* platform/chromium-win/svg/as-background-image/svg-as-background-2-expected.png:
* platform/chromium-win/svg/as-background-image/svg-as-background-4-expected.png:
* platform/chromium-win/svg/as-background-image/svg-as-background-5-expected.png:
* platform/chromium-win/svg/as-background-image/svg-as-background-with-relative-size-expected.png:
* platform/chromium-win/svg/as-background-image/svg-background-partial-redraw-expected.png:
* platform/chromium-win/svg/as-image/animated-svg-as-image-no-fixed-intrinsic-size-expected.png:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@119979 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Chromium] Unreviewed: Rebaseline more SVG tests on Windows.

* platform/chromium-linux-x86/svg/batik/filters/filterRegions-expected.png: Removed.
* platform/chromium-win-vista/svg/batik/paints/gradientLimit-expected.png: Added.
* platform/chromium-win-xp/svg/batik/paints/patternPreserveAspectRatioA-expected.png: Added.
* platform/chromium-win-xp/svg/batik/text/smallFonts-expected.png: Added.
* platform/chromium-win/svg/W3C-SVG-1.1/fonts-elem-04-b-expected.png:
* platform/chromium-win/svg/W3C-SVG-1.1/fonts-elem-05-t-expected.png:
* platform/chromium-win/svg/W3C-SVG-1.1/fonts-elem-06-t-expected.png:
* platform/chromium-win/svg/W3C-SVG-1.1/fonts-elem-07-b-expected.png:
* platform/chromium-win/svg/W3C-SVG-1.1/fonts-glyph-02-t-expected.png:
* platform/chromium-win/svg/W3C-SVG-1.1/fonts-glyph-03-t-expected.png:
* platform/chromium-win/svg/W3C-SVG-1.1/fonts-glyph-04-t-expected.png:
* platform/chromium-win/svg/W3C-SVG-1.1/fonts-kern-01-t-expected.png:
* platform/chromium-win/svg/W3C-SVG-1.1/interact-cursor-01-f-expected.png:
* platform/chromium-win/svg/W3C-SVG-1.1/interact-order-01-b-expected.png:
* platform/chromium-win/svg/W3C-SVG-1.1/interact-order-02-b-expected.png:
* platform/chromium-win/svg/W3C-SVG-1.1/interact-zoom-01-t-expected.png:
* platform/chromium-win/svg/W3C-SVG-1.1/linking-a-01-b-expected.png:
* platform/chromium-win/svg/W3C-SVG-1.1/linking-a-02-b-expected.png:
* platform/chromium-win/svg/as-image/img-preserveAspectRatio-support-2-expected.png:
* platform/chromium-win/svg/as-image/same-image-two-instances-expected.png:
* platform/chromium-win/svg/as-image/svg-as-relative-image-expected.png:
* platform/chromium-win/svg/as-image/svg-image-change-content-size-expected.png:
* platform/chromium-win/svg/batik/filters/feTile-expected.png:
* platform/chromium-win/svg/batik/filters/filterRegions-expected.png:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@119980 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unreviewed. Fix make distcheck issues.

.:

* GNUmakefile.am: Initialize jscore nosource variables.

Source/JavaScriptCore:

* GNUmakefile.list.am: Remove non existent header file.

Source/WebCore:

* GNUmakefile.am: Add idl files in editing dir to EXTRA_DIST.
* GNUmakefile.list.am: Add missing header file.

Source/WTF:

* GNUmakefile.list.am: Add missing header file.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@119981 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[chromium] Free texture from CCIOSurfaceLayerImpl when it is destroyed
https://bugs.webkit.org/show_bug.cgi?id=88371

Reviewed by James Robinson.

Source/WebCore:

Unit test: CCLayerTreeHostImplTest.layersFreeTextures

* platform/graphics/chromium/cc/CCIOSurfaceLayerImpl.cpp:
(WebCore::CCIOSurfaceLayerImpl::~CCIOSurfaceLayerImpl):
(WebCore::CCIOSurfaceLayerImpl::willDraw):

Source/WebKit/chromium:

* tests/CCLayerTreeHostImplTest.cpp:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@119982 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Make media (<video> and <audio>) slide draggable again https://bugs.webkit.org/show_bug.cgi?id=88742 PR #158199

Reviewed by George Staikos.
Patch by Antonio Gomes <agomes@rim.com>

First check if the element is a range type then gets its
shadow DOM ancestor.

* WebKitSupport/TouchEventHandler.cpp:
(BlackBerry::WebKit::shouldConvertTouchToMouse):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@119983 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Add css3-images image-resolution (dppx only)
https://bugs.webkit.org/show_bug.cgi?id=85332

Patch by David Barr <davidbarr@chromium.org> on 2012-06-11
Reviewed by Tony Chang.

The css3-images module is at candidate recommendation.
http://www.w3.org/TR/2012/CR-css3-images-20120417/#image-resolution

Source/WebCore:

Test: fast/css/image-resolution.html

* css/CSSComputedStyleDeclaration.cpp:
(WebCore):
(WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
* css/CSSGrammar.y:
* css/CSSParser.cpp:
(WebCore::CSSParser::validUnit):
(WebCore::CSSParser::createPrimitiveNumericValue):
(WebCore::unitFromString):
(WebCore::CSSParser::parseValidPrimitive):
(WebCore::CSSParser::parseValue):
(WebCore):
(WebCore::CSSParser::parseImageResolution):
(WebCore::CSSParser::detectNumberToken):
* css/CSSParser.h:
* css/CSSPrimitiveValue.cpp:
(WebCore::isValidCSSUnitTypeForDoubleConversion):
(WebCore::unitCategory):
(WebCore::CSSPrimitiveValue::canonicalUnitTypeForCategory):
(WebCore::CSSPrimitiveValue::customCssText):
(WebCore::CSSPrimitiveValue::cloneForCSSOM):
* css/CSSPrimitiveValue.h:
* css/CSSProperty.cpp:
(WebCore::CSSProperty::isInheritedProperty):
* css/CSSPropertyNames.in:
* css/StyleBuilder.cpp:
(WebCore):
(ApplyPropertyImageResolution):
(WebCore::ApplyPropertyImageResolution::applyInheritValue):
(WebCore::ApplyPropertyImageResolution::applyInitialValue):
(WebCore::ApplyPropertyImageResolution::applyValue):
(WebCore::ApplyPropertyImageResolution::createHandler):
(WebCore::StyleBuilder::StyleBuilder):
* css/StyleResolver.cpp:
(WebCore::StyleResolver::collectMatchingRulesForList):
* rendering/RenderImage.cpp:
(WebCore::RenderImage::styleDidChange):
(WebCore::RenderImage::imageDimensionsChanged):
* rendering/style/RenderStyle.cpp:
(WebCore::RenderStyle::diff):
* rendering/style/RenderStyle.h:
* rendering/style/StyleRareInheritedData.cpp:
(WebCore::StyleRareInheritedData::StyleRareInheritedData):
(WebCore::StyleRareInheritedData::operator==):
* rendering/style/StyleRareInheritedData.h:
(StyleRareInheritedData):

LayoutTests:

* fast/css/image-resolution/image-resolution-expected.txt: Added.
* fast/css/image-resolution/image-resolution.html: Added.
* platform/chromium/TestExpectations: Skip tests until image-resolution implementation lands.
* platform/efl/TestExpectations: Skip tests until image-resolution implementation lands.
* platform/gtk/TestExpectations: Skip tests until image-resolution implementation lands.
* platform/mac/TestExpectations: Skip tests until image-resolution implementation lands.
* platform/qt/TestExpectations: Skip tests until image-resolution implementation lands.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@119984 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Use testRunner instead of layoutTestController in animations tests
https://bugs.webkit.org/show_bug.cgi?id=88757

Reviewed by Tony Chang.

* animations/3d/change-transform-in-end-event.html:
* animations/3d/replace-filling-transform.html:
* animations/3d/state-at-end-event-transform.html:
* animations/3d/transform-origin-vs-functions.html:
* animations/animation-add-events-in-handler.html:
* animations/animation-border-overflow.html:
* animations/animation-controller-drt-api.html:
* animations/animation-direction-reverse-fill-mode-hardware.html:
* animations/animation-direction-reverse-fill-mode.html:
* animations/animation-drt-api-multiple-keyframes.html:
* animations/animation-drt-api.html:
* animations/animation-end-event-destroy-renderer.html:
* animations/animation-end-event-short-iterations.html:
* animations/animation-hit-test-transform.html:
* animations/animation-hit-test.html:
* animations/animation-iteration-event-destroy-renderer.html:
* animations/animation-matrix-negative-scale-unmatrix.html:
* animations/animation-on-inline-crash.html:
* animations/animation-shorthand-overriding.html:
* animations/animation-shorthand-removed.html:
* animations/animation-shorthand.html:
* animations/animation-start-event-destroy-renderer.html:
* animations/animation-welcome-safari.html:
* animations/body-removal-crash.html:
* animations/change-keyframes-name.html:
* animations/change-transform-style-during-animation.html:
* animations/combo-transform-translate+scale.html:
* animations/empty-keyframes.html:
* animations/fill-mode-forwards.html:
* animations/fill-mode-iteration-count-non-integer.html:
* animations/fill-mode-missing-from-to-keyframes.html:
* animations/fill-mode-multiple-keyframes.html:
* animations/fill-mode-removed.html:
* animations/fill-mode-reverse.html:
* animations/fill-mode-transform.html:
* animations/fill-mode.html:
* animations/fill-unset-properties.html:
* animations/font-size-using-ems.html-disabled:
* animations/import-crash.html:
* animations/keyframe-timing-functions-transform.html:
* animations/keyframe-timing-functions2.html:
* animations/keyframes-iteration-count-non-integer.html:
* animations/longhand-timing-function.html:
* animations/missing-from-to-transforms.html:
* animations/missing-from-to.html:
* animations/pause-crash.html:
* animations/resources/animation-test-helpers.js:
(checkExpectedValue):
(endTest):
* animations/state-at-end-event.html:
* animations/suspend-resume-animation-events.html:
* animations/suspend-transform-animation.html:
* animations/transition-and-animation-3.html:
* animations/unanimated-style.html:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@119985 268f45cc-cd09-0410-ab3c-d52691b4dbfc
rebaseline from garden-o-matic leaves N processes each time it is run
https://bugs.webkit.org/show_bug.cgi?id=88586

Reviewed by Dirk Pranke.

This appears to only be a problem on python 2.7. Maybe a bug causing
pools to not be garbage collected?

* Scripts/webkitpy/common/system/executive.py:
(Executive.run_in_parallel): close() and join() the process pool.
* Scripts/webkitpy/common/system/executive_unittest.py:
(ExecutiveTest.test_run_in_parallel):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@119986 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Chromium] Theme updates for Android in menu list rendering and selection backgrounds
https://bugs.webkit.org/show_bug.cgi?id=88775

Reviewed by Adam Barth.

For Chrome on Android, use the width of the scrollbar down arrow instead
of the scrollbar's width for determining the arrow padding to apply for
menu list rendering, as WebKit isn't drawing a scrollbar (thus width=0).

Furthermore, change the default active selection background color to be
equal to the tap highlighting color.

These changes should be covered by existing layout tests.

* rendering/RenderThemeChromiumAndroid.cpp:
(WebCore::RenderThemeChromiumAndroid::menuListArrowPadding):
(WebCore): Retrieve the scrollbar down arrow's size via PlatformSupport.
* rendering/RenderThemeChromiumAndroid.h: Override the menuListArrowPadding
    and platformActiveSelectionBackgroundColor methods, and add a static
    static RGBA32 color for the default active selection bg color.
* rendering/RenderThemeChromiumSkia.cpp:
(WebCore::RenderThemeChromiumSkia::menuListArrowPadding): Default to
    the scrollbar thickness, not changing behavior for non-Android.
(WebCore::RenderThemeChromiumSkia::menuListInternalPadding): Instead
    of polling the scrollbar thickness, call menuListArrowPadding().
* rendering/RenderThemeChromiumSkia.h:
(RenderThemeChromiumSkia): Add the menuListArrowPadding() as a protected method.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@119987 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[chromium] Provide access to the WebPlugin created by the helper plugin widget
https://bugs.webkit.org/show_bug.cgi?id=88028

Patch by David Dorwin <ddorwin@chromium.org> on 2012-06-11
Reviewed by Adam Barth.

Source/WebKit/chromium:

A WebPlugin is created when the document created by createHelperPlugin() is laid out.
Expose it so the embedder can interact with the plugin instance.

* public/WebHelperPlugin.h:
(WebKit):
(WebHelperPlugin):
* public/WebMediaPlayerClient.h:
(WebKit):
* public/WebPlugin.h:
(WebKit::WebPlugin::isPlaceholder):
(WebPlugin):
* src/WebHelperPluginImpl.cpp:
(WebKit::WebHelperPluginImpl::WebHelperPluginImpl):
(WebKit):
(WebKit::WebHelperPluginImpl::getPlugin):
(WebKit::WebHelperPluginImpl::initPage):
(WebKit::WebHelperPluginImpl::close):
* src/WebHelperPluginImpl.h:
(WebKit):
(WebHelperPluginImpl):
* src/WebMediaPlayerClientImpl.cpp:
(WebKit::WebMediaPlayerClientImpl::createHelperPlugin):
* src/WebMediaPlayerClientImpl.h:
(WebMediaPlayerClientImpl):
* src/WebPagePopupImpl.cpp:

Tools:

Added isPlaceholder() to WebPlugin.

* DumpRenderTree/chromium/TestWebPlugin.h:
(TestWebPlugin::isPlaceholder):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@119988 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Use testRunner instead of layoutTestController in css 1, css 2.1, and css3 tests
https://bugs.webkit.org/show_bug.cgi?id=88769

Reviewed by Tony Chang.

* css1/units/zero-duration-without-units.html:
* css3/calc/:
* css3/filters/:
* css3/filters/custom/:
* css3/filters/resources/:
* css3/filters/script-tests/:
* css3/flexbox/:
* css3/font-feature-settings-rendering.html:
* css3/images/cross-fade-invalidation.html:
* css3/images/optimize-contrast-canvas.html:
* css3/images/optimize-contrast-image.html:
* css3/khtml-background-size-0x0-bmp.html:
* css3/parsing-css3-nthchild.html:
* css3/style-zoomed-image.html:
* css3/viewport-percentage-lengths/css3-viewport-percentage-lengths-getStyle.html:
* css3/zoom-coords.xhtml:
* platform/win/css2.1/resources/run-webkit-tests-epilogue.html:
* platform/win/css2.1/resources/run-webkit-tests-prologue.html:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@119990 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Large slew of Chromium windows png rebaselines. See http://crbug.com/131829 for more information.

List of rebaselined files excluded because it's too long.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@119991 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Use testRunner instead of layoutTestController in compositing tests
https://bugs.webkit.org/show_bug.cgi?id=88766

Reviewed by Tony Chang.

* compositing/:
* compositing/animation/:
* compositing/backface-visibility/:
* compositing/backing/:
* compositing/culling/:
* compositing/geometry/:
* compositing/iframes/:
* compositing/iframes/resources/:
* compositing/images/:
* compositing/layer-creation/:
* compositing/masks/:
* compositing/overflow/:
* compositing/plugins/:
* compositing/reflections/:
* compositing/repaint/:
* compositing/resources/:
* compositing/rtl/:
* compositing/scaling/:
* compositing/tiling/:
* compositing/transitions/:
* compositing/video/:
* compositing/visibility/:
* compositing/webgl/:
* platform/chromium/compositing/:
* platform/chromium/compositing/force-compositing-mode/:
* platform/chromium/compositing/rubberbanding/:
* platform/mac/compositing/canvas/:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@119992 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Chromium] Removing long WebDeviceOrientation constructor
https://bugs.webkit.org/show_bug.cgi?id=88779

Patch by Amy Ousterhout <aousterh@chromium.org> on 2012-06-11
Reviewed by Adam Barth.

Removing the WebDeviceOrientation constructor with nine parameters.
Chromium has been changed to use the default constructor and setter
functions instead (see https://chromiumcodereview.appspot.com/10542025/).

* public/WebDeviceOrientation.h:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@119993 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Chromium] Remove some dead code in PasteboardChromium
https://bugs.webkit.org/show_bug.cgi?id=88782

Reviewed by Adam Barth.

Part of a refactoring series. See tracking bug 82948.
Leftover detritus from bug 88038.

* platform/chromium/PasteboardChromium.cpp:
(WebCore::Pasteboard::documentFragment):


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