Changeset 198963 in webkit


Ignore:
Timestamp:
Apr 1, 2016 5:19:32 PM (8 years ago)
Author:
Simon Fraser
Message:

Backdrop Filter should repaint when changed via script
https://bugs.webkit.org/show_bug.cgi?id=149319
rdar://problem/22749892

Reviewed by Tim Horton.

Source/WebCore:

When backdrop filters change, we need to trigger a recomposite, just as we do
for filters. It's ok to re-use ContextSensitivePropertyFilter because
adjustStyleDifference() does the right thing.

Test: css3/filters/backdrop/dynamic-backdrop-filter-change.html

  • rendering/style/RenderStyle.cpp:

(WebCore::RenderStyle::changeRequiresLayerRepaint):

LayoutTests:

  • css3/filters/backdrop/dynamic-backdrop-filter-change-expected.html: Added.
  • css3/filters/backdrop/dynamic-backdrop-filter-change.html: Added.
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r198958 r198963  
     12016-04-01  Simon Fraser  <simon.fraser@apple.com>
     2
     3        Backdrop Filter should repaint when changed via script
     4        https://bugs.webkit.org/show_bug.cgi?id=149319
     5        rdar://problem/22749892
     6
     7        Reviewed by Tim Horton.
     8
     9        * css3/filters/backdrop/dynamic-backdrop-filter-change-expected.html: Added.
     10        * css3/filters/backdrop/dynamic-backdrop-filter-change.html: Added.
     11
    1122016-03-31  Zalan Bujtas  <zalan@apple.com>
    213
  • trunk/Source/WebCore/ChangeLog

    r198958 r198963  
     12016-04-01  Simon Fraser  <simon.fraser@apple.com>
     2
     3        Backdrop Filter should repaint when changed via script
     4        https://bugs.webkit.org/show_bug.cgi?id=149319
     5        rdar://problem/22749892
     6
     7        Reviewed by Tim Horton.
     8
     9        When backdrop filters change, we need to trigger a recomposite, just as we do
     10        for filters. It's ok to re-use ContextSensitivePropertyFilter because
     11        adjustStyleDifference() does the right thing.
     12
     13        Test: css3/filters/backdrop/dynamic-backdrop-filter-change.html
     14
     15        * rendering/style/RenderStyle.cpp:
     16        (WebCore::RenderStyle::changeRequiresLayerRepaint):
     17
    1182016-03-31  Zalan Bujtas  <zalan@apple.com>
    219
  • trunk/Source/WebCore/rendering/style/RenderStyle.cpp

    r198075 r198963  
    789789        // Don't return; keep looking for another change.
    790790    }
     791
     792#if ENABLE(FILTERS_LEVEL_2)
     793    if (rareNonInheritedData->m_backdropFilter != other.rareNonInheritedData->m_backdropFilter) {
     794        changedContextSensitiveProperties |= ContextSensitivePropertyFilter;
     795        // Don't return; keep looking for another change.
     796    }
     797#endif
    791798
    792799    if (rareNonInheritedData->m_mask != other.rareNonInheritedData->m_mask
Note: See TracChangeset for help on using the changeset viewer.