Index: third_party/WebKit/Source/core/layout/LayoutTheme.cpp |
diff --git a/third_party/WebKit/Source/core/layout/LayoutTheme.cpp b/third_party/WebKit/Source/core/layout/LayoutTheme.cpp |
index 3b7e8a620e5851f0f13d098cfda639ee6a7b1a8b..5a74b1c6b4149d2346663d9901af19f4cac76dd2 100644 |
--- a/third_party/WebKit/Source/core/layout/LayoutTheme.cpp |
+++ b/third_party/WebKit/Source/core/layout/LayoutTheme.cpp |
@@ -160,9 +160,10 @@ void LayoutTheme::AdjustStyle(ComputedStyle& style, Element* e) { |
// Padding |
LengthBox padding_box = platform_theme_->ControlPadding( |
- part, style.GetFont().GetFontDescription(), style.Padding(), |
+ part, style.GetFont().GetFontDescription(), style.PaddingTop(), |
+ style.PaddingRight(), style.PaddingBottom(), style.PaddingLeft(), |
style.EffectiveZoom()); |
- if (padding_box != style.Padding()) |
+ if (!style.PaddingEqual(padding_box)) |
style.SetPadding(padding_box); |
// Whitespace |