OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |