summaryrefslogtreecommitdiffstats
path: root/chromium/third_party/WebKit/Source/platform/LengthBox.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/WebKit/Source/platform/LengthBox.h')
-rw-r--r--chromium/third_party/WebKit/Source/platform/LengthBox.h22
1 files changed, 11 insertions, 11 deletions
diff --git a/chromium/third_party/WebKit/Source/platform/LengthBox.h b/chromium/third_party/WebKit/Source/platform/LengthBox.h
index 0904e836151..d1e405b85d8 100644
--- a/chromium/third_party/WebKit/Source/platform/LengthBox.h
+++ b/chromium/third_party/WebKit/Source/platform/LengthBox.h
@@ -53,7 +53,7 @@ public:
{
}
- LengthBox(Length t, Length r, Length b, Length l)
+ LengthBox(const Length& t, const Length& r, const Length& b, const Length& l)
: m_left(l)
, m_right(r)
, m_top(t)
@@ -69,18 +69,18 @@ public:
{
}
- Length left() const { return m_left; }
- Length right() const { return m_right; }
- Length top() const { return m_top; }
- Length bottom() const { return m_bottom; }
+ const Length& left() const { return m_left; }
+ const Length& right() const { return m_right; }
+ const Length& top() const { return m_top; }
+ const Length& bottom() const { return m_bottom; }
- Length logicalLeft(WritingMode) const;
- Length logicalRight(WritingMode) const;
+ const Length& logicalLeft(WritingMode) const;
+ const Length& logicalRight(WritingMode) const;
- Length before(WritingMode) const;
- Length after(WritingMode) const;
- Length start(WritingMode, TextDirection) const;
- Length end(WritingMode, TextDirection) const;
+ const Length& before(WritingMode) const;
+ const Length& after(WritingMode) const;
+ const Length& start(WritingMode, TextDirection) const;
+ const Length& end(WritingMode, TextDirection) const;
bool operator==(const LengthBox& o) const
{