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

Unified Diff: third_party/WebKit/Source/core/paint/ThemePainterMac.mm

Issue 1747763002: Remove OSX-specific <meter> rendering. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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: third_party/WebKit/Source/core/paint/ThemePainterMac.mm
diff --git a/third_party/WebKit/Source/core/paint/ThemePainterMac.mm b/third_party/WebKit/Source/core/paint/ThemePainterMac.mm
index 7424cb6ea3b01b25e1cf8730a5ac519210f490c3..d6a2a23c6d2911b53bb88d6b3acf5d6ff80c340e 100644
--- a/third_party/WebKit/Source/core/paint/ThemePainterMac.mm
+++ b/third_party/WebKit/Source/core/paint/ThemePainterMac.mm
@@ -20,7 +20,6 @@
#import "core/paint/ThemePainterMac.h"
-#import "core/layout/LayoutMeter.h"
#import "core/layout/LayoutProgress.h"
#import "core/layout/LayoutThemeMac.h"
#import "core/layout/LayoutView.h"
@@ -191,21 +190,6 @@ bool ThemePainterMac::paintMenuList(const LayoutObject& o, const PaintInfo& pain
return false;
}
-bool ThemePainterMac::paintMeter(const LayoutObject& layoutObject, const PaintInfo& paintInfo, const IntRect& rect)
-{
- if (!layoutObject.isMeter())
- return true;
-
- LocalCurrentGraphicsContext localContext(paintInfo.context, &paintInfo.cullRect().m_rect, rect);
-
- NSLevelIndicatorCell* cell = m_layoutTheme.levelIndicatorFor(toLayoutMeter(layoutObject));
- GraphicsContextStateSaver stateSaver(paintInfo.context);
-
- [cell drawWithFrame:rect inView:m_layoutTheme.documentViewFor(layoutObject)];
- [cell setControlView:nil];
- return false;
-}
-
bool ThemePainterMac::paintProgressBar(const LayoutObject& layoutObject, const PaintInfo& paintInfo, const IntRect& rect)
{
if (!layoutObject.isProgress())
« no previous file with comments | « third_party/WebKit/Source/core/paint/ThemePainterMac.h ('k') | third_party/WebKit/Source/platform/ThemeTypes.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698