WebCore/rendering/HitTestResult.h
changeset 2 303757a437d3
parent 0 4f2f89ce4247
--- a/WebCore/rendering/HitTestResult.h	Fri Sep 17 09:02:29 2010 +0300
+++ b/WebCore/rendering/HitTestResult.h	Mon Oct 04 01:32:07 2010 +0300
@@ -86,8 +86,8 @@
     IntRect rectFromPoint(int x, int y) const;
     IntRect rectFromPoint(const IntPoint&) const;
     IntSize padding() const { return m_padding; }
-    int paddingWidth() const { return m_padding.width() >= 0 ? m_padding.width() : 0; }
-    int paddingHeight() const { return m_padding.height() >= 0 ? m_padding.height() : 0; }
+    int paddingWidth() const { return m_padding.width(); }
+    int paddingHeight() const { return m_padding.height(); }
     // Returns true if it is rect-based hit test and needs to continue until the rect is fully
     // enclosed by the boundaries of a node.
     bool addNodeToRectBasedTestResult(Node*, int x, int y, const IntRect& rect = IntRect());