Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(304)

Side by Side Diff: third_party/WebKit/Source/core/layout/svg/LayoutSVGModelObject.cpp

Issue 1771773002: Handle '<something>' to 'none' changes of 'transform' for SVG (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « third_party/WebKit/Source/core/layout/svg/LayoutSVGBlock.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2009, Google Inc. All rights reserved. 2 * Copyright (c) 2009, Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 96
97 void LayoutSVGModelObject::addLayerHitTestRects(LayerHitTestRects&, const PaintL ayer* currentLayer, const LayoutPoint& layerOffset, const LayoutRect& containerR ect) const 97 void LayoutSVGModelObject::addLayerHitTestRects(LayerHitTestRects&, const PaintL ayer* currentLayer, const LayoutPoint& layerOffset, const LayoutRect& containerR ect) const
98 { 98 {
99 // We don't walk into SVG trees at all - just report their container. 99 // We don't walk into SVG trees at all - just report their container.
100 } 100 }
101 101
102 void LayoutSVGModelObject::styleDidChange(StyleDifference diff, const ComputedSt yle* oldStyle) 102 void LayoutSVGModelObject::styleDidChange(StyleDifference diff, const ComputedSt yle* oldStyle)
103 { 103 {
104 if (diff.needsFullLayout()) { 104 if (diff.needsFullLayout()) {
105 setNeedsBoundariesUpdate(); 105 setNeedsBoundariesUpdate();
106 if (style()->hasTransform()) 106 if (diff.transformChanged())
107 setNeedsTransformUpdate(); 107 setNeedsTransformUpdate();
108 } 108 }
109 109
110 if (isBlendingAllowed()) { 110 if (isBlendingAllowed()) {
111 bool hasBlendModeChanged = (oldStyle && oldStyle->hasBlendMode()) == !st yle()->hasBlendMode(); 111 bool hasBlendModeChanged = (oldStyle && oldStyle->hasBlendMode()) == !st yle()->hasBlendMode();
112 if (parent() && hasBlendModeChanged) 112 if (parent() && hasBlendModeChanged)
113 parent()->descendantIsolationRequirementsChanged(style()->hasBlendMo de() ? DescendantIsolationRequired : DescendantIsolationNeedsUpdate); 113 parent()->descendantIsolationRequirementsChanged(style()->hasBlendMo de() ? DescendantIsolationRequired : DescendantIsolationNeedsUpdate);
114 } 114 }
115 115
116 LayoutObject::styleDidChange(diff, oldStyle); 116 LayoutObject::styleDidChange(diff, oldStyle);
(...skipping 23 matching lines...) Expand all
140 return; 140 return;
141 141
142 invalidatePaintIfNeeded(paintInvalidationState, paintInvalidationState.paint InvalidationContainer()); 142 invalidatePaintIfNeeded(paintInvalidationState, paintInvalidationState.paint InvalidationContainer());
143 clearPaintInvalidationState(paintInvalidationState); 143 clearPaintInvalidationState(paintInvalidationState);
144 144
145 PaintInvalidationState childPaintInvalidationState(paintInvalidationState, * this); 145 PaintInvalidationState childPaintInvalidationState(paintInvalidationState, * this);
146 invalidatePaintOfSubtreesIfNeeded(childPaintInvalidationState); 146 invalidatePaintOfSubtreesIfNeeded(childPaintInvalidationState);
147 } 147 }
148 148
149 } // namespace blink 149 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/svg/LayoutSVGBlock.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698