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

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

Issue 2309593002: Factor code from ThemeMac into ThemeMacPainter. (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/paint/ThemePainter.cpp
diff --git a/third_party/WebKit/Source/core/paint/ThemePainter.cpp b/third_party/WebKit/Source/core/paint/ThemePainter.cpp
index 89fd9dd692f8b009c2c98835f656118fb3e612e7..e0b8e877518c6275c80b5bae941d62493e0f128d 100644
--- a/third_party/WebKit/Source/core/paint/ThemePainter.cpp
+++ b/third_party/WebKit/Source/core/paint/ThemePainter.cpp
@@ -56,8 +56,7 @@ static WebFallbackThemeEngine::State getWebFallbackThemeState(const LayoutObject
return WebFallbackThemeEngine::StateNormal;
}
-ThemePainter::ThemePainter(Theme* platformTheme)
- : m_platformTheme(platformTheme)
+ThemePainter::ThemePainter()
{
}
@@ -81,21 +80,6 @@ bool ThemePainter::paint(const LayoutObject& o, const PaintInfo& paintInfo, cons
}
}
- if (m_platformTheme) {
- switch (part) {
- case CheckboxPart:
- case RadioPart:
- case PushButtonPart:
- case SquareButtonPart:
- case ButtonPart:
- case InnerSpinButtonPart:
- m_platformTheme->paint(part, LayoutTheme::controlStatesForLayoutObject(o), const_cast<GraphicsContext&>(paintInfo.context), r, o.styleRef().effectiveZoom(), o.view()->frameView());
- return false;
- default:
- break;
- }
- }
-
// Call the appropriate paint method based off the appearance value.
switch (part) {
case CheckboxPart:
« no previous file with comments | « third_party/WebKit/Source/core/paint/ThemePainter.h ('k') | third_party/WebKit/Source/core/paint/ThemePainterDefault.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698