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

Unified Diff: Source/platform/LengthOrNumberBox.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: 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
Index: Source/platform/LengthOrNumberBox.h
diff --git a/Source/platform/LengthOrNumberBox.h b/Source/platform/LengthOrNumberBox.h
index 6fec9d1b882d59743559567a14309b203ad06832..1612db789ac055aaaa3328c6b2dc6bd732ea81d0 100644
--- a/Source/platform/LengthOrNumberBox.h
+++ b/Source/platform/LengthOrNumberBox.h
@@ -20,7 +20,6 @@
#ifndef LengthOrNumberBox_h
#define LengthOrNumberBox_h
-#include "platform/LengthBox.h"
#include "platform/LengthOrNumber.h"
namespace WebCore {
@@ -47,11 +46,11 @@ public:
{
}
- explicit LengthOrNumberBox(LengthBox lengthBox) :
- m_left(lengthBox.m_left),
- m_right(lengthBox.m_right),
- m_top(lengthBox.m_top),
- m_bottom(lengthBox.m_bottom)
+ LengthOrNumberBox(LengthOrNumber t, LengthOrNumber r, LengthOrNumber b, LengthOrNumber l)
+ : m_left(l)
+ , m_right(r)
+ , m_top(t)
+ , m_bottom(b)
{
}
@@ -80,12 +79,6 @@ public:
return !(m_left.isZero() && m_right.isZero() && m_top.isZero() && m_bottom.isZero());
}
- LengthBox lengthBox() const
- {
- return LengthBox(m_top.unifiedLength(), m_right.unifiedLength(),
- m_bottom.unifiedLength(), m_left.unifiedLength());
- }
-
private:
LengthOrNumber m_left;
LengthOrNumber m_right;
« Source/core/rendering/style/RenderStyle.h ('K') | « Source/platform/LengthOrNumber.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698