Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / Source / platform / LengthSize.h
index 6542adb..923df13 100644 (file)
@@ -23,7 +23,7 @@
 
 #include "platform/Length.h"
 
-namespace WebCore {
+namespace blink {
 
 class LengthSize {
 public:
@@ -31,7 +31,7 @@ public:
     {
     }
 
-    LengthSize(Length width, Length height)
+    LengthSize(const Length& width, const Length& height)
         : m_width(width)
         , m_height(height)
     {
@@ -42,17 +42,17 @@ public:
         return m_width == o.m_width && m_height == o.m_height;
     }
 
-    void setWidth(Length width) { m_width = width; }
-    Length width() const { return m_width; }
+    void setWidth(const Length& width) { m_width = width; }
+    const Length& width() const { return m_width; }
 
-    void setHeight(Length height) { m_height = height; }
-    Length height() const { return m_height; }
+    void setHeight(const Length& height) { m_height = height; }
+    const Length& height() const { return m_height; }
 
 private:
     Length m_width;
     Length m_height;
 };
 
-} // namespace WebCore
+} // namespace blink
 
 #endif // LengthSize_h