Changeset 168465 in webkit


Ignore:
Timestamp:
May 8, 2014 1:16:31 AM (10 years ago)
Author:
commit-queue@webkit.org
Message:

[CSS Blending] Changing isolation CSS property should not trigger repaint in RenderStyle::changeRequiresLayerRepaint
https://bugs.webkit.org/show_bug.cgi?id=131436

Patch by Ion Rosca <Ion Rosca> on 2014-05-08
Reviewed by Dirk Schulze.

Source/WebCore:
The isolation:isolate property will create a stacking context. This is done in
StyleResolver::adjustRenderStyle where z-index is forced to 0.
If the element is already a stacking context for any other reason,
changing the isolation flag should not have any effect.

Tests: css3/blending/repaint/blend-mode-turn-off-isolation-no-effect.html

css3/blending/repaint/blend-mode-turn-off-isolation.html

  • rendering/style/RenderStyle.cpp:

(WebCore::RenderStyle::changeRequiresLayerRepaint):
do not request repaint if isolation has changed.

LayoutTests:

  • css3/blending/repaint/blend-mode-turn-off-isolation-expected.txt: Added.
  • css3/blending/repaint/blend-mode-turn-off-isolation-no-effect-expected.txt: Added.
  • css3/blending/repaint/blend-mode-turn-off-isolation-no-effect.html: Added.
  • css3/blending/repaint/blend-mode-turn-off-isolation.html: Added.
Location:
trunk
Files:
4 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r168464 r168465  
     12014-05-08  Ion Rosca  <rosca@adobe.com>
     2
     3        [CSS Blending] Changing isolation CSS property should not trigger repaint in RenderStyle::changeRequiresLayerRepaint
     4        https://bugs.webkit.org/show_bug.cgi?id=131436
     5
     6        Reviewed by Dirk Schulze.
     7
     8        * css3/blending/repaint/blend-mode-turn-off-isolation-expected.txt: Added.
     9        * css3/blending/repaint/blend-mode-turn-off-isolation-no-effect-expected.txt: Added.
     10        * css3/blending/repaint/blend-mode-turn-off-isolation-no-effect.html: Added.
     11        * css3/blending/repaint/blend-mode-turn-off-isolation.html: Added.
     12
    1132014-05-08  Manuel Rego Casasnovas  <rego@igalia.com>
    214
  • trunk/Source/WebCore/ChangeLog

    r168464 r168465  
     12014-05-08  Ion Rosca  <rosca@adobe.com>
     2
     3        [CSS Blending] Changing isolation CSS property should not trigger repaint in RenderStyle::changeRequiresLayerRepaint
     4        https://bugs.webkit.org/show_bug.cgi?id=131436
     5
     6        Reviewed by Dirk Schulze.
     7
     8        The isolation:isolate property will create a stacking context. This is done in
     9        StyleResolver::adjustRenderStyle where z-index is forced to 0.
     10        If the element is already a stacking context for any other reason,
     11        changing the isolation flag should not have any effect.
     12
     13        Tests: css3/blending/repaint/blend-mode-turn-off-isolation-no-effect.html
     14               css3/blending/repaint/blend-mode-turn-off-isolation.html
     15
     16        * rendering/style/RenderStyle.cpp:
     17        (WebCore::RenderStyle::changeRequiresLayerRepaint):
     18        do not request repaint if isolation has changed.
     19
    1202014-05-08  Manuel Rego Casasnovas  <rego@igalia.com>
    221
  • trunk/Source/WebCore/rendering/style/RenderStyle.cpp

    r167617 r168465  
    664664    if (rareNonInheritedData->m_effectiveBlendMode != other->rareNonInheritedData->m_effectiveBlendMode)
    665665        return true;
    666 
    667     if (rareNonInheritedData->m_isolation != other->rareNonInheritedData->m_isolation)
    668         return true;
    669666#endif
    670667
Note: See TracChangeset for help on using the changeset viewer.