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: |