summaryrefslogtreecommitdiffstats
path: root/cc/layer.cc
diff options
context:
space:
mode:
Diffstat (limited to 'cc/layer.cc')
-rw-r--r--cc/layer.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/cc/layer.cc b/cc/layer.cc
index afa35e8..4c39126 100644
--- a/cc/layer.cc
+++ b/cc/layer.cc
@@ -515,7 +515,8 @@ void Layer::setNeedsDisplayRect(const FloatRect& dirtyRect)
if (!dirtyRect.isEmpty())
m_needsDisplay = true;
- setNeedsCommit();
+ if (drawsContent())
+ setNeedsCommit();
}
bool Layer::descendantIsFixedToContainerLayer() const