2012-09-19  Nate Chapin  <japhet@chromium.org>

        chromium TestExpectations update.
        fast/filesystem/file-writer-write-overlapped.html and
        fast/filesystem/workers/file-writer-write-overlapped.html
        are flaky in WIN DEBUG only.

        * platform/chromium/TestExpectations:



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@129014 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Chromium] Remove unused popupsAllowed function from PlatformSupport
https://bugs.webkit.org/show_bug.cgi?id=96521

Reviewed by Eric Seidel.

Part of a refactoring series. See tracking bug 82948.

Source/WebCore:

* bindings/v8/NPV8Object.cpp:
(WebCore::v8ObjectToNPObject):
(_NPN_Evaluate):
(_NPN_GetProperty):
* platform/chromium/PlatformSupport.h:
(PlatformSupport):

Source/WebKit/chromium:

* src/PlatformSupport.cpp:
(WebCore):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@129016 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Implement 'mask-type' for <mask>
https://bugs.webkit.org/show_bug.cgi?id=97011

Reviewed by Andreas Kling.

Source/WebCore:

The CSS Masking specification defines the presentation attribute 'mask-type' to
switch between luminance and alpha masking. 'mask-type' just affects the SVG
mask element. The luminance masking is the current behavior of of SVG masking.
Alpha masking is simular to '-webkit-mask-image'.

This patch implements this property and make it possible to switch between both
masking modes. Since the default value is 'luminance', this does not break
exisiting content which is tested with exisiting tests.

http://dvcs.w3.org/hg/FXTF/raw-file/tip/masking/index.html#the-mask-type

Tests: svg/css/mask-type.html
       svg/masking/mask-type-alpha-expected.svg
       svg/masking/mask-type-alpha.svg
       svg/masking/mask-type-luminance-expected.svg
       svg/masking/mask-type-luminance.svg
       svg/masking/mask-type-not-set-expected.svg
       svg/masking/mask-type-not-set.svg

* css/CSSComputedStyleDeclaration.cpp: Add mask-type property.
(WebCore):
(WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
* css/CSSPrimitiveValueMappings.h:
(WebCore::CSSPrimitiveValue::CSSPrimitiveValue):
(WebCore):
(WebCore::CSSPrimitiveValue::operator EMaskType):
* css/CSSProperty.cpp:
(WebCore::CSSProperty::isInheritedProperty):
* css/SVGCSSComputedStyleDeclaration.cpp:
(WebCore::CSSComputedStyleDeclaration::getSVGPropertyCSSValue):
* css/SVGCSSParser.cpp:
(WebCore::CSSParser::parseSVGValue):
* css/SVGCSSPropertyNames.in: Add mask-type.
* css/SVGCSSStyleSelector.cpp:
(WebCore::StyleResolver::applySVGProperty):
* css/SVGCSSValueKeywords.in:
* rendering/style/SVGRenderStyle.cpp:
(WebCore::SVGRenderStyle::diff):
* rendering/style/SVGRenderStyle.h:
(WebCore::SVGRenderStyle::initialMaskType):
(WebCore::SVGRenderStyle::setMaskType):
(SVGRenderStyle):
(WebCore::SVGRenderStyle::maskType):
(WebCore::SVGRenderStyle::setBitDefaults):
* rendering/style/SVGRenderStyleDefs.h:
* rendering/svg/RenderSVGResourceMasker.cpp:

    Switch between the two masking modes according to the
    computed value of mask-type.

(WebCore::RenderSVGResourceMasker::drawContentIntoMaskImage):
* svg/SVGStyledElement.cpp:
(WebCore::SVGStyledElement::cssPropertyIdForSVGAttributeName):
(WebCore::cssPropertyToTypeMap):
* svg/svgattrs.in: Add the new attribute to the attribute list.

LayoutTests:

Added new tests for switching the masking mode on <mask> element with 'mask-type'.

* svg/css/mask-type-expected.txt: Added.
* svg/css/mask-type.html: Added.
* svg/masking/mask-type-alpha-expected.svg: Added.
* svg/masking/mask-type-alpha.svg: Added.
* svg/masking/mask-type-luminance-expected.svg: Added.
* svg/masking/mask-type-luminance.svg: Added.
* svg/masking/mask-type-not-set-expected.svg: Added.
* svg/masking/mask-type-not-set.svg: Added.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@129018 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[EFL][WK2] fast/forms/select-writing-direction-natural.html is failing
https://bugs.webkit.org/show_bug.cgi?id=97082

Patch by Christophe Dumez <christophe.dumez@intel.com> on 2012-09-19
Reviewed by Kenneth Rohde Christiansen.

Source/WebKit2:

WebChromeClient::selectItemWritingDirectionIsNatural() now returns
true for EFL-WK2, consistently with EFL-WK1, so that the style
is properly adjusted in RenderMenuList::adjustInnerStyle().

* WebProcess/WebCoreSupport/WebChromeClient.cpp:
(WebKit::WebChromeClient::selectItemWritingDirectionIsNatural):

LayoutTests:

Rebaseline fast/forms/select-writing-direction-natural.html and
unskip it for efl-wk2.

* platform/efl-wk2/TestExpectations:
* platform/efl/fast/forms/select-writing-direction-natural-expected.png:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@129019 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Chromium] Move notifyJSOutOfMemory out of PlatformSupport
https://bugs.webkit.org/show_bug.cgi?id=97116

