Add API::PolicyClient base class
https://bugs.webkit.org/show_bug.cgi?id=127509

Reviewed by Tim Horton.

* UIProcess/API/APIPolicyClient.h: Copied from Source/WebKit2/UIProcess/WebPolicyClient.h.
(API::PolicyClient::~PolicyClient):
* UIProcess/API/C/WKPage.cpp:
(WKPageSetPagePolicyClient):
* UIProcess/API/Cocoa/WKBrowsingContextController.mm:
(setUpPagePolicyClient):
(-[WKBrowsingContextController setPolicyDelegate:]):
* UIProcess/WebInspectorProxy.cpp:
(WebKit::WebInspectorProxy::createInspectorPage):
* UIProcess/WebPageProxy.cpp:
(WebKit::WebPageProxy::setPolicyClient):
(WebKit::WebPageProxy::close):
(WebKit::WebPageProxy::decidePolicyForNavigationAction):
(WebKit::WebPageProxy::decidePolicyForNewWindowAction):
(WebKit::WebPageProxy::decidePolicyForResponse):
(WebKit::WebPageProxy::unableToImplementPolicy):
* UIProcess/WebPageProxy.h:
* UIProcess/WebPolicyClient.cpp:
(WebKit::WebPolicyClient::WebPolicyClient):
(WebKit::WebPolicyClient::decidePolicyForNavigationAction):
(WebKit::WebPolicyClient::decidePolicyForNewWindowAction):
(WebKit::WebPolicyClient::decidePolicyForResponse):
* UIProcess/WebPolicyClient.h:
* WebKit2.xcodeproj/project.pbxproj:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162639 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Don't enable speculative tiles immediately after main load stops progressing
https://bugs.webkit.org/show_bug.cgi?id=127507

Reviewed by Andreas Kling.

It is common for timers and events to trigger more loading after the initial main frame loading
has completed. We should delay a bit before enabling speculative tiles and keep them disabled 
if loading still continues.

* page/FrameView.cpp:
(WebCore::FrameView::FrameView):
(WebCore::FrameView::adjustTiledBackingCoverage):
(WebCore::shouldEnableSpeculativeTilingDuringLoading):
(WebCore::FrameView::enableSpeculativeTilingIfNeeded):
        
    When load progression stops wait 0.5s before enabling speculative tiles.

(WebCore::FrameView::speculativeTilingEnableTimerFired):
        
    Don't enable speculative tiles if the progression has started again. Instead restart the timer.

* page/FrameView.h:
* rendering/RenderLayerBacking.cpp:
(WebCore::RenderLayerBacking::RenderLayerBacking):
(WebCore::computeTileCoverage):
        
    Move the FrameView level code to FrameView (so we don't need to add a timer to every RenderLayerBacking).

* rendering/RenderLayerBacking.h:



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162640 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Windows] Unreviewed. Disable unnecessary warning C4309, "truncation of constant value".

* win/tools/vsprops/common.props:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162642 268f45cc-cd09-0410-ab3c-d52691b4dbfc
REGRESSION(r161967): Crash in WebCore::CachedSVGDocumentReference::load
<https://webkit.org/b/127151>
<rdar://problem/15840760>

Source/WebCore:

There were two issues introduced here; the first is a use-after-free of
CachedSVGDocumentReference objects.

The previous code kept a map from FilterOperation ->
RefPtr<WebKitCSSSVGDocumentValue>, which retained the
CachedSVGDocument. In r161967, this was changed to use a weak HashSet,
which allows stale CachedSVGDocumentReferences in the pending document
set if the owning FilterOperation is deleted. To fix this, we'll keep a
vector of RefPtr<FilterOperation> with pending SVG documents.

The second issue is a null deref in CachedSVGDocumentReference::load();
CachedResourceLoader::requestSVGDocument() can return 0 if (for
example) an invalid URL is passed. r161967 removed a null check as part
of the refactoring.

Reviewed by Dirk Schulze.

Tests: css3/filters/crash-filter-animation-invalid-url.html
       css3/filters/crash-invalid-url.html

* css/StyleResolver.cpp:
(WebCore::StyleResolver::State::clear):
Use new member var name.
(WebCore::StyleResolver::loadPendingSVGDocuments):
For each FilterOperation with a pending SVG document, get or create a
CachedSVGDocumentReference, and tell it to load. Changed to use new
function names.
(WebCore::StyleResolver::createFilterOperations):
Append the FilterOperation to the list of FilterOperations with
unloaded SVG documents.

* css/StyleResolver.h:
Changed from using PendingSVGDocumentSet, a weak set, to
a Vector<RefPtr<ReferenceFilterOperation>>.
(WebCore::StyleResolver::State::filtersWithPendingSVGDocuments):
Return the vector.

* loader/cache/CachedSVGDocumentReference.cpp:
(WebCore::CachedSVGDocumentReference::~CachedSVGDocumentReference):
Null check m_document rather than checking m_loadRequested.
m_loadRequested may be true when m_document is 0.
(WebCore::CachedSVGDocumentReference::load):
Null check the result of CachedResourceLoader::requestSVGDocument().

* platform/graphics/filters/FilterOperation.cpp:
(WebCore::ReferenceFilterOperation::getOrCreateCachedSVGDocumentReference):
Create, if necessary, and return the CachedSVGDocumentReference.

* platform/graphics/filters/FilterOperation.h:
Replaced createCachedSVGDocumentReference() with
getOrCreateCachedSVGDocumentReference(), which makes for slightly
cleaner code.

LayoutTests:

Reviewed by Dirk Schulze.

* css3/filters/crash-filter-animation-invalid-url-expected.txt: Added.
* css3/filters/crash-filter-animation-invalid-url.html: Added.
* css3/filters/crash-invalid-url-expected.txt: Added.
* css3/filters/crash-invalid-url.html: Added.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162643 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Remove CSS Custom Filters code and tests
https://bugs.webkit.org/show_bug.cgi?id=127382

