Changeset 277367 in webkit
- Timestamp:
- May 12, 2021, 7:17:38 AM (5 years ago)
- Location:
- trunk
- Files:
-
- 2 deleted
- 6 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/fast/css/visited-link-mix-blend-mode-expected.html (deleted)
-
LayoutTests/fast/css/visited-link-mix-blend-mode.html (deleted)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/rendering/style/RenderStyle.cpp (modified) (1 diff)
-
Source/WebCore/rendering/style/RenderStyle.h (modified) (2 diffs)
-
Source/WebCore/rendering/style/StyleRareInheritedData.cpp (modified) (3 diffs)
-
Source/WebCore/rendering/style/StyleRareInheritedData.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r277366 r277367 1 2021-05-12 Commit Queue <commit-queue@webkit.org> 2 3 Unreviewed, reverting r277320 and r277329. 4 https://bugs.webkit.org/show_bug.cgi?id=225698 5 6 Added broken test fast/css/visited-link-mix-blend-mode.html 7 8 Reverted changesets: 9 10 "Don't allow :visited link style in subtrees that use mix- 11 blend-mode" 12 https://bugs.webkit.org/show_bug.cgi?id=225446 13 https://trac.webkit.org/changeset/277320 14 15 "Don't allow :visited link style in subtrees that use mix- 16 blend-mode" 17 https://bugs.webkit.org/show_bug.cgi?id=225446 18 https://trac.webkit.org/changeset/277329 19 1 20 2021-05-12 Diego Pino Garcia <dpino@igalia.com> 2 21 -
trunk/Source/WebCore/ChangeLog
r277365 r277367 1 2021-05-12 Commit Queue <commit-queue@webkit.org> 2 3 Unreviewed, reverting r277320 and r277329. 4 https://bugs.webkit.org/show_bug.cgi?id=225698 5 6 Added broken test fast/css/visited-link-mix-blend-mode.html 7 8 Reverted changesets: 9 10 "Don't allow :visited link style in subtrees that use mix- 11 blend-mode" 12 https://bugs.webkit.org/show_bug.cgi?id=225446 13 https://trac.webkit.org/changeset/277320 14 15 "Don't allow :visited link style in subtrees that use mix- 16 blend-mode" 17 https://bugs.webkit.org/show_bug.cgi?id=225446 18 https://trac.webkit.org/changeset/277329 19 1 20 2021-05-12 Jean-Yves Avenard <jya@apple.com> 2 21 -
trunk/Source/WebCore/rendering/style/RenderStyle.cpp
r277320 r277367 2115 2115 return unvisitedColor; 2116 2116 2117 #if ENABLE(CSS_COMPOSITING)2118 if (isInSubtreeWithBlendMode())2119 return unvisitedColor;2120 #endif2121 2122 2117 Color visitedColor = colorResolvingCurrentColor(colorProperty, true); 2123 2118 -
trunk/Source/WebCore/rendering/style/RenderStyle.h
r277329 r277367 822 822 #if ENABLE(CSS_COMPOSITING) 823 823 BlendMode blendMode() const { return static_cast<BlendMode>(m_rareNonInheritedData->effectiveBlendMode); } 824 void setBlendMode(BlendMode );824 void setBlendMode(BlendMode mode) { SET_VAR(m_rareNonInheritedData, effectiveBlendMode, static_cast<unsigned>(mode)); } 825 825 bool hasBlendMode() const { return static_cast<BlendMode>(m_rareNonInheritedData->effectiveBlendMode) != BlendMode::Normal; } 826 bool isInSubtreeWithBlendMode() const { return m_rareInheritedData->isInSubtreeWithBlendMode; }827 826 828 827 Isolation isolation() const { return static_cast<Isolation>(m_rareNonInheritedData->isolation); } … … 2207 2206 } 2208 2207 2209 #if ENABLE(CSS_COMPOSITING)2210 inline void RenderStyle::setBlendMode(BlendMode mode)2211 {2212 SET_VAR(m_rareNonInheritedData, effectiveBlendMode, static_cast<unsigned>(mode));2213 SET_VAR(m_rareInheritedData, isInSubtreeWithBlendMode, mode != BlendMode::Normal);2214 }2215 #endif2216 2217 2208 inline void RenderStyle::setLogicalWidth(Length&& logicalWidth) 2218 2209 { -
trunk/Source/WebCore/rendering/style/StyleRareInheritedData.cpp
r277320 r277367 136 136 , hasAutoCaretColor(true) 137 137 , hasVisitedLinkAutoCaretColor(true) 138 , isInSubtreeWithBlendMode(false)139 138 , effectiveTouchActions(RenderStyle::initialTouchActions()) 140 139 , strokeWidth(RenderStyle::initialStrokeWidth()) … … 233 232 , hasAutoCaretColor(o.hasAutoCaretColor) 234 233 , hasVisitedLinkAutoCaretColor(o.hasVisitedLinkAutoCaretColor) 235 , isInSubtreeWithBlendMode(o.isInSubtreeWithBlendMode)236 234 , effectiveTouchActions(o.effectiveTouchActions) 237 235 , eventListenerRegionTypes(o.eventListenerRegionTypes) … … 357 355 && hasAutoCaretColor == o.hasAutoCaretColor 358 356 && hasVisitedLinkAutoCaretColor == o.hasVisitedLinkAutoCaretColor 359 && isInSubtreeWithBlendMode == o.isInSubtreeWithBlendMode360 357 && effectiveTouchActions == o.effectiveTouchActions 361 358 && eventListenerRegionTypes == o.eventListenerRegionTypes -
trunk/Source/WebCore/rendering/style/StyleRareInheritedData.h
r277320 r277367 162 162 unsigned hasVisitedLinkAutoCaretColor : 1; 163 163 164 unsigned isInSubtreeWithBlendMode : 1;165 166 164 OptionSet<TouchAction> effectiveTouchActions; 167 165 OptionSet<EventListenerRegionType> eventListenerRegionTypes;
Note:
See TracChangeset
for help on using the changeset viewer.