| Index: Source/core/rendering/HitTestResult.cpp
|
| diff --git a/Source/core/rendering/HitTestResult.cpp b/Source/core/rendering/HitTestResult.cpp
|
| index 921448cb147c49778d173584eb3f12e6a5196feb..cd89a44be05ca335392269bdb5101830dbe2fb59 100644
|
| --- a/Source/core/rendering/HitTestResult.cpp
|
| +++ b/Source/core/rendering/HitTestResult.cpp
|
| @@ -46,7 +46,6 @@ using namespace HTMLNames;
|
|
|
| HitTestResult::HitTestResult()
|
| : m_isOverWidget(false)
|
| - , m_isFirstLetter(false)
|
| {
|
| }
|
|
|
| @@ -54,7 +53,6 @@ HitTestResult::HitTestResult(const LayoutPoint& point)
|
| : m_hitTestLocation(point)
|
| , m_pointInInnerNodeFrame(point)
|
| , m_isOverWidget(false)
|
| - , m_isFirstLetter(false)
|
| {
|
| }
|
|
|
| @@ -62,7 +60,6 @@ HitTestResult::HitTestResult(const LayoutPoint& centerPoint, unsigned topPadding
|
| : m_hitTestLocation(centerPoint, topPadding, rightPadding, bottomPadding, leftPadding)
|
| , m_pointInInnerNodeFrame(centerPoint)
|
| , m_isOverWidget(false)
|
| - , m_isFirstLetter(false)
|
| {
|
| }
|
|
|
| @@ -70,7 +67,6 @@ HitTestResult::HitTestResult(const HitTestLocation& other)
|
| : m_hitTestLocation(other)
|
| , m_pointInInnerNodeFrame(m_hitTestLocation.point())
|
| , m_isOverWidget(false)
|
| - , m_isFirstLetter(false)
|
| {
|
| }
|
|
|
| @@ -84,7 +80,6 @@ HitTestResult::HitTestResult(const HitTestResult& other)
|
| , m_innerURLElement(other.URLElement())
|
| , m_scrollbar(other.scrollbar())
|
| , m_isOverWidget(other.isOverWidget())
|
| - , m_isFirstLetter(other.m_isFirstLetter)
|
| {
|
| // Only copy the NodeSet in case of rect hit test.
|
| m_rectBasedTestResult = adoptPtrWillBeNoop(other.m_rectBasedTestResult ? new NodeSet(*other.m_rectBasedTestResult) : 0);
|
| @@ -104,7 +99,6 @@ HitTestResult& HitTestResult::operator=(const HitTestResult& other)
|
| m_localPoint = other.localPoint();
|
| m_innerURLElement = other.URLElement();
|
| m_scrollbar = other.scrollbar();
|
| - m_isFirstLetter = other.m_isFirstLetter;
|
| m_isOverWidget = other.isOverWidget();
|
|
|
| // Only copy the NodeSet in case of rect hit test.
|
| @@ -138,12 +132,7 @@ PositionWithAffinity HitTestResult::position() const
|
|
|
| RenderObject* HitTestResult::renderer() const
|
| {
|
| - if (!m_innerNode)
|
| - return 0;
|
| - RenderObject* renderer = m_innerNode->renderer();
|
| - if (!m_isFirstLetter || !renderer || !renderer->isText() || !toRenderText(renderer)->isTextFragment())
|
| - return renderer;
|
| - return toRenderTextFragment(renderer)->firstRenderTextInFirstLetter();
|
| + return m_innerNode ? m_innerNode->renderer() : 0;
|
| }
|
|
|
| void HitTestResult::setToShadowHostIfInUserAgentShadowRoot()
|
|
|