Changeset 146556 in webkit


Ignore:
Timestamp:
Mar 21, 2013 8:02:18 PM (11 years ago)
Author:
tasak@google.com
Message:

[Shadow]: @host styles are not applied dynamically
https://bugs.webkit.org/show_bug.cgi?id=112869

Reviewed by Elliott Sprehn.

Source/WebCore:

Need to add features of @host @-rules to rule feature set.

Test: fast/dom/shadow/athost-apply-dynamically.html

  • css/StyleScopeResolver.cpp:

(WebCore::StyleScopeResolver::collectFeaturesTo):

LayoutTests:

  • fast/dom/shadow/athost-apply-dynamically-expected.html: Added.
  • fast/dom/shadow/athost-apply-dynamically.html: Added.
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r146555 r146556  
     12013-03-21  Takashi Sakamoto  <tasak@google.com>
     2
     3        [Shadow]: @host styles are not applied dynamically
     4        https://bugs.webkit.org/show_bug.cgi?id=112869
     5
     6        Reviewed by Elliott Sprehn.
     7
     8        * fast/dom/shadow/athost-apply-dynamically-expected.html: Added.
     9        * fast/dom/shadow/athost-apply-dynamically.html: Added.
     10
    1112013-03-21  Hayato Ito  <hayato@chromium.org>
    212
  • trunk/Source/WebCore/ChangeLog

    r146555 r146556  
     12013-03-21  Takashi Sakamoto  <tasak@google.com>
     2
     3        [Shadow]: @host styles are not applied dynamically
     4        https://bugs.webkit.org/show_bug.cgi?id=112869
     5
     6        Reviewed by Elliott Sprehn.
     7
     8        Need to add features of @host @-rules to rule feature set.
     9
     10        Test: fast/dom/shadow/athost-apply-dynamically.html
     11
     12        * css/StyleScopeResolver.cpp:
     13        (WebCore::StyleScopeResolver::collectFeaturesTo):
     14
    1152013-03-21  Hayato Ito  <hayato@chromium.org>
    216
  • trunk/Source/WebCore/css/StyleScopeResolver.cpp

    r141570 r146556  
    156156    for (ScopedRuleSetMap::iterator it = m_authorStyles.begin(); it != m_authorStyles.end(); ++it)
    157157        features.add(it->value->features());
     158#if ENABLE(SHADOW_DOM)
     159    for (ScopedRuleSetMap::iterator it = m_atHostRules.begin(); it != m_atHostRules.end(); ++it)
     160        features.add(it->value->features());
     161#endif
    158162}
    159163
Note: See TracChangeset for help on using the changeset viewer.