Add a test for plug-in unavailability indicator obscurity detection
https://bugs.webkit.org/show_bug.cgi?id=119007

Reviewed by Anders Carlsson.

Test: plugins/unavailable-plugin-indicator-obscurity.html

Expose the ability to test whether the unavailable plugin indicator
is obscured via the internals object.

* testing/Internals.cpp:
(WebCore::Internals::isPluginUnavailabilityIndicatorObscured):
* testing/Internals.h:
* testing/Internals.idl:
Expose RenderEmbeddedObject::isReplacementObscured as
internals.isPluginUnavailabilityIndicatorObscured for testing purposes.

Expose the ability to block plug-ins via pluginLoadPolicy to testRunner.

* WebKitTestRunner/InjectedBundle/Bindings/TestRunner.idl:
* WebKitTestRunner/InjectedBundle/TestRunner.cpp:
(WTR::TestRunner::setBlockAllPlugins):
* WebKitTestRunner/InjectedBundle/TestRunner.h:
* WebKitTestRunner/TestInvocation.cpp:
(WTR::TestInvocation::didReceiveMessageFromInjectedBundle):
Add testRunner.setBlockAllPlugins function (and corresponding message to
forward it through to TestController).

* WebKitTestRunner/TestController.cpp:
Initialize m_shouldBlockAllPlugins to false (and drive-by initialize m_handlesAuthenticationChallenges).

(WTR::TestController::createWebViewWithOptions):
Register our pluginLoadPolicy callback.

(WTR::TestController::resetStateToConsistentValues):
Reset m_shouldBlockAllPlugins to false.

(WTR::TestController::pluginLoadPolicy):
Return the existing plugin load policy, unless setBlockAllPlugins(true)
was called, in which case we reject all plugins with kWKPluginLoadPolicyBlocked.

* WebKitTestRunner/TestController.h:
(WTR::TestController::setBlockAllPlugins):

Add a test that ensures that RenderEmbeddedObject accurately detects the
various different ways the unavailable plugin dialog can be obscured.

* platform/mac-wk2/TestExpectations:
* platform/mac/TestExpectations:
* plugins/unavailable-plugin-indicator-obscurity-expected.txt: Added.
* plugins/unavailable-plugin-indicator-obscurity.html: Added.

* Source/autotools/symbols.filter:
Expose RenderEmbeddedObject::isReplacementObscured to internals.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@153054 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Remove deprecated and unused compositing settings
https://bugs.webkit.org/show_bug.cgi?id=119014

Reviewed by Andreas Kling.

Source/WebCore:

* page/Settings.in:

Source/WebKit/qt:

Remove A set of settings to control accelerated compositing that have long been
replaced with triggers returned by ChromeClient, but haven't been fully removed.

They are only set by the Qt port but not read anywhere.

* Api/qwebsettings.cpp:
(QWebSettingsPrivate::apply):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@153055 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unreviewed build fix after r153054.

* WebKit.vcxproj/WebKitExportGenerator/WebKitExports.def.in:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@153056 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[CSS Regions] Convert percentage-margins-* tests to ref-tests
https://bugs.webkit.org/show_bug.cgi?id=118723

Reviewed by Andreas Kling.

The patch converts the percentage margins tests for regions in ref tests.

