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

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

Issue 2891003002: Store border-image-* on SurroundData in ComputedStyle (Closed)
Patch Set: Store border-image-* on SurroundData in ComputedStyle 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 8869ae36caddb788b11cd7f347beaedfbdd32f5a..36bd40d77fbc6e57a20fd228d61aaa7c68d39b3d 100644
--- a/third_party/WebKit/Source/core/style/CachedUAStyle.h
+++ b/third_party/WebKit/Source/core/style/CachedUAStyle.h
@@ -84,7 +84,6 @@ class CachedUAStyle {
static_cast<unsigned>(other.BorderBottomStyle()));
}
- BorderData border;
LengthSize top_left_;
LengthSize top_right_;
LengthSize bottom_left_;
@@ -105,13 +104,13 @@ class CachedUAStyle {
float border_right_width;
float border_top_width;
float border_bottom_width;
+ NinePieceImage border_image;
FillLayer background_layers;
StyleColor background_color;
private:
explicit CachedUAStyle(const ComputedStyle* style)
- : border(style->Border()),
- top_left_(style->BorderTopLeftRadius()),
+ : top_left_(style->BorderTopLeftRadius()),
top_right_(style->BorderTopRightRadius()),
bottom_left_(style->BorderBottomLeftRadius()),
bottom_right_(style->BorderBottomRightRadius()),
@@ -135,6 +134,7 @@ class CachedUAStyle {
border_right_width(style->BorderRightWidth()),
border_top_width(style->BorderTopWidth()),
border_bottom_width(style->BorderBottomWidth()),
+ border_image(style->BorderImage()),
background_layers(style->BackgroundLayers()),
background_color(style->BackgroundColor()) {}
};

Powered by Google App Engine
This is Rietveld 408576698