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

Unified Diff: third_party/WebKit/Source/core/layout/FloatingObjects.h

Issue 2009353003: Add a hack to set shouldPaint to true for force-composited iframes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/layout/FloatingObjects.h
diff --git a/third_party/WebKit/Source/core/layout/FloatingObjects.h b/third_party/WebKit/Source/core/layout/FloatingObjects.h
index c1971f4322e58a87ac1f3e15e9faecb8c548d7a7..11f78d951a8de87fe6fb729ed38c707109911c1e 100644
--- a/third_party/WebKit/Source/core/layout/FloatingObjects.h
+++ b/third_party/WebKit/Source/core/layout/FloatingObjects.h
@@ -78,7 +78,7 @@ public:
void setIsInPlacedTree(bool value) { m_isInPlacedTree = value; }
#endif
- bool shouldPaint() const { return m_shouldPaint; }
+ bool shouldPaint() const;
void setShouldPaint(bool shouldPaint) { m_shouldPaint = shouldPaint; }
bool isDescendant() const { return m_isDescendant; }
void setIsDescendant(bool isDescendant) { m_isDescendant = isDescendant; }
@@ -93,6 +93,8 @@ private:
explicit FloatingObject(LayoutBox*);
FloatingObject(LayoutBox*, Type, const LayoutRect&, bool shouldPaint, bool isDescendant, bool isLowestNonOverhangingFloatInChild);
+ bool shouldPaintForCompositedLayoutPart();
+
LayoutBox* m_layoutObject;
RootInlineBox* m_originatingLine;
LayoutRect m_frameRect;

Powered by Google App Engine
This is Rietveld 408576698