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

Side by Side Diff: sky/engine/core/rendering/RenderLayer.cpp

Issue 794733004: Remove CompositingReasons.* (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 6 years 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 | « sky/engine/core/rendering/RenderLayer.h ('k') | sky/engine/core/rendering/RenderObject.h » ('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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 , m_hasCompositingDescendant(false) 94 , m_hasCompositingDescendant(false)
95 , m_lostGroupedMapping(false) 95 , m_lostGroupedMapping(false)
96 , m_renderer(renderer) 96 , m_renderer(renderer)
97 , m_parent(0) 97 , m_parent(0)
98 , m_previous(0) 98 , m_previous(0)
99 , m_next(0) 99 , m_next(0)
100 , m_first(0) 100 , m_first(0)
101 , m_last(0) 101 , m_last(0)
102 , m_staticInlinePosition(0) 102 , m_staticInlinePosition(0)
103 , m_staticBlockPosition(0) 103 , m_staticBlockPosition(0)
104 , m_potentialCompositingReasonsFromStyle(CompositingReasonNone)
105 , m_compositingReasons(CompositingReasonNone)
106 , m_paintInvalidator(*renderer) 104 , m_paintInvalidator(*renderer)
107 , m_clipper(*renderer) 105 , m_clipper(*renderer)
108 { 106 {
109 updateStackingNode(); 107 updateStackingNode();
110 108
111 m_isSelfPaintingLayer = shouldBeSelfPaintingLayer(); 109 m_isSelfPaintingLayer = shouldBeSelfPaintingLayer();
112 110
113 updateScrollableArea(); 111 updateScrollableArea();
114 } 112 }
115 113
(...skipping 394 matching lines...) Expand 10 before | Expand all | Expand 10 after
510 m_ancestorDependentCompositingInputs = compositingInputs; 508 m_ancestorDependentCompositingInputs = compositingInputs;
511 m_needsAncestorDependentCompositingInputsUpdate = false; 509 m_needsAncestorDependentCompositingInputsUpdate = false;
512 } 510 }
513 511
514 void RenderLayer::updateDescendantDependentCompositingInputs(const DescendantDep endentCompositingInputs& compositingInputs) 512 void RenderLayer::updateDescendantDependentCompositingInputs(const DescendantDep endentCompositingInputs& compositingInputs)
515 { 513 {
516 m_descendantDependentCompositingInputs = compositingInputs; 514 m_descendantDependentCompositingInputs = compositingInputs;
517 m_needsDescendantDependentCompositingInputsUpdate = false; 515 m_needsDescendantDependentCompositingInputsUpdate = false;
518 } 516 }
519 517
520 void RenderLayer::setCompositingReasons(CompositingReasons reasons, CompositingR easons mask)
521 {
522 if ((compositingReasons() & mask) == (reasons & mask))
523 return;
524 m_compositingReasons = (reasons & mask) | (compositingReasons() & ~mask);
525 }
526
527 void RenderLayer::setHasCompositingDescendant(bool hasCompositingDescendant) 518 void RenderLayer::setHasCompositingDescendant(bool hasCompositingDescendant)
528 { 519 {
529 // FIXME(sky): Remove 520 // FIXME(sky): Remove
530 m_hasCompositingDescendant = hasCompositingDescendant; 521 m_hasCompositingDescendant = hasCompositingDescendant;
531 } 522 }
532 523
533 524
534 bool RenderLayer::hasAncestorWithFilterOutsets() const 525 bool RenderLayer::hasAncestorWithFilterOutsets() const
535 { 526 {
536 for (const RenderLayer* curr = this; curr; curr = curr->parent()) { 527 for (const RenderLayer* curr = this; curr; curr = curr->parent()) {
(...skipping 1527 matching lines...) Expand 10 before | Expand all | Expand 10 after
2064 } 2055 }
2065 } 2056 }
2066 2057
2067 void showLayerTree(const blink::RenderObject* renderer) 2058 void showLayerTree(const blink::RenderObject* renderer)
2068 { 2059 {
2069 if (!renderer) 2060 if (!renderer)
2070 return; 2061 return;
2071 showLayerTree(renderer->enclosingLayer()); 2062 showLayerTree(renderer->enclosingLayer());
2072 } 2063 }
2073 #endif 2064 #endif
OLDNEW
« no previous file with comments | « sky/engine/core/rendering/RenderLayer.h ('k') | sky/engine/core/rendering/RenderObject.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698