| Index: third_party/WebKit/Source/web/LinkHighlightImpl.cpp
|
| diff --git a/third_party/WebKit/Source/web/LinkHighlightImpl.cpp b/third_party/WebKit/Source/web/LinkHighlightImpl.cpp
|
| index 3fac9ec6e92249418a706b0507d354dad1137a67..c1414d48d8062396cedf5cfbc21ab39710e736cd 100644
|
| --- a/third_party/WebKit/Source/web/LinkHighlightImpl.cpp
|
| +++ b/third_party/WebKit/Source/web/LinkHighlightImpl.cpp
|
| @@ -71,7 +71,6 @@
|
| : m_node(node)
|
| , m_owningWebViewImpl(owningWebViewImpl)
|
| , m_currentGraphicsLayer(0)
|
| - , m_isScrollingGraphicsLayer(false)
|
| , m_geometryNeedsUpdate(false)
|
| , m_isAnimating(false)
|
| , m_startTime(monotonicallyIncreasingTime())
|
| @@ -128,12 +127,9 @@
|
| void LinkHighlightImpl::attachLinkHighlightToCompositingLayer(const LayoutBoxModelObject& paintInvalidationContainer)
|
| {
|
| GraphicsLayer* newGraphicsLayer = paintInvalidationContainer.layer()->graphicsLayerBacking();
|
| - m_isScrollingGraphicsLayer = false;
|
| // FIXME: There should always be a GraphicsLayer. See crbug.com/431961.
|
| - if (paintInvalidationContainer.layer()->needsCompositedScrolling() && m_node->layoutObject() != &paintInvalidationContainer) {
|
| + if (newGraphicsLayer && !newGraphicsLayer->drawsContent())
|
| newGraphicsLayer = paintInvalidationContainer.layer()->graphicsLayerBackingForScrolling();
|
| - m_isScrollingGraphicsLayer = true;
|
| - }
|
| if (!newGraphicsLayer)
|
| return;
|
|
|
| @@ -226,13 +222,6 @@
|
| for (size_t quadIndex = 0; quadIndex < quads.size(); ++quadIndex) {
|
| FloatQuad absoluteQuad = quads[quadIndex];
|
|
|
| - // Scrolling content layers have the same offset from layout object as the non-scrolling layers. Thus we need
|
| - // to adjust for their scroll offset.
|
| - if (m_isScrollingGraphicsLayer) {
|
| - DoubleSize adjustedScrollOffset = paintInvalidationContainer.layer()->getScrollableArea()->adjustedScrollOffset();
|
| - absoluteQuad.move(adjustedScrollOffset.width(), adjustedScrollOffset.height());
|
| - }
|
| -
|
| // Transform node quads in target absolute coords to local coordinates in the compositor layer.
|
| FloatQuad transformedQuad;
|
| convertTargetSpaceQuadToCompositedLayer(absoluteQuad, m_node->layoutObject(), paintInvalidationContainer, transformedQuad);
|
|
|