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

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

Issue 2305133002: Mac: adjust sizes of progress bars to be equal to painted size. (Closed)
Patch Set: none Created 4 years, 3 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: third_party/WebKit/Source/core/layout/LayoutThemeMac.h
diff --git a/third_party/WebKit/Source/core/layout/LayoutThemeMac.h b/third_party/WebKit/Source/core/layout/LayoutThemeMac.h
index 6a1049929c5e88925c3b1fd25368349483e0d8c8..f72631062e104a676040ac3c4ec045bc864a4b94 100644
--- a/third_party/WebKit/Source/core/layout/LayoutThemeMac.h
+++ b/third_party/WebKit/Source/core/layout/LayoutThemeMac.h
@@ -131,10 +131,6 @@ public:
// A view associated to the contained document. Subclasses may not have such a view and return a fake.
NSView* documentViewFor(const LayoutObject&) const;
- int minimumProgressBarHeight(const ComputedStyle&) const;
- const IntSize* progressBarSizes() const;
- const int* progressBarMargins(NSControlSize) const;
-
void updateActiveState(NSCell*, const LayoutObject&);
// We estimate the animation rate of a Mac OS X progress bar is 33 fps.
@@ -165,7 +161,11 @@ protected:
bool shouldUseFallbackTheme(const ComputedStyle&) const override;
+ void adjustProgressBarBounds(ComputedStyle&) const override;
+
private:
+ const int* progressBarHeights() const;
+ const int* progressBarMargins(NSControlSize) const;
String fileListNameForWidth(Locale&, const FileList*, const Font&, int width) const override;
String extraDefaultStyleSheet() override;
bool themeDrawsFocusRing(const ComputedStyle&) const override;
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutTheme.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutThemeMac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698