Index: third_party/WebKit/Source/platform/LayoutUnit.h |
diff --git a/third_party/WebKit/Source/platform/LayoutUnit.h b/third_party/WebKit/Source/platform/LayoutUnit.h |
index 6611ca345d28169f96664a8977cf5e2fecc7521d..7754725660c7ed7b45205d54870ed5e58a52c332 100644 |
--- a/third_party/WebKit/Source/platform/LayoutUnit.h |
+++ b/third_party/WebKit/Source/platform/LayoutUnit.h |
@@ -124,6 +124,12 @@ public: |
REPORT_OVERFLOW(value > std::numeric_limits<int>::min() && value < std::numeric_limits<int>::max()); |
m_value = static_cast<int>(value); |
} |
+ static LayoutUnit fromRawValue(int value) |
+ { |
+ LayoutUnit v; |
+ v.setRawValue(value); |
+ return v; |
+ } |
LayoutUnit abs() const |
{ |