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

Unified Diff: third_party/WebKit/Source/core/style/BorderData.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/BorderData.h
diff --git a/third_party/WebKit/Source/core/style/BorderData.h b/third_party/WebKit/Source/core/style/BorderData.h
index c6d188818043eec41ac1a5c50b9e8358a77418d3..8bf5a6e79e83bf17f000cfac24aaa54ebd5af1c1 100644
--- a/third_party/WebKit/Source/core/style/BorderData.h
+++ b/third_party/WebKit/Source/core/style/BorderData.h
@@ -25,7 +25,7 @@
#ifndef BorderData_h
#define BorderData_h
-#include "core/style/BorderColorAndStyle.h"
+#include "core/style/BorderStyle.h"
#include "core/style/NinePieceImage.h"
#include "platform/LengthSize.h"
#include "platform/geometry/IntRect.h"
@@ -47,13 +47,6 @@ class BorderData {
bool HasBorderFill() const { return image_.HasImage() && image_.Fill(); }
- bool HasBorderColorReferencingCurrentColor() const {
- return (left_.NonZero() && left_.GetColor().IsCurrentColor()) ||
- (right_.NonZero() && right_.GetColor().IsCurrentColor()) ||
- (top_.NonZero() && top_.GetColor().IsCurrentColor()) ||
- (bottom_.NonZero() && bottom_.GetColor().IsCurrentColor());
- }
-
bool operator==(const BorderData& o) const {
return left_ == o.left_ && right_ == o.right_ && top_ == o.top_ &&
bottom_ == o.bottom_ && image_ == o.image_;
@@ -71,18 +64,18 @@ class BorderData {
bool operator!=(const BorderData& o) const { return !(*this == o); }
- const BorderColorAndStyle& Left() const { return left_; }
- const BorderColorAndStyle& Right() const { return right_; }
- const BorderColorAndStyle& Top() const { return top_; }
- const BorderColorAndStyle& Bottom() const { return bottom_; }
+ const BorderStyle& Left() const { return left_; }
+ const BorderStyle& Right() const { return right_; }
+ const BorderStyle& Top() const { return top_; }
+ const BorderStyle& Bottom() const { return bottom_; }
const NinePieceImage& GetImage() const { return image_; }
private:
- BorderColorAndStyle left_;
- BorderColorAndStyle right_;
- BorderColorAndStyle top_;
- BorderColorAndStyle bottom_;
+ BorderStyle left_;
+ BorderStyle right_;
+ BorderStyle top_;
+ BorderStyle bottom_;
NinePieceImage image_;
};
« no previous file with comments | « third_party/WebKit/Source/core/style/BorderColorAndStyle.h ('k') | third_party/WebKit/Source/core/style/BorderStyle.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698