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

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

Issue 55813002: Convert animation and renderer code to know about BorderImageLength (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@length-relative-die-step-1-4
Patch Set: Rebased to latest master 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.cpp » ('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 58024a88d87faa8565f3c2a7632c5cec8a41b6ab..8d417df8ace36cdeb6e99463720066c1fd3569aa 100644
--- a/Source/core/rendering/style/BorderImageLengthBox.h
+++ b/Source/core/rendering/style/BorderImageLengthBox.h
@@ -32,7 +32,6 @@
#define BorderImageLengthBox_h
#include "core/rendering/style/BorderImageLength.h"
-#include "platform/LengthBox.h"
namespace WebCore {
@@ -62,12 +61,12 @@ public:
{
}
- // FIXME: Remove when the conversion to BorderImageLengthBox is complete.
- explicit BorderImageLengthBox(LengthBox lengthBox)
- : m_left(lengthBox.m_left)
- , m_right(lengthBox.m_right)
- , m_top(lengthBox.m_top)
- , m_bottom(lengthBox.m_bottom)
+ BorderImageLengthBox(const BorderImageLength& top, const BorderImageLength& right,
+ const BorderImageLength& bottom, const BorderImageLength& left)
+ : m_left(left)
+ , m_right(right)
+ , m_top(top)
+ , m_bottom(bottom)
{
}
@@ -97,13 +96,6 @@ public:
return !(m_left.isZero() && m_right.isZero() && m_top.isZero() && m_bottom.isZero());
}
- // FIXME: Remove when the conversion to BorderImageLengthBox is complete.
- LengthBox deprecatedLengthBox() const
- {
- return LengthBox(m_top.deprecatedUnifiedLength(), m_right.deprecatedUnifiedLength(),
- m_bottom.deprecatedUnifiedLength(), m_left.deprecatedUnifiedLength());
- }
-
private:
BorderImageLength m_left;
BorderImageLength m_right;
« no previous file with comments | « Source/core/rendering/style/BorderImageLength.h ('k') | Source/core/rendering/style/NinePieceImage.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698