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

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

Issue 2880573002: Store border-*-style on SurroundData in ComputedStyle (Closed)
Patch Set: Merge branch 'enumClass' into borderStyle 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/BorderValue.h
diff --git a/third_party/WebKit/Source/core/style/BorderValue.h b/third_party/WebKit/Source/core/style/BorderValue.h
index 3002f60217d3b0ca54aadda406ba17e16ebb43af..35b2f8d75083f590cb838bda204c5c09343268bd 100644
--- a/third_party/WebKit/Source/core/style/BorderValue.h
+++ b/third_party/WebKit/Source/core/style/BorderValue.h
@@ -26,7 +26,6 @@
#define BorderValue_h
#include "core/css/StyleColor.h"
-#include "core/style/BorderStyle.h"
#include "core/style/ComputedStyleConstants.h"
#include "platform/graphics/Color.h"
#include "platform/wtf/Allocator.h"
@@ -46,11 +45,14 @@ class BorderValue {
SetWidth(3);
}
- BorderValue(const BorderStyle& data, const StyleColor& color, float width) {
+ BorderValue(EBorderStyle style,
+ const StyleColor& color,
+ float width,
+ OutlineIsAuto is_auto) {
SetColor(color.Resolve(Color()));
- SetStyle(data.Style());
- SetIsAuto(data.IsAuto());
+ SetStyle(style);
SetWidth(width);
+ SetIsAuto(is_auto);
}
bool NonZero() const {
« no previous file with comments | « third_party/WebKit/Source/core/style/BorderData.h ('k') | third_party/WebKit/Source/core/style/CachedUAStyle.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698