Index: Source/core/rendering/RenderBox.cpp |
diff --git a/Source/core/rendering/RenderBox.cpp b/Source/core/rendering/RenderBox.cpp |
index 24dd8225a87137b4aef826dbb5012330150c09c7..449d1344f2414543eaee54fe0ae4278ef7725c45 100644 |
--- a/Source/core/rendering/RenderBox.cpp |
+++ b/Source/core/rendering/RenderBox.cpp |
@@ -1484,16 +1484,6 @@ void RenderBox::paintFillLayer(const PaintInfo& paintInfo, const Color& c, const |
paintFillLayerExtended(paintInfo, c, fillLayer, rect, bleedAvoidance, 0, LayoutSize(), op, backgroundObject); |
} |
-static bool layersUseImage(WrappedImagePtr image, const FillLayer* layers) |
-{ |
- for (const FillLayer* curLayer = layers; curLayer; curLayer = curLayer->next()) { |
- if (curLayer->image() && image == curLayer->image()->data()) |
- return true; |
- } |
- |
- return false; |
-} |
- |
void RenderBox::imageChanged(WrappedImagePtr image, const IntRect*) |
{ |
if (!parent()) |
@@ -1516,9 +1506,6 @@ void RenderBox::imageChanged(WrappedImagePtr image, const IntRect*) |
bool didFullRepaint = repaintLayerRectsForImage(image, style()->backgroundLayers(), true); |
if (!didFullRepaint) |
repaintLayerRectsForImage(image, style()->maskLayers(), false); |
- |
- if (hasLayer() && layer()->hasCompositedMask() && layersUseImage(image, style()->maskLayers())) |
- layer()->contentChanged(MaskImageChanged); |
} |
bool RenderBox::repaintLayerRectsForImage(WrappedImagePtr image, const FillLayer* layers, bool drawingBackground) |