Title: [144078] trunk/Source/WebCore
- Revision
- 144078
- Author
- [email protected]
- Date
- 2013-02-26 11:00:07 -0800 (Tue, 26 Feb 2013)
Log Message
[TexMap] Ignore layer repaint request when drawsContent is false
https://bugs.webkit.org/show_bug.cgi?id=110888
Reviewed by Noam Rosenthal.
As long as drawsContent is false we should ignore requests for repaints.
A full repaint will be requested when drawsContent is changed to true.
* platform/graphics/texmap/GraphicsLayerTextureMapper.cpp:
(WebCore::GraphicsLayerTextureMapper::setNeedsDisplay):
(WebCore::GraphicsLayerTextureMapper::setNeedsDisplayInRect):
(WebCore::GraphicsLayerTextureMapper::setDrawsContent):
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (144077 => 144078)
--- trunk/Source/WebCore/ChangeLog 2013-02-26 18:55:12 UTC (rev 144077)
+++ trunk/Source/WebCore/ChangeLog 2013-02-26 19:00:07 UTC (rev 144078)
@@ -1,3 +1,18 @@
+2013-02-26 Allan Sandfeld Jensen <[email protected]>
+
+ [TexMap] Ignore layer repaint request when drawsContent is false
+ https://bugs.webkit.org/show_bug.cgi?id=110888
+
+ Reviewed by Noam Rosenthal.
+
+ As long as drawsContent is false we should ignore requests for repaints.
+ A full repaint will be requested when drawsContent is changed to true.
+
+ * platform/graphics/texmap/GraphicsLayerTextureMapper.cpp:
+ (WebCore::GraphicsLayerTextureMapper::setNeedsDisplay):
+ (WebCore::GraphicsLayerTextureMapper::setNeedsDisplayInRect):
+ (WebCore::GraphicsLayerTextureMapper::setDrawsContent):
+
2013-02-26 Joshua Bell <[email protected]>
IndexedDB: IDBObjectStore.index() doesn't report errors after deleteIndex()
Modified: trunk/Source/WebCore/platform/graphics/texmap/GraphicsLayerTextureMapper.cpp (144077 => 144078)
--- trunk/Source/WebCore/platform/graphics/texmap/GraphicsLayerTextureMapper.cpp 2013-02-26 18:55:12 UTC (rev 144077)
+++ trunk/Source/WebCore/platform/graphics/texmap/GraphicsLayerTextureMapper.cpp 2013-02-26 19:00:07 UTC (rev 144078)
@@ -87,7 +87,7 @@
*/
void GraphicsLayerTextureMapper::setNeedsDisplay()
{
- if (!m_hasOwnBackingStore)
+ if (!drawsContent() || !m_hasOwnBackingStore)
return;
m_needsDisplay = true;
@@ -107,7 +107,7 @@
*/
void GraphicsLayerTextureMapper::setNeedsDisplayInRect(const FloatRect& rect)
{
- if (!m_hasOwnBackingStore)
+ if (!drawsContent() || !m_hasOwnBackingStore)
return;
if (m_needsDisplay)
@@ -277,8 +277,8 @@
{
if (value == drawsContent())
return;
+ GraphicsLayer::setDrawsContent(value);
notifyChange(DrawsContentChange);
- GraphicsLayer::setDrawsContent(value);
if (value && m_hasOwnBackingStore)
setNeedsDisplay();
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes