OLD | NEW |
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 1836 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1847 Vector<RenderWidget*> overlappedRequestClients; | 1847 Vector<RenderWidget*> overlappedRequestClients; |
1848 OverlapTestRequestMap::iterator end = overlapTestRequests.end(); | 1848 OverlapTestRequestMap::iterator end = overlapTestRequests.end(); |
1849 LayoutRect boundingBox = layer->physicalBoundingBox(rootLayer); | 1849 LayoutRect boundingBox = layer->physicalBoundingBox(rootLayer); |
1850 for (OverlapTestRequestMap::iterator it = overlapTestRequests.begin(); it !=
end; ++it) { | 1850 for (OverlapTestRequestMap::iterator it = overlapTestRequests.begin(); it !=
end; ++it) { |
1851 if (!boundingBox.intersects(it->value)) | 1851 if (!boundingBox.intersects(it->value)) |
1852 continue; | 1852 continue; |
1853 | 1853 |
1854 it->key->setIsOverlapped(true); | 1854 it->key->setIsOverlapped(true); |
1855 overlappedRequestClients.append(it->key); | 1855 overlappedRequestClients.append(it->key); |
1856 } | 1856 } |
1857 for (size_t i = 0; i < overlappedRequestClients.size(); ++i) | 1857 overlapTestRequests.removeAll(overlappedRequestClients); |
1858 overlapTestRequests.remove(overlappedRequestClients[i]); | |
1859 } | 1858 } |
1860 | 1859 |
1861 static bool shouldDoSoftwarePaint(const RenderLayer* layer, bool paintingReflect
ion) | 1860 static bool shouldDoSoftwarePaint(const RenderLayer* layer, bool paintingReflect
ion) |
1862 { | 1861 { |
1863 return paintingReflection && !layer->has3DTransform(); | 1862 return paintingReflection && !layer->has3DTransform(); |
1864 } | 1863 } |
1865 | 1864 |
1866 static inline bool shouldSuppressPaintingLayer(RenderLayer* layer) | 1865 static inline bool shouldSuppressPaintingLayer(RenderLayer* layer) |
1867 { | 1866 { |
1868 // Avoid painting descendants of the root layer when stylesheets haven't loa
ded. This eliminates FOUC. | 1867 // Avoid painting descendants of the root layer when stylesheets haven't loa
ded. This eliminates FOUC. |
(...skipping 2139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4008 } | 4007 } |
4009 } | 4008 } |
4010 | 4009 |
4011 void showLayerTree(const WebCore::RenderObject* renderer) | 4010 void showLayerTree(const WebCore::RenderObject* renderer) |
4012 { | 4011 { |
4013 if (!renderer) | 4012 if (!renderer) |
4014 return; | 4013 return; |
4015 showLayerTree(renderer->enclosingLayer()); | 4014 showLayerTree(renderer->enclosingLayer()); |
4016 } | 4015 } |
4017 #endif | 4016 #endif |
OLD | NEW |