Reviewed by Simon Fraser.

.:

* Source/autotools/FindDependencies.m4:
* Source/autotools/SetupWebKitFeatures.m4:
* Source/cmake/WebKitFeatures.cmake:
* Source/cmakeconfig.h.cmake:

Source/JavaScriptCore:

* Configurations/FeatureDefines.xcconfig:

Source/WebCore:

No new tests. Removing functionality.

* CMakeLists.txt:
* Configurations/FeatureDefines.xcconfig:
* DerivedSources.cpp:
* DerivedSources.make:
* GNUmakefile.list.am:
* WebCore.order:
* WebCore.vcxproj/WebCore.vcxproj:
* WebCore.vcxproj/WebCore.vcxproj.filters:
* WebCore.xcodeproj/project.pbxproj:
* bindings/js/JSCSSRuleCustom.cpp:
(WebCore::toJS):
* bindings/js/JSCSSValueCustom.cpp:
(WebCore::toJS):
* bindings/objc/DOMCSS.mm:
(kitClass):
* css/CSSComputedStyleDeclaration.cpp:
(WebCore::ComputedStyleExtractor::valueForFilter):
(WebCore::ComputedStyleExtractor::propertyValue):
* css/CSSComputedStyleDeclaration.h:
* css/CSSGrammar.y.in:
* css/CSSParser.cpp:
(WebCore::CSSParserContext::CSSParserContext):
(WebCore::operator==):
(WebCore::CSSParser::CSSParser):
(WebCore::CSSParser::parseValue):
(WebCore::filterInfoForName):
(WebCore::CSSParser::parseFilter):
(WebCore::CSSParser::detectAtToken):
* css/CSSParser.h:
* css/CSSParserMode.h:
* css/CSSPropertyNames.in:
* css/CSSPropertySourceData.h:
* css/CSSRule.h:
* css/CSSRule.idl:
* css/CSSValue.cpp:
(WebCore::CSSValue::equals):
(WebCore::CSSValue::cssText):
(WebCore::CSSValue::destroy):
(WebCore::CSSValue::cloneForCSSOM):
* css/CSSValue.h:
* css/CSSValueKeywords.in:
* css/StyleResolver.cpp:
(WebCore::StyleResolver::State::clear):
(WebCore::StyleResolver::applyProperty):
(WebCore::filterOperationForType):
(WebCore::StyleResolver::createFilterOperations):
(WebCore::StyleResolver::loadPendingResources):
* css/StyleResolver.h:
(WebCore::StyleResolver::State::State):
* css/StyleRule.cpp:
(WebCore::StyleRuleBase::destroy):
(WebCore::StyleRuleBase::copy):
(WebCore::StyleRuleBase::createCSSOMWrapper):
* css/StyleRule.h:
* css/StyleSheetContents.cpp:
(WebCore::childRulesHaveFailedOrCanceledSubresources):
* css/WebKitCSSArrayFunctionValue.cpp: Removed.
* css/WebKitCSSArrayFunctionValue.h: Removed.
* css/WebKitCSSFilterRule.cpp: Removed.
* css/WebKitCSSFilterRule.h: Removed.
* css/WebKitCSSFilterRule.idl: Removed.
* css/WebKitCSSFilterValue.cpp:
(WebCore::WebKitCSSFilterValue::WebKitCSSFilterValue):
(WebCore::WebKitCSSFilterValue::customCSSText):
* css/WebKitCSSFilterValue.h:
* css/WebKitCSSFilterValue.idl:
* css/WebKitCSSMatFunctionValue.cpp: Removed.
* css/WebKitCSSMatFunctionValue.h: Removed.
* css/WebKitCSSMixFunctionValue.cpp: Removed.
* css/WebKitCSSMixFunctionValue.h: Removed.
* css/WebKitCSSMixFunctionValue.idl: Removed.
* css/WebKitCSSShaderValue.cpp: Removed.
* css/WebKitCSSShaderValue.h: Removed.
* loader/cache/CachedResource.cpp:
(WebCore::defaultPriorityForResourceType):
* loader/cache/CachedResource.h:
* loader/cache/CachedResourceLoader.cpp:
(WebCore::createResource):
(WebCore::CachedResourceLoader::checkInsecureContent):
(WebCore::CachedResourceLoader::canRequest):
* loader/cache/CachedResourceLoader.h:
* loader/cache/CachedShader.cpp: Removed.
* loader/cache/CachedShader.h: Removed.
* page/Settings.cpp:
(WebCore::Settings::Settings):
* page/Settings.h:
* page/animation/CSSPropertyAnimation.cpp:
(WebCore::blendFilter):
* platform/graphics/ca/mac/PlatformCALayerMac.mm:
(PlatformCALayerMac::filtersCanBeComposited):
* platform/graphics/filters/CustomFilterArrayParameter.h: Removed.
* platform/graphics/filters/CustomFilterColorParameter.h: Removed.
* platform/graphics/filters/CustomFilterCompiledProgram.cpp: Removed.
* platform/graphics/filters/CustomFilterCompiledProgram.h: Removed.
* platform/graphics/filters/CustomFilterConstants.h: Removed.
* platform/graphics/filters/CustomFilterGlobalContext.cpp: Removed.
* platform/graphics/filters/CustomFilterGlobalContext.h: Removed.
* platform/graphics/filters/CustomFilterMesh.cpp: Removed.
* platform/graphics/filters/CustomFilterMesh.h: Removed.
* platform/graphics/filters/CustomFilterMeshGenerator.cpp: Removed.
* platform/graphics/filters/CustomFilterMeshGenerator.h: Removed.
* platform/graphics/filters/CustomFilterNumberParameter.h: Removed.
* platform/graphics/filters/CustomFilterOperation.cpp: Removed.
* platform/graphics/filters/CustomFilterOperation.h: Removed.
* platform/graphics/filters/CustomFilterParameter.h: Removed.
* platform/graphics/filters/CustomFilterParameterList.cpp: Removed.
* platform/graphics/filters/CustomFilterParameterList.h: Removed.
* platform/graphics/filters/CustomFilterProgram.cpp: Removed.
* platform/graphics/filters/CustomFilterProgram.h: Removed.
* platform/graphics/filters/CustomFilterProgramClient.h: Removed.
* platform/graphics/filters/CustomFilterProgramInfo.cpp: Removed.
* platform/graphics/filters/CustomFilterProgramInfo.h: Removed.
* platform/graphics/filters/CustomFilterRenderer.cpp: Removed.
* platform/graphics/filters/CustomFilterRenderer.h: Removed.
* platform/graphics/filters/CustomFilterTransformParameter.h: Removed.
* platform/graphics/filters/CustomFilterValidatedProgram.cpp: Removed.
* platform/graphics/filters/CustomFilterValidatedProgram.h: Removed.
* platform/graphics/filters/FECustomFilter.cpp: Removed.
* platform/graphics/filters/FECustomFilter.h: Removed.
* platform/graphics/filters/FilterOperation.h:
* platform/graphics/filters/FilterOperations.cpp:
(WebCore::FilterOperations::outsets):
* platform/graphics/filters/FilterOperations.h:
* platform/graphics/filters/ValidatedCustomFilterOperation.cpp: Removed.
* platform/graphics/filters/ValidatedCustomFilterOperation.h: Removed.
* platform/graphics/filters/texmap/CustomFilterValidatedProgramTextureMapper.cpp: Removed.
* platform/graphics/filters/texmap/TextureMapperPlatformCompiledProgram.h: Removed.
* platform/graphics/gpu/Texture.cpp:
* platform/graphics/texmap/TextureMapper.h:
* platform/graphics/texmap/TextureMapperGL.cpp:
(WebCore::getPassesRequiredForFilter):
(WebCore::BitmapTextureGL::applyFilters):
* platform/graphics/texmap/TextureMapperGL.h:
* platform/graphics/texmap/coordinated/CompositingCoordinator.cpp:
(WebCore::CompositingCoordinator::clearPendingStateChanges):
(WebCore::CompositingCoordinator::syncLayerState):
* platform/graphics/texmap/coordinated/CompositingCoordinator.h:
* platform/graphics/texmap/coordinated/CoordinatedCustomFilterOperation.h: Removed.
* platform/graphics/texmap/coordinated/CoordinatedCustomFilterProgram.h: Removed.
* platform/graphics/texmap/coordinated/CoordinatedGraphicsScene.cpp:
(WebCore::CoordinatedGraphicsScene::setLayerFiltersIfNeeded):
(WebCore::CoordinatedGraphicsScene::commitSceneState):
(WebCore::CoordinatedGraphicsScene::setLayerAnimationsIfNeeded):
* platform/graphics/texmap/coordinated/CoordinatedGraphicsScene.h:
* platform/graphics/texmap/coordinated/CoordinatedGraphicsState.h:
* rendering/FilterEffectRenderer.cpp:
(WebCore::FilterEffectRenderer::FilterEffectRenderer):
(WebCore::FilterEffectRenderer::build):
(WebCore::FilterEffectRenderer::computeSourceImageRectForDirtyRect):
* rendering/FilterEffectRenderer.h:
* rendering/RenderLayer.cpp:
(WebCore::RenderLayer::setFilterBackendNeedsRepaintingInRect):
(WebCore::RenderLayer::calculateClipRects):
* rendering/RenderLayer.h:
* rendering/RenderLayerBacking.cpp:
(WebCore::RenderLayerBacking::updateFilters):
* rendering/RenderLayerFilterInfo.cpp:
(WebCore::RenderLayer::FilterInfo::~FilterInfo):
* rendering/RenderLayerFilterInfo.h:
* rendering/RenderView.cpp:
* rendering/RenderView.h:
* rendering/style/StyleCachedShader.cpp: Removed.
* rendering/style/StyleCachedShader.h: Removed.
* rendering/style/StyleCustomFilterProgram.cpp: Removed.
* rendering/style/StyleCustomFilterProgram.h: Removed.
* rendering/style/StyleCustomFilterProgramCache.cpp: Removed.
* rendering/style/StyleCustomFilterProgramCache.h: Removed.
* rendering/style/StylePendingShader.h: Removed.
* rendering/style/StyleShader.h: Removed.

