Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(27)

Unified Diff: sky/engine/web/LinkHighlight.cpp

Issue 763013002: Get rid of the remaining uses of GraphicsLayer. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: fix diff Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sky/engine/web/ChromeClientImpl.cpp ('k') | sky/engine/web/WebViewImpl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/web/LinkHighlight.cpp
diff --git a/sky/engine/web/LinkHighlight.cpp b/sky/engine/web/LinkHighlight.cpp
index 10498414a0a72ddffeaf48fe0cffccdac3630ee8..dcf96670f938e0743e12c0393603be7d7fd17c6f 100644
--- a/sky/engine/web/LinkHighlight.cpp
+++ b/sky/engine/web/LinkHighlight.cpp
@@ -104,27 +104,7 @@ void LinkHighlight::releaseResources()
RenderLayer* LinkHighlight::computeEnclosingCompositingLayer()
{
- if (!m_node || !m_node->renderer())
- return 0;
-
- // Find the nearest enclosing composited layer and attach to it. We may need to cross frame boundaries
- // to find a suitable layer.
- RenderObject* renderer = m_node->renderer();
- RenderLayer* renderLayer = renderer->enclosingLayer()->enclosingLayerForPaintInvalidation();
-
- GraphicsLayer* newGraphicsLayer = renderLayer->graphicsLayerBacking();
-
- m_clipLayer->setTransform(SkMatrix44(SkMatrix44::kIdentity_Constructor));
-
- if (m_currentGraphicsLayer != newGraphicsLayer) {
- if (m_currentGraphicsLayer)
- clearGraphicsLayerLinkHighlightPointer();
-
- m_currentGraphicsLayer = newGraphicsLayer;
- m_currentGraphicsLayer->addLinkHighlight(this);
- }
-
- return renderLayer;
+ return 0;
}
static void convertTargetSpaceQuadToCompositedLayer(const FloatQuad& targetSpaceQuad, RenderObject* targetRenderer, RenderObject* compositedRenderer, FloatQuad& compositedSpaceQuad)
« no previous file with comments | « sky/engine/web/ChromeClientImpl.cpp ('k') | sky/engine/web/WebViewImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698