Changeset 195863 in webkit


Ignore:
Timestamp:
Jan 29, 2016 4:06:48 PM (8 years ago)
Author:
rniwa@webkit.org
Message:

fast/shadow-dom/Element-interface-attachShadow.html fails on iOS
https://bugs.webkit.org/show_bug.cgi?id=153681

Reviewed by Antti Koivisto.

Source/WebCore:

The bug was caused by canHaveUserAgentShadowRoot() returning false on a meter element since it's disabled on iOS.
Override HTMLUnknownElement's canHaveUserAgentShadowRoot to return false for compatbility on iOS.

  • html/HTMLUnknownElement.h:

(WebCore::HTMLUnknownElement::canHaveUserAgentShadowRoot):

LayoutTests:

Enable shadow DOM and custom elements tests on iOS; matches that's in platform/mac/TestExpectations.

  • platform/ios-simulator/TestExpectations:
Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r195861 r195863  
     12016-01-29  Ryosuke Niwa  <rniwa@webkit.org>
     2
     3        fast/shadow-dom/Element-interface-attachShadow.html fails on iOS
     4        https://bugs.webkit.org/show_bug.cgi?id=153681
     5
     6        Reviewed by Antti Koivisto.
     7
     8        Enable shadow DOM and custom elements tests on iOS; matches that's in platform/mac/TestExpectations.
     9
     10        * platform/ios-simulator/TestExpectations:
     11
    1122016-01-29  Ryan Haddad  <ryanhaddad@apple.com>
    213
  • trunk/LayoutTests/platform/ios-simulator/TestExpectations

    r195822 r195863  
    215215fast/loader/stateobjects/replacestate-frequency-with-user-gesture.html [ Skip ]
    216216fast/loader/stateobjects/pushstate-frequency-with-user-gesture.html [ Skip ]
     217
     218webkit.org/b/148695 fast/shadow-dom [ Pass ]
     219webkit.org/b/149440 fast/shadow-dom/css-scoping-shadow-host-functional-rule.html [ ImageOnlyFailure ]
     220webkit.org/b/149441 fast/shadow-dom/css-scoping-shadow-slotted-rule.html [ ImageOnlyFailure ]
     221webkit.org/b/149441 fast/shadow-dom/css-scoping-shadow-slot-display-override.html [ ImageOnlyFailure ]
     222
     223webkit.org/b/150225 fast/custom-elements [ Pass ]
    217224
    218225###
  • trunk/Source/WebCore/ChangeLog

    r195850 r195863  
     12016-01-29  Ryosuke Niwa  <rniwa@webkit.org>
     2
     3        fast/shadow-dom/Element-interface-attachShadow.html fails on iOS
     4        https://bugs.webkit.org/show_bug.cgi?id=153681
     5
     6        Reviewed by Antti Koivisto.
     7
     8        The bug was caused by canHaveUserAgentShadowRoot() returning false on a meter element since it's disabled on iOS.
     9        Override HTMLUnknownElement's canHaveUserAgentShadowRoot to return false for compatbility on iOS.
     10
     11        * html/HTMLUnknownElement.h:
     12        (WebCore::HTMLUnknownElement::canHaveUserAgentShadowRoot):
     13
    1142016-01-29  Brady Eidson  <beidson@apple.com>
    215
  • trunk/Source/WebCore/html/HTMLUnknownElement.h

    r177996 r195863  
    4848    }
    4949
     50#if ENABLE(METER_ELEMENT)
     51    virtual bool canHaveUserAgentShadowRoot() const override final { return false; }
     52#else
     53    virtual bool canHaveUserAgentShadowRoot() const override final { return localName() == "meter"; }
     54#endif
     55
    5056    virtual bool isHTMLUnknownElement() const override { return true; }
    5157};
Note: See TracChangeset for help on using the changeset viewer.