Source/WebCore/platform/gtk/po:

No new tests. Removing functionality.

* ar.po:
* as.po:
* bg.po:
* cs.po:
* de.po:
* el.po:
* en_CA.po:
* en_GB.po:
* eo.po:
* es.po:
* et.po:
* eu.po:
* fr.po:
* gl.po:
* gu.po:
* he.po:
* hi.po:
* hu.po:
* id.po:
* it.po:
* kn.po:
* ko.po:
* lt.po:
* lv.po:
* ml.po:
* mr.po:
* nb.po:
* nl.po:
* or.po:
* pa.po:
* pl.po:
* pt.po:
* pt_BR.po:
* ro.po:
* ru.po:
* sl.po:
* sr.po:
* sr@latin.po:
* sv.po:
* ta.po:
* te.po:
* uk.po:
* vi.po:
* zh_CN.po:

Source/WebKit/gtk:

* WebCoreSupport/DumpRenderTreeSupportGtk.cpp:
* WebCoreSupport/DumpRenderTreeSupportGtk.h:
* webkit/webkitwebsettings.cpp:
(webkit_web_settings_class_init):
(webkit_web_settings_set_property):
(webkit_web_settings_get_property):
* webkit/webkitwebsettingsprivate.h:
* webkit/webkitwebview.cpp:
(webkit_web_view_update_settings):
(webkit_web_view_settings_notify):

