Changeset 139824 in webkit


Ignore:
Timestamp:
Jan 15, 2013 7:02:58 PM (11 years ago)
Author:
charles.wei@torchmobile.com.cn
Message:

Fullscreen element should not share styles with it's siblings.
https://bugs.webkit.org/show_bug.cgi?id=106888

Reviewed by George Staikos.

Source/WebCore:

Test: fullscreen/full-screen-no-style-sharing.html

  • css/StyleResolver.cpp:

(WebCore::StyleResolver::canShareStyleWithElement):

LayoutTests:

  • fullscreen/full-screen-no-style-sharing-expected.txt: Added.
  • fullscreen/full-screen-no-style-sharing.html: Added.
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r139823 r139824  
     12013-01-15  Charles Wei  <charles.wei@torchmobile.com.cn>
     2
     3        Fullscreen element should not share styles with it's siblings.
     4        https://bugs.webkit.org/show_bug.cgi?id=106888
     5
     6        Reviewed by George Staikos.
     7
     8        * fullscreen/full-screen-no-style-sharing-expected.txt: Added.
     9        * fullscreen/full-screen-no-style-sharing.html: Added.
     10
    1112013-01-15  Dominic Cooney   <dominicc@chromium.org>
    212
  • trunk/Source/WebCore/ChangeLog

    r139822 r139824  
     12013-01-15  Charles Wei  <charles.wei@torchmobile.com.cn>
     2
     3        Fullscreen element should not share styles with it's siblings.
     4        https://bugs.webkit.org/show_bug.cgi?id=106888
     5
     6        Reviewed by George Staikos.
     7
     8        Test: fullscreen/full-screen-no-style-sharing.html
     9
     10        * css/StyleResolver.cpp:
     11        (WebCore::StyleResolver::canShareStyleWithElement):
     12
    1132013-01-15  Tim Horton  <timothy_horton@apple.com>
    214
  • trunk/Source/WebCore/css/StyleResolver.cpp

    r139817 r139824  
    12461246#endif
    12471247
     1248#if ENABLE(FULLSCREEN_API)
     1249    if (element == element->document()->webkitCurrentFullScreenElement() || m_element == m_element->document()->webkitCurrentFullScreenElement())
     1250        return false;
     1251#endif
    12481252    return true;
    12491253}
Note: See TracChangeset for help on using the changeset viewer.