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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutThemeDefault.h

Issue 2576563003: Cache scrollbar thickness in LayoutThemeDefault. (Closed)
Patch Set: _ Created 4 years 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: third_party/WebKit/Source/core/layout/LayoutThemeDefault.h
diff --git a/third_party/WebKit/Source/core/layout/LayoutThemeDefault.h b/third_party/WebKit/Source/core/layout/LayoutThemeDefault.h
index d88def71f5ab275ce00a8c40e87379d99509ab5d..874733a1ea6cc1ec9afc37539d14fd32fe2f969e 100644
--- a/third_party/WebKit/Source/core/layout/LayoutThemeDefault.h
+++ b/third_party/WebKit/Source/core/layout/LayoutThemeDefault.h
@@ -115,9 +115,9 @@ class CORE_EXPORT LayoutThemeDefault : public LayoutTheme {
const ComputedStyle&) const override;
int popupInternalPaddingTop(const ComputedStyle&) const override;
int popupInternalPaddingBottom(const ComputedStyle&) const override;
- static int scrollbarThicknessInDIP();
- static float clampedMenuListArrowPaddingSize(const HostWindow*,
- const ComputedStyle&);
+ int scrollbarThicknessInDIP() const;
+ float clampedMenuListArrowPaddingSize(const HostWindow*,
+ const ComputedStyle&) const;
// Provide a way to pass the default font size from the Settings object
// to the layout theme. FIXME: http://b/1129186 A cleaner way would be
@@ -155,6 +155,7 @@ class CORE_EXPORT LayoutThemeDefault : public LayoutTheme {
static unsigned m_inactiveSelectionForegroundColor;
ThemePainterDefault m_painter;
+ int m_scrollbarThicknessInDIP = 0;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698