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

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

Issue 2869043002: Store border-*-color on SurroundData in ComputedStyle not BorderColorAndStyle (Closed)
Patch Set: BorderColorVisuallyEquals calls BorderColorEquals 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 0c71ba0f4820070fbb9b8a98faf0af6dcd0915b3..2682ced9a910bee2f59f82dd628266644aee489c 100644
--- a/third_party/WebKit/Source/core/style/BorderValue.h
+++ b/third_party/WebKit/Source/core/style/BorderValue.h
@@ -26,7 +26,7 @@
#define BorderValue_h
#include "core/css/StyleColor.h"
-#include "core/style/BorderColorAndStyle.h"
+#include "core/style/BorderStyle.h"
#include "core/style/ComputedStyleConstants.h"
#include "platform/graphics/Color.h"
#include "platform/wtf/Allocator.h"
@@ -46,9 +46,8 @@ class BorderValue {
SetWidth(3);
}
- BorderValue(const BorderColorAndStyle& data, float width) {
- SetColor(data.GetColor());
- SetColorIsCurrentColor(ColorIsCurrentColor());
+ BorderValue(const BorderStyle& data, const StyleColor& color, float width) {
+ SetColor(color.Resolve(Color()));
SetStyle(data.Style());
SetIsAuto(data.IsAuto());
SetWidth(width);
« no previous file with comments | « third_party/WebKit/Source/core/style/BorderStyle.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