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

Unified Diff: third_party/WebKit/Source/core/style/CachedUAStyle.h

Issue 2861773004: Move border-*-width out of BorderValue and store on SurroundData in ComputedStyle instead (Closed)
Patch Set: meade@'s suggestion Created 3 years, 7 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/style/CachedUAStyle.h
diff --git a/third_party/WebKit/Source/core/style/CachedUAStyle.h b/third_party/WebKit/Source/core/style/CachedUAStyle.h
index 41344180e8ac0db20ce03d8f4ed2ccac5b99538a..1f8c095009d76c16c33091637b6d60ed53dbdc9e 100644
--- a/third_party/WebKit/Source/core/style/CachedUAStyle.h
+++ b/third_party/WebKit/Source/core/style/CachedUAStyle.h
@@ -49,6 +49,10 @@ class CachedUAStyle {
LengthSize top_right_;
LengthSize bottom_left_;
LengthSize bottom_right_;
+ float border_left_width;
+ float border_right_width;
+ float border_top_width;
+ float border_bottom_width;
FillLayer background_layers;
StyleColor background_color;
@@ -59,6 +63,10 @@ class CachedUAStyle {
top_right_(style->BorderTopRightRadius()),
bottom_left_(style->BorderBottomLeftRadius()),
bottom_right_(style->BorderBottomRightRadius()),
+ border_left_width(style->BorderLeftWidth()),
+ border_right_width(style->BorderRightWidth()),
+ border_top_width(style->BorderTopWidth()),
+ border_bottom_width(style->BorderBottomWidth()),
background_layers(style->BackgroundLayers()),
background_color(style->BackgroundColor()) {}
};
« no previous file with comments | « third_party/WebKit/Source/core/style/BorderValue.h ('k') | third_party/WebKit/Source/core/style/ComputedStyle.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698