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

Side by Side Diff: third_party/WebKit/Source/core/paint/PaintLayer.cpp

Issue 2322073006: Turn off the old compositing path for SPv2. (Closed)
Patch Set: none Created 4 years, 3 months 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights reserved.
3 * 3 *
4 * Portions are Copyright (C) 1998 Netscape Communications Corporation. 4 * Portions are Copyright (C) 1998 Netscape Communications Corporation.
5 * 5 *
6 * Other contributors: 6 * Other contributors:
7 * Robert O'Callahan <roc+@cs.cmu.edu> 7 * Robert O'Callahan <roc+@cs.cmu.edu>
8 * David Baron <dbaron@fas.harvard.edu> 8 * David Baron <dbaron@fas.harvard.edu>
9 * Christian Biesinger <cbiesinger@web.de> 9 * Christian Biesinger <cbiesinger@web.de>
10 * Randall Jesup <rjesup@wgate.com> 10 * Randall Jesup <rjesup@wgate.com>
(...skipping 1738 matching lines...) Expand 10 before | Expand all | Expand 10 after
1749 // transformState.m_accumulatedTransform holds the transform from the containing flattening layer. 1749 // transformState.m_accumulatedTransform holds the transform from the containing flattening layer.
1750 // transformState.m_lastPlanarPoint is the hitTestLocation in the plane of the c ontaining flattening layer. 1750 // transformState.m_lastPlanarPoint is the hitTestLocation in the plane of the c ontaining flattening layer.
1751 // transformState.m_lastPlanarQuad is the hitTestRect as a quad in the plane of the containing flattening layer. 1751 // transformState.m_lastPlanarQuad is the hitTestRect as a quad in the plane of the containing flattening layer.
1752 // 1752 //
1753 // If zOffset is non-null (which indicates that the caller wants z offset inform ation), 1753 // If zOffset is non-null (which indicates that the caller wants z offset inform ation),
1754 // *zOffset on return is the z offset of the hit point relative to the containi ng flattening layer. 1754 // *zOffset on return is the z offset of the hit point relative to the containi ng flattening layer.
1755 PaintLayer* PaintLayer::hitTestLayer(PaintLayer* rootLayer, PaintLayer* containe rLayer, HitTestResult& result, 1755 PaintLayer* PaintLayer::hitTestLayer(PaintLayer* rootLayer, PaintLayer* containe rLayer, HitTestResult& result,
1756 const LayoutRect& hitTestRect, const HitTestLocation& hitTestLocation, bool appliedTransform, 1756 const LayoutRect& hitTestRect, const HitTestLocation& hitTestLocation, bool appliedTransform,
1757 const HitTestingTransformState* transformState, double* zOffset) 1757 const HitTestingTransformState* transformState, double* zOffset)
1758 { 1758 {
1759 ASSERT(layoutObject()->document().lifecycle().state() >= DocumentLifecycle:: CompositingClean); 1759 DCHECK(layoutObject()->document().lifecycle().state() >= DocumentLifecycle:: CompositingClean);
1760 1760
1761 if (!isSelfPaintingLayer() && !hasSelfPaintingLayerDescendant()) 1761 if (!isSelfPaintingLayer() && !hasSelfPaintingLayerDescendant())
1762 return nullptr; 1762 return nullptr;
1763 1763
1764 ClipRectsCacheSlot clipRectsCacheSlot = result.hitTestRequest().ignoreClippi ng() ? RootRelativeClipRectsIgnoringViewportClip : RootRelativeClipRects; 1764 ClipRectsCacheSlot clipRectsCacheSlot = result.hitTestRequest().ignoreClippi ng() ? RootRelativeClipRectsIgnoringViewportClip : RootRelativeClipRects;
1765 1765
1766 // Apply a transform if we have one. 1766 // Apply a transform if we have one.
1767 if (transform() && !appliedTransform) { 1767 if (transform() && !appliedTransform) {
1768 if (enclosingPaginationLayer()) 1768 if (enclosingPaginationLayer())
1769 return hitTestTransformedLayerInFragments(rootLayer, containerLayer, result, hitTestRect, hitTestLocation, transformState, zOffset, clipRectsCacheSl ot); 1769 return hitTestTransformedLayerInFragments(rootLayer, containerLayer, result, hitTestRect, hitTestLocation, transformState, zOffset, clipRectsCacheSl ot);
(...skipping 1212 matching lines...) Expand 10 before | Expand all | Expand 10 after
2982 2982
2983 void showLayerTree(const blink::LayoutObject* layoutObject) 2983 void showLayerTree(const blink::LayoutObject* layoutObject)
2984 { 2984 {
2985 if (!layoutObject) { 2985 if (!layoutObject) {
2986 fprintf(stderr, "Cannot showLayerTree. Root is (nil)\n"); 2986 fprintf(stderr, "Cannot showLayerTree. Root is (nil)\n");
2987 return; 2987 return;
2988 } 2988 }
2989 showLayerTree(layoutObject->enclosingLayer()); 2989 showLayerTree(layoutObject->enclosingLayer());
2990 } 2990 }
2991 #endif 2991 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698