Source/WebKit/mac:

* Configurations/FeatureDefines.xcconfig:
* WebView/WebPreferenceKeysPrivate.h:
* WebView/WebPreferences.mm:
(+[WebPreferences initialize]):
* WebView/WebPreferencesPrivate.h:
* WebView/WebView.mm:
(-[WebView _preferencesChanged:]):

Source/WebKit2:

* CMakeLists.txt:
* Configurations/FeatureDefines.xcconfig:
* Shared/CoordinatedGraphics/CoordinatedGraphicsArgumentCoders.cpp:
(IPC::ArgumentCoder<WebCore::FilterOperations>::encode):
(IPC::ArgumentCoder<WebCore::FilterOperations>::decode):
(IPC::ArgumentCoder<CoordinatedGraphicsState>::encode):
(IPC::ArgumentCoder<CoordinatedGraphicsState>::decode):
* Shared/CoordinatedGraphics/CoordinatedGraphicsArgumentCoders.h:
* Shared/CoordinatedGraphics/WebCustomFilterProgramProxy.cpp: Removed.
* Shared/CoordinatedGraphics/WebCustomFilterProgramProxy.h: Removed.
* Shared/WebCoreArgumentCoders.cpp:
(IPC::encodeFilterOperation):
(IPC::decodeFilterOperation):
* Shared/WebPreferencesStore.h:
* Shared/mac/RemoteLayerTreeTransaction.mm:
(WebKit::RemoteLayerTreeTextStream::operator<<):
* UIProcess/API/C/WKPreferences.cpp:
* UIProcess/API/C/WKPreferencesPrivate.h:
* WebProcess/InjectedBundle/InjectedBundle.cpp:
(WebKit::InjectedBundle::overrideBoolPreferenceForTestRunner):
* WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.cpp:
(WebKit::CoordinatedLayerTreeHost::~CoordinatedLayerTreeHost):
* WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.h:
* WebProcess/WebPage/WebPage.cpp:
(WebKit::WebPage::updatePreferences):
* mac/WebKit2.order:

Source/WTF:

* wtf/FeatureDefines.h:

Tools:

* DumpRenderTree/gtk/DumpRenderTree.cpp:
(resetDefaultsToConsistentValues):
* DumpRenderTree/gtk/TestRunnerGtk.cpp:
(TestRunner::overridePreference):

LayoutTests:

