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

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: Fix a crashers (everything is building!) 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..074c95de66e048aaf9116743f19621f31665d1d1 100644
--- a/Source/core/layout/LayoutTheme.h
+++ b/Source/core/layout/LayoutTheme.h
@@ -142,14 +142,14 @@ 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;
- virtual int popupInternalPaddingLeft(RenderStyle*) const { return 0; }
- virtual int popupInternalPaddingRight(RenderStyle*) const { return 0; }
- virtual int popupInternalPaddingTop(RenderStyle*) const { return 0; }
- virtual int popupInternalPaddingBottom(RenderStyle*) const { return 0; }
+ virtual int popupInternalPaddingLeft(const RenderStyle*) const { return 0; }
+ virtual int popupInternalPaddingRight(const RenderStyle*) const { return 0; }
+ virtual int popupInternalPaddingTop(const RenderStyle*) const { return 0; }
+ virtual int popupInternalPaddingBottom(const RenderStyle*) const { return 0; }
virtual bool popupOptionSupportsTextIndent() const { return false; }
virtual ScrollbarControlSize scrollbarControlSizeForPart(ControlPart) { return RegularScrollbar; }
@@ -274,7 +274,7 @@ protected:
virtual bool paintMediaFullScreenVolumeSliderTrack(RenderObject*, const PaintInfo&, const IntRect&) { return true; }
virtual bool paintMediaFullScreenVolumeSliderThumb(RenderObject*, const PaintInfo&, const IntRect&) { return true; }
- virtual bool shouldUseFallbackTheme(RenderStyle*) const;
+ virtual bool shouldUseFallbackTheme(const RenderStyle*) const;
void adjustStyleUsingFallbackTheme(RenderStyle*, Element*);
bool paintUsingFallbackTheme(RenderObject*, const PaintInfo&, const IntRect&);
void adjustCheckboxStyleUsingFallbackTheme(RenderStyle*, Element*) const;

Powered by Google App Engine
This is Rietveld 408576698