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

Unified Diff: third_party/WebKit/Source/core/style/StyleRareNonInheritedData.cpp

Issue 2901433002: Replace NinePieceImage.setMaskDefault with static method. (Closed)
Patch Set: 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/StyleRareNonInheritedData.cpp
diff --git a/third_party/WebKit/Source/core/style/StyleRareNonInheritedData.cpp b/third_party/WebKit/Source/core/style/StyleRareNonInheritedData.cpp
index ecc25a64c31c6cc8775f71fab0872cd5df04d66f..a3b4adaabb5697672a6f8d83637b195016bed091 100644
--- a/third_party/WebKit/Source/core/style/StyleRareNonInheritedData.cpp
+++ b/third_party/WebKit/Source/core/style/StyleRareNonInheritedData.cpp
@@ -82,6 +82,7 @@ StyleRareNonInheritedData::StyleRareNonInheritedData()
shape_outside_(ComputedStyle::InitialShapeOutside()),
clip_path_(ComputedStyle::InitialClipPath()),
mask_(kMaskFillLayer, true),
+ mask_box_image_(NinePieceImage::MaskDefaults()),
page_size_(),
shape_margin_(ComputedStyle::InitialShapeMargin()),
text_decoration_color_(StyleColor::CurrentColor()),
@@ -129,9 +130,7 @@ StyleRareNonInheritedData::StyleRareNonInheritedData()
resize_(ComputedStyle::InitialResize()),
has_compositor_proxy_(false),
has_author_background_(false),
- has_author_border_(false) {
- mask_box_image_.SetMaskDefaults();
-}
+ has_author_border_(false) {}
StyleRareNonInheritedData::StyleRareNonInheritedData(
const StyleRareNonInheritedData& o)
« no previous file with comments | « third_party/WebKit/Source/core/style/NinePieceImage.h ('k') | third_party/WebKit/Source/core/style/StyleReflection.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698