* fast/regions/percentage-margins-mixed-ltr-dominant-regions-expected.html: Added.
* fast/regions/percentage-margins-mixed-ltr-dominant-regions.html:
* fast/regions/percentage-margins-mixed-rtl-dominant-regions-expected.html: Added.
* fast/regions/percentage-margins-mixed-rtl-dominant-regions.html:
* fast/regions/percentage-margins-rtl-variable-width-regions-expected.html: Added.
* fast/regions/percentage-margins-rtl-variable-width-regions.html:
* fast/regions/percentage-margins-variable-width-regions-expected.html: Added.
* fast/regions/percentage-margins-variable-width-regions.html:
* platform/efl/fast/regions/percentage-margins-mixed-ltr-dominant-regions-expected.png: Removed.
* platform/efl/fast/regions/percentage-margins-mixed-ltr-dominant-regions-expected.txt: Removed.
* platform/efl/fast/regions/percentage-margins-mixed-rtl-dominant-regions-expected.png: Removed.
* platform/efl/fast/regions/percentage-margins-mixed-rtl-dominant-regions-expected.txt: Removed.
* platform/efl/fast/regions/percentage-margins-rtl-variable-width-regions-expected.png: Removed.
* platform/efl/fast/regions/percentage-margins-rtl-variable-width-regions-expected.txt: Removed.
* platform/efl/fast/regions/percentage-margins-variable-width-regions-expected.png: Removed.
* platform/efl/fast/regions/percentage-margins-variable-width-regions-expected.txt: Removed.
* platform/gtk/fast/regions/percentage-margins-mixed-ltr-dominant-regions-expected.png: Removed.
* platform/gtk/fast/regions/percentage-margins-mixed-ltr-dominant-regions-expected.txt: Removed.
* platform/gtk/fast/regions/percentage-margins-mixed-rtl-dominant-regions-expected.png: Removed.
* platform/gtk/fast/regions/percentage-margins-mixed-rtl-dominant-regions-expected.txt: Removed.
* platform/gtk/fast/regions/percentage-margins-rtl-variable-width-regions-expected.png: Removed.
* platform/gtk/fast/regions/percentage-margins-rtl-variable-width-regions-expected.txt: Removed.
* platform/gtk/fast/regions/percentage-margins-variable-width-regions-expected.png: Removed.
* platform/gtk/fast/regions/percentage-margins-variable-width-regions-expected.txt: Removed.
* platform/mac/fast/regions/percentage-margins-mixed-ltr-dominant-regions-expected.png: Removed.
* platform/mac/fast/regions/percentage-margins-mixed-ltr-dominant-regions-expected.txt: Removed.
* platform/mac/fast/regions/percentage-margins-mixed-rtl-dominant-regions-expected.png: Removed.
* platform/mac/fast/regions/percentage-margins-mixed-rtl-dominant-regions-expected.txt: Removed.
* platform/mac/fast/regions/percentage-margins-rtl-variable-width-regions-expected.png: Removed.
* platform/mac/fast/regions/percentage-margins-rtl-variable-width-regions-expected.txt: Removed.
* platform/mac/fast/regions/percentage-margins-variable-width-regions-expected.png: Removed.
* platform/mac/fast/regions/percentage-margins-variable-width-regions-expected.txt: Removed.
* platform/qt/fast/regions/percentage-margins-mixed-ltr-dominant-regions-expected.png: Removed.
* platform/qt/fast/regions/percentage-margins-mixed-ltr-dominant-regions-expected.txt: Removed.
* platform/qt/fast/regions/percentage-margins-mixed-rtl-dominant-regions-expected.png: Removed.
* platform/qt/fast/regions/percentage-margins-mixed-rtl-dominant-regions-expected.txt: Removed.
* platform/qt/fast/regions/percentage-margins-rtl-variable-width-regions-expected.png: Removed.
* platform/qt/fast/regions/percentage-margins-rtl-variable-width-regions-expected.txt: Removed.
* platform/qt/fast/regions/percentage-margins-variable-width-regions-expected.png: Removed.
* platform/qt/fast/regions/percentage-margins-variable-width-regions-expected.txt: Removed.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@153057 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[CSS Shapes] New positioning model: Borders
https://bugs.webkit.org/show_bug.cgi?id=118822

Patch by Bem Jones-Bey <bjonesbe@adobe.com> on 2013-07-23
Reviewed by Dean Jackson.

Source/WebCore:

Converting to the shape coordinate system was not properly accounting
for borders and padding. This has been fixed and a new convienence
method added because of the added complexity of the conversion.

Test: csswg/submitted/shapes/shape-outside/shape-outside-floats-square-border-000.html

* rendering/RenderBlock.cpp:
(WebCore::RenderBlock::logicalLeftFloatOffsetForLine): Update to use
    computeSegmentsForContainingBlockLine to do the coordinate
    conversion.
(WebCore::RenderBlock::logicalRightFloatOffsetForLine): Ditto.
* rendering/RenderBlockLineLayout.cpp:
(WebCore::LineWidth::shrinkAvailableWidthForNewFloatIfNeeded): Ditto.
* rendering/shapes/ShapeOutsideInfo.cpp:
(WebCore::ShapeOutsideInfo::computeSegmentsForContainingBlockLine):
    Add new method to do the coordinate conversion from the containing
    block coordinate system to the coordinate system of the shape so
    that the segments can be correctly calculated.

LayoutTests:

Test that the shape is properly respected when the float has a border.

* csswg/submitted/shapes/shape-outside/shape-outside-floats-square-border-000-expected.html: Added.
* csswg/submitted/shapes/shape-outside/shape-outside-floats-square-border-000.html: Added.
* csswg/submitted/shapes/shape-outside/w3c-import.log: Updated with new
    import information.

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