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

Unified Diff: third_party/WebKit/Source/platform/Theme.cpp

Issue 2834603003: Split StyleSurroundData::padding into four individual Lengths. (Closed)
Patch Set: Split StyleSurroundData::padding into four individual Lengths. Created 3 years, 8 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
« no previous file with comments | « third_party/WebKit/Source/platform/Theme.h ('k') | third_party/WebKit/Source/platform/mac/ThemeMac.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/platform/Theme.cpp
diff --git a/third_party/WebKit/Source/platform/Theme.cpp b/third_party/WebKit/Source/platform/Theme.cpp
index 78cf648f21972bd7b52436bee28a81ff537a2401..ebf8c5ea5450d63a2332cb9f9a74d0332ff91f3a 100644
--- a/third_party/WebKit/Source/platform/Theme.cpp
+++ b/third_party/WebKit/Source/platform/Theme.cpp
@@ -45,7 +45,10 @@ LengthBox Theme::ControlBorder(ControlPart part,
LengthBox Theme::ControlPadding(ControlPart part,
const FontDescription&,
- const LengthBox& zoomed_box,
+ const Length& zoomed_box_top,
+ const Length& zoomed_box_right,
+ const Length& zoomed_box_bottom,
+ const Length& zoomed_box_left,
float) const {
switch (part) {
case kMenulistPart:
@@ -54,7 +57,8 @@ LengthBox Theme::ControlPadding(ControlPart part,
case kRadioPart:
return LengthBox(0);
default:
- return zoomed_box;
+ return LengthBox(zoomed_box_top, zoomed_box_right, zoomed_box_bottom,
+ zoomed_box_left);
}
}
« no previous file with comments | « third_party/WebKit/Source/platform/Theme.h ('k') | third_party/WebKit/Source/platform/mac/ThemeMac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698