* animations/resources/animation-test-helpers.js:
(parseFilterFunctionList):
(compareFilterFunctions):
* css3/filters/custom-with-at-rule-syntax/parsing-at-rule-invalid-expected.txt: Removed.
* css3/filters/custom-with-at-rule-syntax/parsing-at-rule-invalid.html: Removed.
* css3/filters/custom-with-at-rule-syntax/parsing-at-rule-valid-expected.txt: Removed.
* css3/filters/custom-with-at-rule-syntax/parsing-at-rule-valid.html: Removed.
* css3/filters/custom-with-at-rule-syntax/parsing-custom-function-invalid-expected.txt: Removed.
* css3/filters/custom-with-at-rule-syntax/parsing-custom-function-invalid.html: Removed.
* css3/filters/custom-with-at-rule-syntax/parsing-custom-function-valid-expected.txt: Removed.
* css3/filters/custom-with-at-rule-syntax/parsing-custom-function-valid.html: Removed.
* css3/filters/custom-with-at-rule-syntax/parsing-geometry-property-invalid-expected.txt: Removed.
* css3/filters/custom-with-at-rule-syntax/parsing-geometry-property-invalid.html: Removed.
* css3/filters/custom-with-at-rule-syntax/parsing-geometry-property-valid-expected.txt: Removed.
* css3/filters/custom-with-at-rule-syntax/parsing-geometry-property-valid.html: Removed.
* css3/filters/custom-with-at-rule-syntax/parsing-mix-property-invalid-expected.txt: Removed.
* css3/filters/custom-with-at-rule-syntax/parsing-mix-property-invalid.html: Removed.
* css3/filters/custom-with-at-rule-syntax/parsing-mix-property-valid-expected.txt: Removed.
* css3/filters/custom-with-at-rule-syntax/parsing-mix-property-valid.html: Removed.
* css3/filters/custom-with-at-rule-syntax/parsing-parameters-property-invalid-expected.txt: Removed.
* css3/filters/custom-with-at-rule-syntax/parsing-parameters-property-invalid.html: Removed.
* css3/filters/custom-with-at-rule-syntax/parsing-parameters-property-valid-expected.txt: Removed.
* css3/filters/custom-with-at-rule-syntax/parsing-parameters-property-valid.html: Removed.
* css3/filters/custom-with-at-rule-syntax/parsing-src-property-invalid-expected.txt: Removed.
* css3/filters/custom-with-at-rule-syntax/parsing-src-property-invalid.html: Removed.
* css3/filters/custom-with-at-rule-syntax/parsing-src-property-valid-expected.txt: Removed.
* css3/filters/custom-with-at-rule-syntax/parsing-src-property-valid.html: Removed.
* css3/filters/custom-with-at-rule-syntax/script-tests/parsing-at-rule-invalid.js: Removed.
* css3/filters/custom-with-at-rule-syntax/script-tests/parsing-at-rule-valid.js: Removed.
* css3/filters/custom-with-at-rule-syntax/script-tests/parsing-custom-function-invalid.js: Removed.
* css3/filters/custom-with-at-rule-syntax/script-tests/parsing-custom-function-valid.js: Removed.
* css3/filters/custom-with-at-rule-syntax/script-tests/parsing-geometry-property-invalid.js: Removed.
* css3/filters/custom-with-at-rule-syntax/script-tests/parsing-geometry-property-valid.js: Removed.
* css3/filters/custom-with-at-rule-syntax/script-tests/parsing-mix-property-invalid.js: Removed.
* css3/filters/custom-with-at-rule-syntax/script-tests/parsing-mix-property-valid.js: Removed.
* css3/filters/custom-with-at-rule-syntax/script-tests/parsing-parameters-property-invalid.js: Removed.
* css3/filters/custom-with-at-rule-syntax/script-tests/parsing-parameters-property-valid.js: Removed.
* css3/filters/custom-with-at-rule-syntax/script-tests/parsing-src-property-invalid.js: Removed.
* css3/filters/custom-with-at-rule-syntax/script-tests/parsing-src-property-valid.js: Removed.
* css3/filters/custom/composited/custom-filter-blend-modes-expected.html: Removed.
* css3/filters/custom/composited/custom-filter-blend-modes.html: Removed.
* css3/filters/custom/custom-filter-a-tex-coord-optional-expected.html: Removed.
* css3/filters/custom/custom-filter-a-tex-coord-optional.html: Removed.
* css3/filters/custom/custom-filter-animation-expected.txt: Removed.
* css3/filters/custom/custom-filter-animation.html: Removed.
* css3/filters/custom/custom-filter-array-blending-expected.txt: Removed.
* css3/filters/custom/custom-filter-array-blending.html: Removed.
* css3/filters/custom/custom-filter-array-expected.html: Removed.
* css3/filters/custom/custom-filter-array-uniform-indirect-index-expected.html: Removed.
* css3/filters/custom/custom-filter-array-uniform-indirect-index.html: Removed.
* css3/filters/custom/custom-filter-array.html: Removed.
* css3/filters/custom/custom-filter-blend-fractional-destination-alpha-expected.html: Removed.
* css3/filters/custom/custom-filter-blend-fractional-destination-alpha.html: Removed.
* css3/filters/custom/custom-filter-blend-modes-expected.html: Removed.
* css3/filters/custom/custom-filter-blend-modes.html: Removed.
* css3/filters/custom/custom-filter-change-blend-mode-expected.html: Removed.
* css3/filters/custom/custom-filter-change-blend-mode.html: Removed.
* css3/filters/custom/custom-filter-clamp-css-color-matrix-expected.html: Removed.
* css3/filters/custom/custom-filter-clamp-css-color-matrix-negative-expected.html: Removed.
* css3/filters/custom/custom-filter-clamp-css-color-matrix-negative.html: Removed.
* css3/filters/custom/custom-filter-clamp-css-color-matrix.html: Removed.
* css3/filters/custom/custom-filter-clamp-css-mix-color-expected.html: Removed.
* css3/filters/custom/custom-filter-clamp-css-mix-color-negative-expected.html: Removed.
* css3/filters/custom/custom-filter-clamp-css-mix-color-negative.html: Removed.
* css3/filters/custom/custom-filter-clamp-css-mix-color.html: Removed.
* css3/filters/custom/custom-filter-color-expected.html: Removed.
* css3/filters/custom/custom-filter-color-matrix-expected.png: Removed.
* css3/filters/custom/custom-filter-color-matrix-expected.txt: Removed.
* css3/filters/custom/custom-filter-color-matrix.html: Removed.
* css3/filters/custom/custom-filter-color.html: Removed.
* css3/filters/custom/custom-filter-composite-fractional-source-alpha-expected.html: Removed.
* css3/filters/custom/custom-filter-composite-fractional-source-alpha.html: Removed.
* css3/filters/custom/custom-filter-composite-operators-expected.png: Removed.
* css3/filters/custom/custom-filter-composite-operators-expected.txt: Removed.
* css3/filters/custom/custom-filter-composite-operators.html: Removed.
* css3/filters/custom/custom-filter-composite-source-atop-expected.png: Removed.
* css3/filters/custom/custom-filter-composite-source-atop-expected.txt: Removed.
* css3/filters/custom/custom-filter-composite-source-atop.html: Removed.
* css3/filters/custom/custom-filter-crash-inline-computed-style-expected.txt: Removed.
* css3/filters/custom/custom-filter-crash-inline-computed-style.html: Removed.
* css3/filters/custom/custom-filter-css-keyword-as-parameter-name-expected.png: Removed.
* css3/filters/custom/custom-filter-css-keyword-as-parameter-name-expected.txt: Removed.
* css3/filters/custom/custom-filter-css-keyword-as-parameter-name.html: Removed.
* css3/filters/custom/custom-filter-detached-mesh-with-mesh-box-type-expected.html: Removed.
* css3/filters/custom/custom-filter-detached-mesh-with-mesh-box-type.html: Removed.
* css3/filters/custom/custom-filter-matN-expected.html: Removed.
* css3/filters/custom/custom-filter-matN.html: Removed.
* css3/filters/custom/custom-filter-mesh-column-row-order-expected.html: Removed.
* css3/filters/custom/custom-filter-mesh-column-row-order.html: Removed.
* css3/filters/custom/custom-filter-mix-bindings-expected.txt: Removed.
* css3/filters/custom/custom-filter-mix-bindings.html: Removed.
* css3/filters/custom/custom-filter-no-element-texture-access-expected.html: Removed.
* css3/filters/custom/custom-filter-no-element-texture-access.html: Removed.
* css3/filters/custom/custom-filter-nonseparable-blend-mode-color-expected.html: Removed.
* css3/filters/custom/custom-filter-nonseparable-blend-mode-color.html: Removed.
* css3/filters/custom/custom-filter-nonseparable-blend-mode-hue-expected.html: Removed.
* css3/filters/custom/custom-filter-nonseparable-blend-mode-hue.html: Removed.
* css3/filters/custom/custom-filter-nonseparable-blend-mode-luminosity-expected.html: Removed.
* css3/filters/custom/custom-filter-nonseparable-blend-mode-luminosity.html: Removed.
* css3/filters/custom/custom-filter-nonseparable-blend-mode-saturation-expected.html: Removed.
* css3/filters/custom/custom-filter-nonseparable-blend-mode-saturation.html: Removed.
* css3/filters/custom/custom-filter-property-computed-style-expected.txt: Removed.
* css3/filters/custom/custom-filter-property-computed-style.html: Removed.
* css3/filters/custom/custom-filter-property-parsing-expected.txt: Removed.
* css3/filters/custom/custom-filter-property-parsing-invalid-expected.txt: Removed.
* css3/filters/custom/custom-filter-property-parsing-invalid.html: Removed.
* css3/filters/custom/custom-filter-property-parsing.html: Removed.
* css3/filters/custom/custom-filter-reload-expected.txt: Removed.
* css3/filters/custom/custom-filter-reload.html: Removed.
* css3/filters/custom/custom-filter-shader-cache-expected.png: Removed.
* css3/filters/custom/custom-filter-shader-cache-expected.txt: Removed.
* css3/filters/custom/custom-filter-shader-cache.html: Removed.
* css3/filters/custom/custom-filter-shader-reuse-expected.txt: Removed.
* css3/filters/custom/custom-filter-shader-reuse.html: Removed.
* css3/filters/custom/custom-filter-transforms-animation-expected.txt: Removed.
* css3/filters/custom/custom-filter-transforms-animation.html: Removed.
* css3/filters/custom/custom-filter-u-mesh-box-expected.html: Removed.
* css3/filters/custom/custom-filter-u-mesh-box.html: Removed.
* css3/filters/custom/custom-filter-u-mesh-size-expected.html: Removed.
* css3/filters/custom/custom-filter-u-mesh-size.html: Removed.
* css3/filters/custom/custom-filter-u-texture-size-expected.html: Removed.
* css3/filters/custom/custom-filter-u-texture-size.html: Removed.
* css3/filters/custom/custom-filter-u-tile-size-expected.html: Removed.
* css3/filters/custom/custom-filter-u-tile-size.html: Removed.
* css3/filters/custom/custom-filter-unavailable-varying-expected.html: Removed.
* css3/filters/custom/custom-filter-unavailable-varying.html: Removed.
* css3/filters/custom/effect-color-check-expected.png: Removed.
* css3/filters/custom/effect-color-check-expected.txt: Removed.
* css3/filters/custom/effect-color-check.html: Removed.
* css3/filters/custom/effect-custom-combined-missing-expected.png: Removed.
* css3/filters/custom/effect-custom-combined-missing-expected.txt: Removed.
* css3/filters/custom/effect-custom-combined-missing.html: Removed.
* css3/filters/custom/effect-custom-disabled-expected.txt: Removed.
* css3/filters/custom/effect-custom-disabled.html: Removed.
* css3/filters/custom/effect-custom-expected.png: Removed.
* css3/filters/custom/effect-custom-expected.txt: Removed.
* css3/filters/custom/effect-custom-parameters-expected.png: Removed.
* css3/filters/custom/effect-custom-parameters-expected.txt: Removed.
* css3/filters/custom/effect-custom-parameters.html: Removed.
* css3/filters/custom/effect-custom-transform-parameters-expected.html: Removed.
* css3/filters/custom/effect-custom-transform-parameters.html: Removed.
* css3/filters/custom/effect-custom.html: Removed.
* css3/filters/custom/filter-fallback-to-software-expected.html: Removed.
* css3/filters/custom/filter-fallback-to-software.html: Removed.
* css3/filters/custom/filter-repaint-custom-clipped-expected.png: Removed.
* css3/filters/custom/filter-repaint-custom-clipped-expected.txt: Removed.
* css3/filters/custom/filter-repaint-custom-clipped.html: Removed.
* css3/filters/custom/filter-repaint-custom-expected.png: Removed.
* css3/filters/custom/filter-repaint-custom-expected.txt: Removed.
* css3/filters/custom/filter-repaint-custom-rotated-expected.png: Removed.
* css3/filters/custom/filter-repaint-custom-rotated-expected.txt: Removed.
* css3/filters/custom/filter-repaint-custom-rotated.html: Removed.
* css3/filters/custom/filter-repaint-custom.html: Removed.
* css3/filters/custom/invalid-custom-filter-attribute-types-expected.html: Removed.
* css3/filters/custom/invalid-custom-filter-attribute-types.html: Removed.
* css3/filters/custom/invalid-custom-filter-shader-expected.html: Removed.
* css3/filters/custom/invalid-custom-filter-shader.html: Removed.
* css3/filters/custom/invalid-custom-filter-uniform-types-expected.html: Removed.
* css3/filters/custom/invalid-custom-filter-uniform-types.html: Removed.
* css3/filters/custom/missing-custom-filter-shader-expected.png: Removed.
* css3/filters/custom/missing-custom-filter-shader-expected.txt: Removed.
* css3/filters/custom/missing-custom-filter-shader.html: Removed.
* css3/filters/resources/a-tex-coord-defined.vs: Removed.
* css3/filters/resources/a-tex-coord-undefined.vs: Removed.
* css3/filters/resources/a-triangle-coord-defined.vs: Removed.
* css3/filters/resources/array-uniform-indirect-index.vs: Removed.
* css3/filters/resources/checkerboard.vs: Removed.
* css3/filters/resources/color-fill.fs: Removed.
* css3/filters/resources/color-offset.fs: Removed.
* css3/filters/resources/composite.fs: Removed.
* css3/filters/resources/css-keyword-as-parameter-name.fs: Removed.
* css3/filters/resources/custom-filter-clamp-css-color-matrix-negative.fs: Removed.
* css3/filters/resources/custom-filter-clamp-css-color-matrix.fs: Removed.
* css3/filters/resources/custom-filter-parser.js: Removed.
* css3/filters/resources/fragment-color.fs: Removed.
* css3/filters/resources/fragment-colors.fs: Removed.
* css3/filters/resources/fragment-matN.fs: Removed.
* css3/filters/resources/grayscale-color-matrix.fs: Removed.
* css3/filters/resources/invalid-a-triangle-coord-with-attached-mesh.vs: Removed.
* css3/filters/resources/invalid-custom-attribute.vs: Removed.
* css3/filters/resources/invalid-shader.vs: Removed.
* css3/filters/resources/invalid-type-a-mesh-coord.vs: Removed.
* css3/filters/resources/invalid-type-a-position.vs: Removed.
* css3/filters/resources/invalid-type-a-tex-coord.vs: Removed.
* css3/filters/resources/invalid-type-a-triangle-coord.vs: Removed.
* css3/filters/resources/invalid-type-attribute-array.vs: Removed.
* css3/filters/resources/invalid-type-u-mesh-box.fs: Removed.
* css3/filters/resources/invalid-type-u-mesh-size.fs: Removed.
* css3/filters/resources/invalid-type-u-projection-matrix.fs: Removed.
* css3/filters/resources/invalid-type-u-texture-size.fs: Removed.
* css3/filters/resources/invalid-type-u-tile-size.fs: Removed.
* css3/filters/resources/invalid-type-uniform-array.fs: Removed.
* css3/filters/resources/mix-color.fs: Removed.
* css3/filters/resources/pass-tex-coord.vs: Removed.
* css3/filters/resources/sample-defined-css-u-texture-mix.fs: Removed.
* css3/filters/resources/sample-defined-css-u-texture.fs: Removed.
* css3/filters/resources/sample-u-texture-mix.fs: Removed.
* css3/filters/resources/sample-u-texture.fs: Removed.
* css3/filters/resources/sample-undefined-css-u-texture-mix.fs: Removed.
* css3/filters/resources/sample-undefined-css-u-texture.fs: Removed.
* css3/filters/resources/u-mesh-box-is-unit-square.fs: Removed.
* css3/filters/resources/u-mesh-size.fs: Removed.
* css3/filters/resources/u-texture-size.fs: Removed.
* css3/filters/resources/u-tile-size.fs: Removed.
* css3/filters/resources/unavailable-varying.fs: Removed.
* css3/filters/resources/varying-mix-color.fs: Removed.
* css3/filters/resources/vertex-explode-detached.vs: Removed.
* css3/filters/resources/vertex-horizontal-offset.vs: Removed.
* css3/filters/resources/vertex-offset-parameters.vs: Removed.
* css3/filters/resources/vertex-offset.vs: Removed.
* css3/filters/resources/vertex-rotate.vs: Removed.
* css3/filters/resources/vertex-transform-parameter.vs: Removed.
* css3/filters/script-tests/custom-filter-mix-bindings.js: Removed.
* css3/filters/script-tests/custom-filter-parsing-common.js: Removed.
* css3/filters/script-tests/custom-filter-property-computed-style.js: Removed.
* css3/filters/script-tests/custom-filter-property-parsing-invalid.js: Removed.
* css3/filters/script-tests/custom-filter-property-parsing.js: Removed.
* css3/filters/script-tests/effect-custom-disabled.js: Removed.
* js/dom/global-constructors-attributes-expected.txt:
* platform/mac-mountainlion/js/dom/global-constructors-attributes-expected.txt:
* platform/mac-wk2/TestExpectations:
* platform/mac/TestExpectations:
* platform/mac/js/dom/global-constructors-attributes-expected.txt:
* platform/win/TestExpectations:
* platform/wincairo/TestExpectations:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162644 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Rebaseline after r162640.

