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

Unified Diff: Source/core/layout/LayoutTableCol.cpp

Issue 889563002: Make RenderObject::style() return a const object (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Blind fix for Mac. Created 5 years, 11 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: Source/core/layout/LayoutTableCol.cpp
diff --git a/Source/core/layout/LayoutTableCol.cpp b/Source/core/layout/LayoutTableCol.cpp
index aaa74d5d7aebee6e0a366341aa2647e1a1957341..499158d02e4e358603084d208e6fbc3158d17813 100644
--- a/Source/core/layout/LayoutTableCol.cpp
+++ b/Source/core/layout/LayoutTableCol.cpp
@@ -102,7 +102,7 @@ void LayoutTableCol::willBeRemovedFromTree()
table()->removeColumn(this);
}
-bool LayoutTableCol::isChildAllowed(RenderObject* child, RenderStyle* style) const
+bool LayoutTableCol::isChildAllowed(RenderObject* child, const RenderStyle* style) const
{
// We cannot use isTableColumn here as style() may return 0.
return child->isLayoutTableCol() && style->display() == TABLE_COLUMN;

Powered by Google App Engine
This is Rietveld 408576698