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

Unified Diff: third_party/WebKit/Source/core/paint/ThemePainter.cpp

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/ThemePainter.cpp
diff --git a/third_party/WebKit/Source/core/paint/ThemePainter.cpp b/third_party/WebKit/Source/core/paint/ThemePainter.cpp
index 51b1d7866bcd3b457f7818f6ed976ea4ccee96fa..326e4c205c956e8c28f246715ca3e3174b972879 100644
--- a/third_party/WebKit/Source/core/paint/ThemePainter.cpp
+++ b/third_party/WebKit/Source/core/paint/ThemePainter.cpp
@@ -29,7 +29,6 @@
#include "core/html/HTMLOptionElement.h"
#include "core/html/parser/HTMLParserIdioms.h"
#include "core/html/shadow/ShadowElementNames.h"
-#include "core/layout/LayoutMeter.h"
#include "core/layout/LayoutTheme.h"
#include "core/layout/LayoutView.h"
#include "core/paint/MediaControlsPainter.h"
@@ -99,11 +98,7 @@ bool ThemePainter::paint(const LayoutObject& o, const PaintInfo& paintInfo, cons
case MenulistPart:
return paintMenuList(o, paintInfo, r);
case MeterPart:
- case RelevancyLevelIndicatorPart:
- case ContinuousCapacityLevelIndicatorPart:
- case DiscreteCapacityLevelIndicatorPart:
- case RatingLevelIndicatorPart:
- return paintMeter(o, paintInfo, r);
+ return true;
case ProgressBarPart:
return paintProgressBar(o, paintInfo, r);
case SliderHorizontalPart:
@@ -180,10 +175,6 @@ bool ThemePainter::paintBorderOnly(const LayoutObject& o, const PaintInfo& paint
case ButtonPart:
case MenulistPart:
case MeterPart:
- case RelevancyLevelIndicatorPart:
- case ContinuousCapacityLevelIndicatorPart:
- case DiscreteCapacityLevelIndicatorPart:
- case RatingLevelIndicatorPart:
case ProgressBarPart:
case SliderHorizontalPart:
case SliderVerticalPart:
@@ -214,10 +205,6 @@ bool ThemePainter::paintDecorations(const LayoutObject& o, const PaintInfo& pain
case ButtonPart:
case MenulistPart:
case MeterPart:
- case RelevancyLevelIndicatorPart:
- case ContinuousCapacityLevelIndicatorPart:
- case DiscreteCapacityLevelIndicatorPart:
- case RatingLevelIndicatorPart:
case ProgressBarPart:
case SliderHorizontalPart:
case SliderVerticalPart:
@@ -234,11 +221,6 @@ bool ThemePainter::paintDecorations(const LayoutObject& o, const PaintInfo& pain
return false;
}
-bool ThemePainter::paintMeter(const LayoutObject&, const PaintInfo&, const IntRect&)
-{
- return true;
-}
-
void ThemePainter::paintSliderTicks(const LayoutObject& o, const PaintInfo& paintInfo, const IntRect&rect)
{
Node* node = o.node();
« no previous file with comments | « third_party/WebKit/Source/core/paint/ThemePainter.h ('k') | third_party/WebKit/Source/core/paint/ThemePainterMac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698