#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)
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));
return IntRect(actualPoint, actualPadding);
}
-} // namespace WebCore
+} // namespace blink