* platform/mac-wk2/tiled-drawing/tile-coverage-after-scroll-speculative-expected.txt:
* platform/mac-wk2/tiled-drawing/tile-coverage-speculative-expected.txt:



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162649 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Rename WKPreferences.h to WKPreferencesRef.h and add a stubbed out WKPreferences class
https://bugs.webkit.org/show_bug.cgi?id=127512

Reviewed by Dan Bernstein.

* UIProcess/API/C/WKAPICast.h:
* UIProcess/API/C/WKPreferencesRef.h: Renamed from Source/WebKit2/UIProcess/API/C/WKPreferences.h.
* UIProcess/API/C/WebKit2_C.h:
* UIProcess/API/Cocoa/WKPreferences.h: Added.
* UIProcess/API/Cocoa/WKPreferences.mm: Added.
* WebKit2.xcodeproj/project.pbxproj:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162650 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Enable DFG for the Debugger and Profiler.
<https://webkit.org/b/122847>

Reviewed by Geoffrey Garen.

In this patch, we implement DFG op_debug as a series of 3 checks:
1. Check if the debugger pointer is non-null. This is needed in case
   the debugger has been detached but the DFG code is still running
   on the stack.
2. Check if Debugger::m_shouldPause is true.
3. Check if CodeBlock::m_numBreakpoints is non-zero.

