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

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

Issue 14866009: Enable proper zooming of checkbox and radio button on Win and Mac. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 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: Source/core/rendering/RenderTheme.h
diff --git a/Source/core/rendering/RenderTheme.h b/Source/core/rendering/RenderTheme.h
index db3953ad3bc9a4f5a539db74f66924c5e7e04990..d95d308e60154b27964d1e9ec3dfb63190058f03 100644
--- a/Source/core/rendering/RenderTheme.h
+++ b/Source/core/rendering/RenderTheme.h
@@ -62,6 +62,8 @@ public:
return themeForPage(0);
};
+ static void setSizeIfAuto(RenderStyle*, const IntSize&);
+
// This method is called whenever style has been computed for an element and the appearance
// property has been set to a value other than "none". The theme should map in all of the appropriate
// metrics and defaults given the contents of the style. This includes sophisticated operations like
@@ -313,6 +315,14 @@ 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;
+ void adjustStyleUsingFallbackTheme(StyleResolver*, RenderStyle*, Element*);
+ bool paintUsingFallbackTheme(RenderObject*, const PaintInfo&, const IntRect&);
+ void adjustCheckboxStyleUsingFallbackTheme(StyleResolver*, RenderStyle*, Element*) const;
+ bool paintCheckboxUsingFallbackTheme(RenderObject*, const PaintInfo&, const IntRect&);
+ void adjustRadioStyleUsingFallbackTheme(StyleResolver*, RenderStyle*, Element*) const;
+ bool paintRadioUsingFallbackTheme(RenderObject*, const PaintInfo&, const IntRect&);
+
public:
// Methods for state querying
ControlStates controlStatesForRenderer(const RenderObject* o) const;

Powered by Google App Engine
This is Rietveld 408576698