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

Side by Side Diff: sky/engine/core/rendering/RenderBox.h

Issue 1161623004: Remove backface visibility (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 6 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 | « sky/engine/core/frame/FrameView.cpp ('k') | sky/engine/core/rendering/RenderBox.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) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * Copyright (C) 2003, 2006, 2007 Apple Inc. All rights reserved. 4 * Copyright (C) 2003, 2006, 2007 Apple Inc. All rights reserved.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 }; 67 };
68 68
69 class RenderBox : public RenderBoxModelObject { 69 class RenderBox : public RenderBoxModelObject {
70 public: 70 public:
71 explicit RenderBox(ContainerNode*); 71 explicit RenderBox(ContainerNode*);
72 72
73 // hasAutoZIndex only returns true if the element is positioned or a flex-it em since 73 // hasAutoZIndex only returns true if the element is positioned or a flex-it em since
74 // position:static elements that are not flex-items get their z-index coerce d to auto. 74 // position:static elements that are not flex-items get their z-index coerce d to auto.
75 virtual LayerType layerTypeRequired() const 75 virtual LayerType layerTypeRequired() const
76 { 76 {
77 if (isPositioned() || createsGroup() || hasClipPath() || hasTransform() || hasHiddenBackface() || !style()->hasAutoZIndex()) 77 if (isPositioned() || createsGroup() || hasClipPath() || hasTransform() || !style()->hasAutoZIndex())
78 return NormalLayer; 78 return NormalLayer;
79 if (hasOverflowClip()) 79 if (hasOverflowClip())
80 return OverflowClipLayer; 80 return OverflowClipLayer;
81 return NoLayer; 81 return NoLayer;
82 } 82 }
83 83
84 void destroyLayer(); 84 void destroyLayer();
85 void createLayer(LayerType); 85 void createLayer(LayerType);
86 bool hasSelfPaintingLayer() const; 86 bool hasSelfPaintingLayer() const;
87 RenderLayer* layer() const { return m_layer.get(); } 87 RenderLayer* layer() const { return m_layer.get(); }
(...skipping 528 matching lines...) Expand 10 before | Expand all | Expand 10 after
616 if (UNLIKELY(inlineBoxWrapper() != 0)) 616 if (UNLIKELY(inlineBoxWrapper() != 0))
617 deleteLineBoxWrapper(); 617 deleteLineBoxWrapper();
618 } 618 }
619 619
620 ensureRareData().m_inlineBoxWrapper = boxWrapper; 620 ensureRareData().m_inlineBoxWrapper = boxWrapper;
621 } 621 }
622 622
623 } // namespace blink 623 } // namespace blink
624 624
625 #endif // SKY_ENGINE_CORE_RENDERING_RENDERBOX_H_ 625 #endif // SKY_ENGINE_CORE_RENDERING_RENDERBOX_H_
OLDNEW
« no previous file with comments | « sky/engine/core/frame/FrameView.cpp ('k') | sky/engine/core/rendering/RenderBox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698