These are the same 3 checks done in the LLINT and baselineJIT. But unlike
the LLINT and baselineJIT, these DFG checks are implemented as
speculationChecks. If the check fails, we OSR exit to the baselineJIT and
let it do the work of servicing the op_debug callback.

Stepping through code in the debugger would work the same way. The top
function being debugged has to be a LLINT or baselineJIT function because
we would have OSR exited if there is a breakpoint in that function. When
we step out of that function to its caller, we expect that the caller will
call back to the debugger at the next op_debug. If the caller function is
a DFG function, the op_debug site will fail its speculation check on
Debugger::m_shouldPause and deopt into a baselineJIT function. Execution
continues from there as usual, and the debugger gets its callback.

For the profile, op_profile_will_call and op_profile_did_call are
implemented as simple runtime calls to service the profiler.

With this patch, Octane performance with the WebInspector open jump from
~2000 to ~2500 (25% progression).

* bytecode/CodeBlock.h:
(JSC::CodeBlock::numBreakpointsAddress):
* bytecode/ExitKind.cpp:
(JSC::exitKindToString):
* bytecode/ExitKind.h:
* debugger/Debugger.cpp:
(JSC::Debugger::toggleBreakpoint):
- removed an obsolete assertion. The debugger can now handle DFG
  CodeBlocks too.
