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

Unified Diff: Source/core/rendering/RenderObject.h

Issue 789433006: [New Multicolumn] Let a spanner's containing block be the multicol container. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Compiling release: paint invalidation state is cleared in the super class anyway. Created 6 years 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
« no previous file with comments | « Source/core/rendering/RenderMultiColumnSpannerSet.cpp ('k') | Source/core/rendering/RenderObject.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/RenderObject.h
diff --git a/Source/core/rendering/RenderObject.h b/Source/core/rendering/RenderObject.h
index 91dc4f0ef784e45710543f4112b1e86ffe768666..8bc932cb11a9770b53be19648f76e606b8bdda0b 100644
--- a/Source/core/rendering/RenderObject.h
+++ b/Source/core/rendering/RenderObject.h
@@ -67,6 +67,7 @@ class RenderFlowThread;
class RenderGeometryMap;
class RenderLayer;
class RenderLayerModelObject;
+class RenderMultiColumnSpannerPlaceholder;
class RenderView;
class TransformState;
@@ -357,7 +358,7 @@ public:
bool isRenderIFrame() const { return isOfType(RenderObjectRenderIFrame); }
bool isRenderImage() const { return isOfType(RenderObjectRenderImage); }
bool isRenderMultiColumnSet() const { return isOfType(RenderObjectRenderMultiColumnSet); }
- bool isRenderMultiColumnSpannerSet() const { return isOfType(RenderObjectRenderMultiColumnSpannerSet); }
+ bool isRenderMultiColumnSpannerPlaceholder() const { return isOfType(RenderObjectRenderMultiColumnSpannerPlaceholder); }
bool isRenderRegion() const { return isOfType(RenderObjectRenderRegion); }
bool isRenderScrollbarPart() const { return isOfType(RenderObjectRenderScrollbarPart); }
bool isRenderTableCol() const { return isOfType(RenderObjectRenderTableCol); }
@@ -632,6 +633,9 @@ public:
Document& document() const { return m_node->document(); }
LocalFrame* frame() const { return document().frame(); }
+ virtual RenderMultiColumnSpannerPlaceholder* spannerPlaceholder() const { return 0; }
+ bool isColumnSpanAll() const { return style()->columnSpan() == ColumnSpanAll && spannerPlaceholder(); }
+
// Returns the object containing this one. Can be different from parent for positioned elements.
// If paintInvalidationContainer and paintInvalidationContainerSkipped are not null, on return *paintInvalidationContainerSkipped
// is true if the renderer returned is an ancestor of paintInvalidationContainer.
@@ -1084,7 +1088,7 @@ protected:
RenderObjectRenderImage,
RenderObjectRenderInline,
RenderObjectRenderMultiColumnSet,
- RenderObjectRenderMultiColumnSpannerSet,
+ RenderObjectRenderMultiColumnSpannerPlaceholder,
RenderObjectRenderPart,
RenderObjectRenderRegion,
RenderObjectRenderScrollbarPart,
« no previous file with comments | « Source/core/rendering/RenderMultiColumnSpannerSet.cpp ('k') | Source/core/rendering/RenderObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698