Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / Source / core / rendering / HitTestLocation.cpp
index 03582df..c8df8a4 100644 (file)
 #include "config.h"
 #include "core/rendering/HitTestLocation.h"
 
-#include "HTMLNames.h"
-#include "SVGNames.h"
-#include "XLinkNames.h"
-
-namespace WebCore {
-
-using namespace HTMLNames;
+namespace blink {
 
 HitTestLocation::HitTestLocation()
     : m_isRectBased(false)
@@ -158,6 +152,11 @@ bool HitTestLocation::intersects(const RoundedRect& rect) const
     return rect.intersectsQuad(m_transformedRect);
 }
 
+bool HitTestLocation::containsPoint(const FloatPoint& point) const
+{
+    return m_transformedRect.containsPoint(point);
+}
+
 IntRect HitTestLocation::rectForPoint(const LayoutPoint& point, unsigned topPadding, unsigned rightPadding, unsigned bottomPadding, unsigned leftPadding)
 {
     IntPoint actualPoint(flooredIntPoint(point));
@@ -171,4 +170,4 @@ IntRect HitTestLocation::rectForPoint(const LayoutPoint& point, unsigned topPadd
     return IntRect(actualPoint, actualPadding);
 }
 
-} // namespace WebCore
+} // namespace blink