* debugger/Debugger.h:
* dfg/DFGAbstractInterpreterInlines.h:
(JSC::DFG::AbstractInterpreter<AbstractStateType>::executeEffects):
* dfg/DFGByteCodeParser.cpp:
(JSC::DFG::ByteCodeParser::parseBlock):
* dfg/DFGCapabilities.cpp:
(JSC::DFG::capabilityLevel):
* dfg/DFGClobberize.h:
(JSC::DFG::clobberize):
* dfg/DFGFixupPhase.cpp:
(JSC::DFG::FixupPhase::fixupNode):
* dfg/DFGNodeType.h:
* dfg/DFGPredictionPropagationPhase.cpp:
(JSC::DFG::PredictionPropagationPhase::propagate):
* dfg/DFGSafeToExecute.h:
(JSC::DFG::safeToExecute):
* dfg/DFGSpeculativeJIT.h:
(JSC::DFG::SpeculativeJIT::callOperation):
* dfg/DFGSpeculativeJIT32_64.cpp:
(JSC::DFG::SpeculativeJIT::compile):
* dfg/DFGSpeculativeJIT64.cpp:
(JSC::DFG::SpeculativeJIT::compile):
* runtime/JSGlobalObject.h:
(JSC::JSGlobalObject::debuggerAddress):



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162652 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Remove an unneeded synchronous back/forward message
https://bugs.webkit.org/show_bug.cgi?id=127516

Reviewed by Tim Horton.

* UIProcess/WebLoaderClient.cpp:
* UIProcess/WebLoaderClient.h:
* UIProcess/WebPageProxy.cpp:
(WebKit::WebPageProxy::initializeLoaderClient):
* UIProcess/WebPageProxy.h:
* UIProcess/WebPageProxy.messages.in:
* WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
(WebKit::WebFrameLoaderClient::shouldGoToHistoryItem):
* WebProcess/WebPage/WebPage.cpp:
(WebKit::WebPage::WebPage):
* WebProcess/WebPage/WebPage.h:
* WebProcess/WebPage/WebPage.messages.in:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162653 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Try to fix the 32-bit build.

* UIProcess/API/Cocoa/WKPreferences.mm:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162654 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Clean up WKView.mm a little
https://bugs.webkit.org/show_bug.cgi?id=127517

Reviewed by Tim Horton.

Remove an unused ivar and migrate to API constants that were added in Lion.

* UIProcess/API/mac/WKView.mm:
(-[WKView setFrameSize:]):
(-[WKView addWindowObserversForWindow:]):
(-[WKView removeWindowObservers]):
(-[WKView viewDidMoveToWindow]):
(-[WKView _windowDidMiniaturize:]):
(-[WKView _windowDidResize:]):
(-[WKView _windowDidChangeBackingProperties:]):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162655 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Another 32-bit build fix.

* UIProcess/API/mac/WKView.mm:
(-[WKView _windowDidChangeBackingProperties:]):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162656 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Fix build again.

* UIProcess/API/mac/WKView.mm:
(-[WKView _windowDidChangeBackingProperties:]):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162657 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Explicitly link XPC services with AppKit
https://bugs.webkit.org/show_bug.cgi?id=127520
<rdar://problem/15759718>

Reviewed by Mark Rowe.

Explicitly link XPC services that use the _NSApplicationMain run loop type with AppKit.

* Configurations/PluginService.32.xcconfig:
* Configurations/PluginService.64.xcconfig:
* Configurations/PluginService.Development.xcconfig:
* Configurations/WebContentService.Development.xcconfig:
* Configurations/WebContentService.xcconfig:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162658 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[CSS Shapes] Image valued shape size and position should conform to the spec
https://bugs.webkit.org/show_bug.cgi?id=123295

Reviewed by Andreas Kling.

Source/WebCore:

Implement image valued shape-outside scaling and translation per the spec,
http://dev.w3.org/csswg/css-shapes/#shapes-from-image:

"The image is sized and positioned as if it were a replaced element whose
specified width and height are the same as the element’s used content box size."

This change doesn't completely fulfill the spec, it's limited to image elements
and shape-outside.

Tests: fast/shapes/shape-outside-floats/shape-outside-image-fit-001.html
       fast/shapes/shape-outside-floats/shape-outside-image-fit-002.html
       fast/shapes/shape-outside-floats/shape-outside-image-fit-003.html
       fast/shapes/shape-outside-floats/shape-outside-image-fit-004.html

* rendering/shapes/Shape.h:
* rendering/shapes/Shape.cpp:
(WebCore::Shape::createRasterShape):
Added an imageRect parameter which specifies where the shape image is to
appear relative to the content box. The imageRect implies both scaling and
translation of the shape image.

* rendering/shapes/ShapeInfo.cpp:
(WebCore::ShapeInfo<RenderType>::computedShape):
(WebCore::getShapeImageRect):
For replaced elements, compute the shape's imageRect with
RenderReplaced::replacedContentRect().

LayoutTests:

* fast/shapes/shape-outside-floats/shape-outside-image-fit-001-expected.html: Added.
* fast/shapes/shape-outside-floats/shape-outside-image-fit-001.html: Added.
* fast/shapes/shape-outside-floats/shape-outside-image-fit-002-expected.html: Added.
* fast/shapes/shape-outside-floats/shape-outside-image-fit-002.html: Added.
* fast/shapes/shape-outside-floats/shape-outside-image-fit-003-expected.html: Added.
* fast/shapes/shape-outside-floats/shape-outside-image-fit-003.html: Added.
* fast/shapes/shape-outside-floats/shape-outside-image-fit-004-expected.html: Added.
* fast/shapes/shape-outside-floats/shape-outside-image-fit-004.html: Added.


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