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

Unified Diff: Source/core/layout/LayoutTheme.h

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/LayoutTheme.h
diff --git a/Source/core/layout/LayoutTheme.h b/Source/core/layout/LayoutTheme.h
index 61b01dc15c48a5737b08d3770102509f220da262..d35ec438662ad116943b44654e65d322c954d34c 100644
--- a/Source/core/layout/LayoutTheme.h
+++ b/Source/core/layout/LayoutTheme.h
@@ -44,6 +44,7 @@ class RenderMeter;
class RenderProgress;
+// FIXME: A lot of the functions taking a RenderStyle could be take a const object.
class LayoutTheme : public RefCounted<LayoutTheme> {
protected:
LayoutTheme();
@@ -142,7 +143,7 @@ public:
void systemFont(CSSValueID systemFontID, FontDescription&);
virtual Color systemColor(CSSValueID) const;
- virtual int minimumMenuListSize(RenderStyle*) const { return 0; }
+ virtual int minimumMenuListSize(const RenderStyle*) const { return 0; }
virtual void adjustSliderThumbSize(RenderStyle*, Element*) const;

Powered by Google App Engine
This is Rietveld 408576698