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

Unified Diff: third_party/WebKit/Source/core/css/resolver/StyleBuilderConverter.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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/style/NinePieceImage.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/css/resolver/StyleBuilderConverter.cpp
diff --git a/third_party/WebKit/Source/core/css/resolver/StyleBuilderConverter.cpp b/third_party/WebKit/Source/core/css/resolver/StyleBuilderConverter.cpp
index 33f294db35e887445b06597864b0378a06127780..0318762019714a040c9bda86b945d5ab1d1e268a 100644
--- a/third_party/WebKit/Source/core/css/resolver/StyleBuilderConverter.cpp
+++ b/third_party/WebKit/Source/core/css/resolver/StyleBuilderConverter.cpp
@@ -100,8 +100,7 @@ PassRefPtr<StyleReflection> StyleBuilderConverter::ConvertBoxReflect(
reflection->SetOffset(reflect_value.Offset()->ConvertToLength(
state.CssToLengthConversionData()));
if (reflect_value.Mask()) {
- NinePieceImage mask;
- mask.SetMaskDefaults();
+ NinePieceImage mask = NinePieceImage::MaskDefaults();
CSSToStyleMap::MapNinePieceImage(state, CSSPropertyWebkitBoxReflect,
*reflect_value.Mask(), mask);
reflection->SetMask(mask);
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/style/NinePieceImage.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698