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

Side by Side Diff: Source/core/rendering/RenderLayerStackingNode.cpp

Issue 153233002: *** DO NOT LAND *** Remove regions support, keeping a bare minimum to support "region-based"... (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 10 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
« no previous file with comments | « Source/core/rendering/RenderLayerCompositor.cpp ('k') | Source/core/rendering/RenderMedia.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 408 matching lines...) Expand 10 before | Expand all | Expand 10 after
419 || renderer()->isCanvas() 419 || renderer()->isCanvas()
420 || renderer()->isVideo() 420 || renderer()->isVideo()
421 || renderer()->isEmbeddedObject() 421 || renderer()->isEmbeddedObject()
422 || renderer()->isRenderIFrame() 422 || renderer()->isRenderIFrame()
423 || (renderer()->style()->specifiesColumns() && !layer()->isRootLayer()); 423 || (renderer()->style()->specifiesColumns() && !layer()->isRootLayer());
424 const bool preventsElementFromBeingNormalFlow = renderer()->isPositioned() 424 const bool preventsElementFromBeingNormalFlow = renderer()->isPositioned()
425 || renderer()->hasTransform() 425 || renderer()->hasTransform()
426 || renderer()->hasClipPath() 426 || renderer()->hasClipPath()
427 || renderer()->hasFilter() 427 || renderer()->hasFilter()
428 || renderer()->hasBlendMode() 428 || renderer()->hasBlendMode()
429 || layer()->isTransparent() 429 || layer()->isTransparent();
430 || renderer()->style()->hasFlowFrom();
431 430
432 return couldBeNormalFlow && !preventsElementFromBeingNormalFlow; 431 return couldBeNormalFlow && !preventsElementFromBeingNormalFlow;
433 } 432 }
434 433
435 void RenderLayerStackingNode::updateIsNormalFlowOnly() 434 void RenderLayerStackingNode::updateIsNormalFlowOnly()
436 { 435 {
437 bool isNormalFlowOnly = shouldBeNormalFlowOnly(); 436 bool isNormalFlowOnly = shouldBeNormalFlowOnly();
438 if (isNormalFlowOnly == this->isNormalFlowOnly()) 437 if (isNormalFlowOnly == this->isNormalFlowOnly())
439 return; 438 return;
440 439
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
651 return ancestor->stackingNode(); 650 return ancestor->stackingNode();
652 return 0; 651 return 0;
653 } 652 }
654 653
655 RenderLayerModelObject* RenderLayerStackingNode::renderer() const 654 RenderLayerModelObject* RenderLayerStackingNode::renderer() const
656 { 655 {
657 return m_layer->renderer(); 656 return m_layer->renderer();
658 } 657 }
659 658
660 } // namespace WebCore 659 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderLayerCompositor.cpp ('k') | Source/core/rendering/RenderMedia.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698