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

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

Issue 895383002: Let StyleResolver figure out differences between UA style and resolved style. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 10 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..9c5cc68d918523a33210b04f95a10969fde61885 100644
--- a/Source/core/layout/LayoutTheme.h
+++ b/Source/core/layout/LayoutTheme.h
@@ -29,7 +29,6 @@
#include "platform/ThemeTypes.h"
#endif
#include "core/rendering/RenderObject.h"
-#include "core/rendering/style/CachedUAStyle.h"
#include "platform/scroll/ScrollTypes.h"
#include "wtf/PassRefPtr.h"
#include "wtf/RefCounted.h"
@@ -42,6 +41,7 @@ class FileList;
class HTMLInputElement;
class RenderMeter;
class RenderProgress;
+class UAStyleChange;
class LayoutTheme : public RefCounted<LayoutTheme> {
@@ -62,7 +62,7 @@ public:
// metrics and defaults given the contents of the style. This includes sophisticated operations like
// selection of control size based off the font, the disabling of appearance when certain other properties like
// "border" are set, or if the appearance is not supported by the theme.
- void adjustStyle(RenderStyle*, Element*, const CachedUAStyle*);
+ void adjustStyle(RenderStyle*, Element*, const UAStyleChange&);
// This method is called to paint the widget as a background of the RenderObject. A widget's foreground, e.g., the
// text of a button, is always rendered by the engine itself. The boolean return value indicates
@@ -91,7 +91,7 @@ public:
bool isControlContainer(ControlPart) const;
// Whether or not the control has been styled enough by the author to disable the native appearance.
- virtual bool isControlStyled(const RenderStyle*, const CachedUAStyle*) const;
+ virtual bool isControlStyled(const RenderStyle*, const UAStyleChange&) const;
// Some controls may spill out of their containers (e.g., the check on an OS X checkbox). When these controls issues paint invalidations,
// the theme needs to communicate this inflated rect to the engine so that it can invalidate the whole control.

Powered by Google App Engine
This is Rietveld 408576698