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

Side by Side Diff: third_party/WebKit/Source/core/paint/PaintLayer.h

Issue 1406923009: Rename DISALLOW_ALLOCATION and ALLOW_ONLY_INLINE_ALLOCATION (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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) 2003, 2009, 2012 Apple Inc. All rights reserved. 2 * Copyright (C) 2003, 2009, 2012 Apple Inc. All rights reserved.
3 * Copyright (C) 2013 Intel Corporation. All rights reserved. 3 * Copyright (C) 2013 Intel Corporation. All rights reserved.
4 * 4 *
5 * Portions are Copyright (C) 1998 Netscape Communications Corporation. 5 * Portions are Copyright (C) 1998 Netscape Communications Corporation.
6 * 6 *
7 * Other contributors: 7 * Other contributors:
8 * Robert O'Callahan <roc+@cs.cmu.edu> 8 * Robert O'Callahan <roc+@cs.cmu.edu>
9 * David Baron <dbaron@fas.harvard.edu> 9 * David Baron <dbaron@fas.harvard.edu>
10 * Christian Biesinger <cbiesinger@web.de> 10 * Christian Biesinger <cbiesinger@web.de>
(...skipping 457 matching lines...) Expand 10 before | Expand all | Expand 10 after
468 } 468 }
469 469
470 bool scrollsOverflow() const; 470 bool scrollsOverflow() const;
471 471
472 CompositingReasons potentialCompositingReasonsFromStyle() const { return m_p otentialCompositingReasonsFromStyle; } 472 CompositingReasons potentialCompositingReasonsFromStyle() const { return m_p otentialCompositingReasonsFromStyle; }
473 void setPotentialCompositingReasonsFromStyle(CompositingReasons reasons) { A SSERT(reasons == (reasons & CompositingReasonComboAllStyleDeterminedReasons)); m _potentialCompositingReasonsFromStyle = reasons; } 473 void setPotentialCompositingReasonsFromStyle(CompositingReasons reasons) { A SSERT(reasons == (reasons & CompositingReasonComboAllStyleDeterminedReasons)); m _potentialCompositingReasonsFromStyle = reasons; }
474 474
475 bool hasStyleDeterminedDirectCompositingReasons() const { return m_potential CompositingReasonsFromStyle & CompositingReasonComboAllDirectStyleDeterminedReas ons; } 475 bool hasStyleDeterminedDirectCompositingReasons() const { return m_potential CompositingReasonsFromStyle & CompositingReasonComboAllDirectStyleDeterminedReas ons; }
476 476
477 class AncestorDependentCompositingInputs { 477 class AncestorDependentCompositingInputs {
478 DISALLOW_ALLOCATION(); 478 DISALLOW_NEW();
479 public: 479 public:
480 AncestorDependentCompositingInputs() 480 AncestorDependentCompositingInputs()
481 : opacityAncestor(0) 481 : opacityAncestor(0)
482 , transformAncestor(0) 482 , transformAncestor(0)
483 , filterAncestor(0) 483 , filterAncestor(0)
484 , clippingContainer(0) 484 , clippingContainer(0)
485 , ancestorScrollingLayer(0) 485 , ancestorScrollingLayer(0)
486 , nearestFixedPositionLayer(0) 486 , nearestFixedPositionLayer(0)
487 , scrollParent(0) 487 , scrollParent(0)
488 , clipParent(0) 488 , clipParent(0)
(...skipping 20 matching lines...) Expand all
509 // blink so that it may be used as a promotion trigger. Layers with clip 509 // blink so that it may be used as a promotion trigger. Layers with clip
510 // parents escape the clip of a stacking tree ancestor. The compositor 510 // parents escape the clip of a stacking tree ancestor. The compositor
511 // needs to know about clip parents in order to circumvent its normal 511 // needs to know about clip parents in order to circumvent its normal
512 // clipping logic. 512 // clipping logic.
513 const PaintLayer* clipParent; 513 const PaintLayer* clipParent;
514 514
515 unsigned hasAncestorWithClipPath : 1; 515 unsigned hasAncestorWithClipPath : 1;
516 }; 516 };
517 517
518 class DescendantDependentCompositingInputs { 518 class DescendantDependentCompositingInputs {
519 DISALLOW_ALLOCATION(); 519 DISALLOW_NEW();
520 public: 520 public:
521 DescendantDependentCompositingInputs() 521 DescendantDependentCompositingInputs()
522 : hasDescendantWithClipPath(false) 522 : hasDescendantWithClipPath(false)
523 , hasNonIsolatedDescendantWithBlendMode(false) 523 , hasNonIsolatedDescendantWithBlendMode(false)
524 { } 524 { }
525 525
526 unsigned hasDescendantWithClipPath : 1; 526 unsigned hasDescendantWithClipPath : 1;
527 unsigned hasNonIsolatedDescendantWithBlendMode : 1; 527 unsigned hasNonIsolatedDescendantWithBlendMode : 1;
528 }; 528 };
529 529
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after
810 810
811 } // namespace blink 811 } // namespace blink
812 812
813 #ifndef NDEBUG 813 #ifndef NDEBUG
814 // Outside the WebCore namespace for ease of invocation from gdb. 814 // Outside the WebCore namespace for ease of invocation from gdb.
815 void showLayerTree(const blink::PaintLayer*); 815 void showLayerTree(const blink::PaintLayer*);
816 void showLayerTree(const blink::LayoutObject*); 816 void showLayerTree(const blink::LayoutObject*);
817 #endif 817 #endif
818 818
819 #endif // Layer_h 819 #endif // Layer_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/paint/PaintInfo.h ('k') | third_party/WebKit/Source/core/paint/PaintLayerClipper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698