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/rendering/RenderLayer.cpp

Issue 18896003: [WIP] Migrate Fullscreen to use top layer instead of RenderFullScreen (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 5 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 | Annotate | Revision Log
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 5611 matching lines...) Expand 10 before | Expand all | Expand 10 after
5622 if (negZOrderList) 5622 if (negZOrderList)
5623 std::stable_sort(negZOrderList->begin(), negZOrderList->end(), compareZI ndex); 5623 std::stable_sort(negZOrderList->begin(), negZOrderList->end(), compareZI ndex);
5624 5624
5625 // Append layers for top layer elements after normal layer collection, to en sure they are on top regardless of z-indexes. 5625 // Append layers for top layer elements after normal layer collection, to en sure they are on top regardless of z-indexes.
5626 // The renderers of top layer elements are children of the view, sorted in t op layer stacking order. 5626 // The renderers of top layer elements are children of the view, sorted in t op layer stacking order.
5627 if (isRootLayer()) { 5627 if (isRootLayer()) {
5628 RenderObject* view = renderer()->view(); 5628 RenderObject* view = renderer()->view();
5629 for (RenderObject* child = view->firstChild(); child; child = child->nex tSibling()) { 5629 for (RenderObject* child = view->firstChild(); child; child = child->nex tSibling()) {
5630 Element* childElement = (child->node() && child->node()->isElementNo de()) ? toElement(child->node()) : 0; 5630 Element* childElement = (child->node() && child->node()->isElementNo de()) ? toElement(child->node()) : 0;
5631 if (childElement && childElement->isInTopLayer()) { 5631 if (childElement && childElement->isInTopLayer()) {
5632 RenderLayer* layer = toRenderLayerModelObject(child)->layer(); 5632 if (!posZOrderList)
5633 posZOrderList->append(layer); 5633 posZOrderList = adoptPtr(new Vector<RenderLayer*>);
5634 posZOrderList->append(toRenderLayerModelObject(child)->layer());
5634 } 5635 }
5635 } 5636 }
5636 } 5637 }
5637 } 5638 }
5638 5639
5639 void RenderLayer::updateNormalFlowList() 5640 void RenderLayer::updateNormalFlowList()
5640 { 5641 {
5641 if (!m_normalFlowListDirty) 5642 if (!m_normalFlowListDirty)
5642 return; 5643 return;
5643 5644
(...skipping 749 matching lines...) Expand 10 before | Expand all | Expand 10 after
6393 } 6394 }
6394 } 6395 }
6395 6396
6396 void showLayerTree(const WebCore::RenderObject* renderer) 6397 void showLayerTree(const WebCore::RenderObject* renderer)
6397 { 6398 {
6398 if (!renderer) 6399 if (!renderer)
6399 return; 6400 return;
6400 showLayerTree(renderer->enclosingLayer()); 6401 showLayerTree(renderer->enclosingLayer());
6401 } 6402 }
6402 #endif 6403 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698