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

Unified Diff: Source/core/rendering/style/BorderImageLengthBox.h

Issue 81123002: Factor out common BorderImageLength code in CSSToStyleMap (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Address review comments Created 7 years, 1 month 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 | « Source/core/rendering/style/BorderImageLength.h ('k') | Source/core/rendering/style/NinePieceImage.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/style/BorderImageLengthBox.h
diff --git a/Source/core/rendering/style/BorderImageLengthBox.h b/Source/core/rendering/style/BorderImageLengthBox.h
index 8d417df8ace36cdeb6e99463720066c1fd3569aa..436846ac9b92eda85b3403db1a97f49bcd85987b 100644
--- a/Source/core/rendering/style/BorderImageLengthBox.h
+++ b/Source/core/rendering/style/BorderImageLengthBox.h
@@ -41,23 +41,19 @@ namespace WebCore {
// http://www.w3.org/TR/css3-background/#border-image-outset
class BorderImageLengthBox {
public:
- BorderImageLengthBox()
+ BorderImageLengthBox(Length length)
+ : m_left(length)
+ , m_right(length)
+ , m_top(length)
+ , m_bottom(length)
{
}
- BorderImageLengthBox(Length top, Length right, Length bottom, Length left)
- : m_left(left)
- , m_right(right)
- , m_top(top)
- , m_bottom(bottom)
- {
- }
-
- BorderImageLengthBox(double top, double right, double bottom, double left)
- : m_left(left)
- , m_right(right)
- , m_top(top)
- , m_bottom(bottom)
+ BorderImageLengthBox(double number)
+ : m_left(number)
+ , m_right(number)
+ , m_top(number)
+ , m_bottom(number)
{
}
@@ -75,11 +71,6 @@ public:
const BorderImageLength& top() const { return m_top; }
const BorderImageLength& bottom() const { return m_bottom; }
- void setLeft(const BorderImageLength& left) { m_left = left; }
- void setRight(const BorderImageLength& right) { m_right = right; }
- void setTop(const BorderImageLength& top) { m_top = top; }
- void setBottom(const BorderImageLength& bottom) { m_bottom = bottom; }
-
bool operator==(const BorderImageLengthBox& other) const
{
return m_left == other.m_left && m_right == other.m_right
« no previous file with comments | « Source/core/rendering/style/BorderImageLength.h ('k') | Source/core/rendering/style/NinePieceImage.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698