diff options
Diffstat (limited to 'Source/WebCore/rendering/HitTestLocation.cpp')
-rw-r--r-- | Source/WebCore/rendering/HitTestLocation.cpp | 37 |
1 files changed, 2 insertions, 35 deletions
diff --git a/Source/WebCore/rendering/HitTestLocation.cpp b/Source/WebCore/rendering/HitTestLocation.cpp index 118a38db2..d1446b576 100644 --- a/Source/WebCore/rendering/HitTestLocation.cpp +++ b/Source/WebCore/rendering/HitTestLocation.cpp @@ -22,36 +22,10 @@ #include "config.h" #include "HitTestLocation.h" -#include "CachedImage.h" -#include "DocumentMarkerController.h" -#include "Frame.h" -#include "FrameSelection.h" -#include "FrameTree.h" -#include "HTMLAnchorElement.h" -#include "HTMLImageElement.h" -#include "HTMLInputElement.h" -#include "HTMLMediaElement.h" -#include "HTMLNames.h" -#include "HTMLParserIdioms.h" -#include "HTMLPlugInImageElement.h" -#include "HTMLVideoElement.h" -#include "RenderBlock.h" -#include "RenderImage.h" -#include "RenderInline.h" -#include "Scrollbar.h" - -#if ENABLE(SVG) -#include "SVGNames.h" -#include "XLinkNames.h" -#endif - namespace WebCore { -using namespace HTMLNames; - HitTestLocation::HitTestLocation() - : m_region(0) - , m_isRectBased(false) + : m_isRectBased(false) , m_isRectilinear(true) { } @@ -61,7 +35,6 @@ HitTestLocation::HitTestLocation(const LayoutPoint& point) , m_boundingBox(rectForPoint(point, 0, 0, 0, 0)) , m_transformedPoint(point) , m_transformedRect(m_boundingBox) - , m_region(0) , m_isRectBased(false) , m_isRectilinear(true) { @@ -72,7 +45,6 @@ HitTestLocation::HitTestLocation(const FloatPoint& point) , m_boundingBox(rectForPoint(m_point, 0, 0, 0, 0)) , m_transformedPoint(point) , m_transformedRect(m_boundingBox) - , m_region(0) , m_isRectBased(false) , m_isRectilinear(true) { @@ -81,7 +53,6 @@ HitTestLocation::HitTestLocation(const FloatPoint& point) HitTestLocation::HitTestLocation(const FloatPoint& point, const FloatQuad& quad) : m_transformedPoint(point) , m_transformedRect(quad) - , m_region(0) , m_isRectBased(true) { m_point = flooredLayoutPoint(point); @@ -93,19 +64,17 @@ HitTestLocation::HitTestLocation(const LayoutPoint& centerPoint, unsigned topPad : m_point(centerPoint) , m_boundingBox(rectForPoint(centerPoint, topPadding, rightPadding, bottomPadding, leftPadding)) , m_transformedPoint(centerPoint) - , m_region(0) , m_isRectBased(topPadding || rightPadding || bottomPadding || leftPadding) , m_isRectilinear(true) { m_transformedRect = FloatQuad(m_boundingBox); } -HitTestLocation::HitTestLocation(const HitTestLocation& other, const LayoutSize& offset, RenderRegion* region) +HitTestLocation::HitTestLocation(const HitTestLocation& other, const LayoutSize& offset) : m_point(other.m_point) , m_boundingBox(other.m_boundingBox) , m_transformedPoint(other.m_transformedPoint) , m_transformedRect(other.m_transformedRect) - , m_region(region ? region : other.m_region) , m_isRectBased(other.m_isRectBased) , m_isRectilinear(other.m_isRectilinear) { @@ -117,7 +86,6 @@ HitTestLocation::HitTestLocation(const HitTestLocation& other) , m_boundingBox(other.m_boundingBox) , m_transformedPoint(other.m_transformedPoint) , m_transformedRect(other.m_transformedRect) - , m_region(other.m_region) , m_isRectBased(other.m_isRectBased) , m_isRectilinear(other.m_isRectilinear) { @@ -133,7 +101,6 @@ HitTestLocation& HitTestLocation::operator=(const HitTestLocation& other) m_boundingBox = other.m_boundingBox; m_transformedPoint = other.m_transformedPoint; m_transformedRect = other.m_transformedRect; - m_region = other.m_region; m_isRectBased = other.m_isRectBased; m_isRectilinear = other.m_isRectilinear; |