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

Side by Side Diff: Source/core/paint/DeprecatedPaintLayer.cpp

Issue 1298493003: Currently we only composite fixed position elements if we are on High DPI devices. This fix allows … Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Remove similarity check Created 5 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 2303 matching lines...) Expand 10 before | Expand all | Expand 10 after
2314 return false; 2314 return false;
2315 2315
2316 // We can't use hasVisibleContent(), because that will be true if our layout Object is hidden, but some child 2316 // We can't use hasVisibleContent(), because that will be true if our layout Object is hidden, but some child
2317 // is visible and that child doesn't cover the entire rect. 2317 // is visible and that child doesn't cover the entire rect.
2318 if (layoutObject()->style()->visibility() != VISIBLE) 2318 if (layoutObject()->style()->visibility() != VISIBLE)
2319 return false; 2319 return false;
2320 2320
2321 if (paintsWithFilters() && layoutObject()->style()->filter().hasFilterThatAf fectsOpacity()) 2321 if (paintsWithFilters() && layoutObject()->style()->filter().hasFilterThatAf fectsOpacity())
2322 return false; 2322 return false;
2323 2323
2324 // FIXME: Handle simple transforms.
2325 if (paintsWithTransform(GlobalPaintNormalPhase))
2326 return false;
2327
2328 // FIXME: Remove this check. 2324 // FIXME: Remove this check.
2329 // This function should not be called when layer-lists are dirty. 2325 // This function should not be called when layer-lists are dirty.
2330 // It is somehow getting triggered during style update. 2326 // It is somehow getting triggered during style update.
2331 if (m_stackingNode->zOrderListsDirty()) 2327 if (m_stackingNode->zOrderListsDirty())
2332 return false; 2328 return false;
2333 2329
2334 // FIXME: We currently only check the immediate layoutObject, 2330 // FIXME: We currently only check the immediate layoutObject,
2335 // which will miss many cases. 2331 // which will miss many cases.
2336 if (layoutObject()->backgroundIsKnownToBeOpaqueInRect(localRect)) 2332 if (layoutObject()->backgroundIsKnownToBeOpaqueInRect(localRect))
2337 return true; 2333 return true;
(...skipping 373 matching lines...) Expand 10 before | Expand all | Expand 10 after
2711 2707
2712 void showLayerTree(const blink::LayoutObject* layoutObject) 2708 void showLayerTree(const blink::LayoutObject* layoutObject)
2713 { 2709 {
2714 if (!layoutObject) { 2710 if (!layoutObject) {
2715 fprintf(stderr, "Cannot showLayerTree. Root is (nil)\n"); 2711 fprintf(stderr, "Cannot showLayerTree. Root is (nil)\n");
2716 return; 2712 return;
2717 } 2713 }
2718 showLayerTree(layoutObject->enclosingLayer()); 2714 showLayerTree(layoutObject->enclosingLayer());
2719 } 2715 }
2720 #endif 2716 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698