Reviewed by Adam Barth.

Source/WebCore:

Part of a refactoring series. See tracking bug 82948.

* bindings/v8/V8Binding.cpp:
(WebCore::handleOutOfMemory):
* loader/FrameLoaderClient.h:
(WebCore::FrameLoaderClient::didExhaustMemoryAvailableForScript):
(FrameLoaderClient):
* platform/chromium/PlatformSupport.h:
(PlatformSupport):

Source/WebKit/chromium:

Part of a refactoring series. See tracking bug 82948.

* src/FrameLoaderClientImpl.cpp:
(WebKit::FrameLoaderClientImpl::didExhaustMemoryAvailableForScript):
(WebKit):
* src/FrameLoaderClientImpl.h:
(FrameLoaderClientImpl):
* src/PlatformSupport.cpp:
(WebCore):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@129020 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2012-09-19  Nate Chapin  <japhet@chromium.org>

        Chromium gardening.
        fast/filesystem/workers/detached-frame-crash.html does not appear to be
        flakily crashing anymore.

        * platform/chromium/TestExpectations:



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@129021 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[WTR] Memory leaks in TestRunner::deliverWebIntent()
https://bugs.webkit.org/show_bug.cgi?id=97111

Patch by Sudarsana Nagineni <sudarsana.nagineni@intel.com> on 2012-09-19
Reviewed by Kenneth Rohde Christiansen.

Source/WebKit2:

Fix memory leaks in WKBundleIntentCreate() by adopting strings
created with WKStringCreateWithUTF8CString().

* WebProcess/InjectedBundle/API/c/WKBundleIntent.cpp:
(WKBundleIntentCreate):

Tools:

Fix memory leaks in deliverWebIntent() by adopting strings
created with WKStringCreateWithUTF8CString().

* WebKitTestRunner/InjectedBundle/TestRunner.cpp:
(WTR::TestRunner::deliverWebIntent):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@129022 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[chromium] Support high DPI scroll bar on top level web frame.
https://bugs.webkit.org/show_bug.cgi?id=95134

Patch by Robert Flack <flackr@chromium.org> on 2012-09-19
Reviewed by Adrienne Walker.

Calls setAppliesPageScale(true) on root scrollbar layers as these are not scaled.

* src/NonCompositedContentHost.cpp:
(WebKit::setScrollbarBoundsContainPageScale):
(WebKit):
(WebKit::NonCompositedContentHost::setViewport):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@129023 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[BlackBerry] Remove custom painting code for searchCancel
https://bugs.webkit.org/show_bug.cgi?id=97119

Reviewed by Antonio Gomes.

Remove the dynamic painting code for searchCancel, we use a png file now.

* platform/graphics/blackberry/ImageBlackBerry.cpp:
(WebCore::Image::loadPlatformResource):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@129024 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2012-09-19  Nate Chapin  <japhet@chromium.org>

        Chromium gardening, remove flaky tests that don't appear to
        actually be flaky.
        https://bugs.webkit.org/show_bug.cgi?id=78725

        * platform/chromium/TestExpectations:



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