Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 605 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 616 | 616 |
| 617 bool hasNonCompositedChild() const { return m_compositingProperties.hasNonCo mpositedChild; } | 617 bool hasNonCompositedChild() const { return m_compositingProperties.hasNonCo mpositedChild; } |
| 618 void setHasNonCompositedChild(bool b) { m_compositingProperties.hasNonCompo sitedChild = b; } | 618 void setHasNonCompositedChild(bool b) { m_compositingProperties.hasNonCompo sitedChild = b; } |
| 619 | 619 |
| 620 bool shouldIsolateCompositedDescendants() const { return m_compositingProper ties.shouldIsolateCompositedDescendants; } | 620 bool shouldIsolateCompositedDescendants() const { return m_compositingProper ties.shouldIsolateCompositedDescendants; } |
| 621 void setShouldIsolateCompositedDescendants(bool b) { m_compositingPropertie s.shouldIsolateCompositedDescendants = b; } | 621 void setShouldIsolateCompositedDescendants(bool b) { m_compositingPropertie s.shouldIsolateCompositedDescendants = b; } |
| 622 | 622 |
| 623 bool lostGroupedMapping() const { return m_compositingProperties.lostGrouped Mapping; } | 623 bool lostGroupedMapping() const { return m_compositingProperties.lostGrouped Mapping; } |
| 624 void setLostGroupedMapping(bool b) { m_compositingProperties.lostGroupedMapp ing = b; } | 624 void setLostGroupedMapping(bool b) { m_compositingProperties.lostGroupedMapp ing = b; } |
| 625 | 625 |
| 626 void setCompositingReasons(CompositingReasons); | 626 void setCompositingReasons(CompositingReasons, CompositingReasons mask = Com positingReasonAll); |
| 627 CompositingReasons compositingReasons() const { return m_compositingProperti es.compositingReasons; } | 627 CompositingReasons compositingReasons() const { return m_compositingProperti es.compositingReasons; } |
| 628 | 628 |
| 629 friend class CompositingReasonFinder; | |
|
ojan
2014/03/21 17:12:06
Instead of adding to the friend madness in RenderL
abarth-chromium
2014/03/21 17:16:13
Sure. Will do.
| |
| 629 friend class CompositedLayerMapping; | 630 friend class CompositedLayerMapping; |
| 630 friend class RenderLayerCompositor; | 631 friend class RenderLayerCompositor; |
| 631 friend class RenderLayerModelObject; | 632 friend class RenderLayerModelObject; |
| 632 | 633 |
| 633 private: | 634 private: |
| 634 LayerType m_layerType; | 635 LayerType m_layerType; |
| 635 | 636 |
| 636 // Self-painting layer is an optimization where we avoid the heavy RenderLay er painting | 637 // Self-painting layer is an optimization where we avoid the heavy RenderLay er painting |
| 637 // machinery for a RenderLayer allocated only to handle the overflow clip ca se. | 638 // machinery for a RenderLayer allocated only to handle the overflow clip ca se. |
| 638 // FIXME(crbug.com/332791): Self-painting layer should be merged into the ov erflow-only concept. | 639 // FIXME(crbug.com/332791): Self-painting layer should be merged into the ov erflow-only concept. |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 767 | 768 |
| 768 } // namespace WebCore | 769 } // namespace WebCore |
| 769 | 770 |
| 770 #ifndef NDEBUG | 771 #ifndef NDEBUG |
| 771 // Outside the WebCore namespace for ease of invocation from gdb. | 772 // Outside the WebCore namespace for ease of invocation from gdb. |
| 772 void showLayerTree(const WebCore::RenderLayer*); | 773 void showLayerTree(const WebCore::RenderLayer*); |
| 773 void showLayerTree(const WebCore::RenderObject*); | 774 void showLayerTree(const WebCore::RenderObject*); |
| 774 #endif | 775 #endif |
| 775 | 776 |
| 776 #endif // RenderLayer_h | 777 #endif // RenderLayer_h |
| OLD | NEW |