Changeset 83400 in webkit


Ignore:
Timestamp:
Apr 10, 2011 10:35:54 AM (13 years ago)
Author:
Dimitri Glazkov
Message:

2011-04-10 Dimitri Glazkov <Dimitri Glazkov>

Reviewed by Anders Carlsson.

REGRESSION(r83256): Text-decoration bleeds into shadow DOM
https://bugs.webkit.org/show_bug.cgi?id=58205

  • platform/chromium/test_expectations.txt: Removed the test that starts

passing after this change.

2011-04-10 Dimitri Glazkov <Dimitri Glazkov>

Reviewed by Anders Carlsson.

REGRESSION(r83256): Text-decoration bleeds into shadow DOM
https://bugs.webkit.org/show_bug.cgi?id=58205

Now that the shadow root is a never-styled element, we need to walk to
parent to find out if we're inside of a shadow DOM subtree.

Test: media/controls-styling.html

  • css/CSSStyleSelector.cpp: (WebCore::isAtShadowBoundary): Added helper function. (WebCore::CSSStyleSelector::adjustRenderStyle): Changed to use the helper.
Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r83399 r83400  
     12011-04-10  Dimitri Glazkov  <dglazkov@chromium.org>
     2
     3        Reviewed by Anders Carlsson.
     4
     5        REGRESSION(r83256): Text-decoration bleeds into shadow DOM
     6        https://bugs.webkit.org/show_bug.cgi?id=58205
     7
     8        * platform/chromium/test_expectations.txt: Removed the test that starts
     9            passing after this change.
     10
    1112011-04-10  Dimitri Glazkov  <dglazkov@chromium.org>
    212
  • trunk/LayoutTests/platform/chromium/test_expectations.txt

    r83399 r83400  
    34513451BUGWK58193 WIN VISTA : svg/text/text-fonts-01-t.svg = IMAGE
    34523452BUGWK58193 WIN VISTA : svg/text/text-intro-05-t.svg = IMAGE
    3453 
    3454 BUGWK58205 : media/controls-styling.html = IMAGE
  • trunk/Source/WebCore/ChangeLog

    r83397 r83400  
     12011-04-10  Dimitri Glazkov  <dglazkov@chromium.org>
     2
     3        Reviewed by Anders Carlsson.
     4
     5        REGRESSION(r83256): Text-decoration bleeds into shadow DOM
     6        https://bugs.webkit.org/show_bug.cgi?id=58205
     7
     8        Now that the shadow root is a never-styled element, we need to walk to
     9        parent to find out if we're inside of a shadow DOM subtree.
     10
     11        Test: media/controls-styling.html
     12
     13        * css/CSSStyleSelector.cpp:
     14        (WebCore::isAtShadowBoundary): Added helper function.
     15        (WebCore::CSSStyleSelector::adjustRenderStyle): Changed to use the helper.
     16
    1172011-04-07  Dimitri Glazkov  <dglazkov@chromium.org>
    218
  • trunk/Source/WebCore/css/CSSStyleSelector.cpp

    r83345 r83400  
    18431843}
    18441844
     1845static inline bool isAtShadowBoundary(Element* element)
     1846{
     1847    if (!element)
     1848        return false;
     1849
     1850    ContainerNode* parentNode = element->parentNode();
     1851    return parentNode && parentNode->isShadowBoundary();
     1852}
     1853
    18451854void CSSStyleSelector::adjustRenderStyle(RenderStyle* style, RenderStyle* parentStyle, Element *e)
    18461855{
     
    19671976    // tables, inline blocks, inline tables, run-ins, or shadow DOM.
    19681977    if (style->display() == TABLE || style->display() == INLINE_TABLE || style->display() == RUN_IN
    1969         || style->display() == INLINE_BLOCK || style->display() == INLINE_BOX || (e && e->isShadowRoot()))
     1978        || style->display() == INLINE_BLOCK || style->display() == INLINE_BOX || isAtShadowBoundary(e))
    19701979        style->setTextDecorationsInEffect(style->textDecoration());
    19711980    else
Note: See TracChangeset for help on using the changeset viewer.