OLD | NEW |
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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 }; | 68 }; |
69 | 69 |
70 class RenderBox : public RenderBoxModelObject { | 70 class RenderBox : public RenderBoxModelObject { |
71 public: | 71 public: |
72 explicit RenderBox(ContainerNode*); | 72 explicit RenderBox(ContainerNode*); |
73 | 73 |
74 // hasAutoZIndex only returns true if the element is positioned or a flex-it
em since | 74 // hasAutoZIndex only returns true if the element is positioned or a flex-it
em since |
75 // position:static elements that are not flex-items get their z-index coerce
d to auto. | 75 // position:static elements that are not flex-items get their z-index coerce
d to auto. |
76 virtual LayerType layerTypeRequired() const override | 76 virtual LayerType layerTypeRequired() const override |
77 { | 77 { |
78 if (isPositioned() || createsGroup() || hasClipPath() || hasTransform()
|| hasHiddenBackface() || hasReflection() || style()->specifiesColumns() || !sty
le()->hasAutoZIndex() || style()->shouldCompositeForCurrentAnimations()) | 78 if (isPositioned() || createsGroup() || hasClipPath() || hasTransformRel
atedProperty() || hasHiddenBackface() || hasReflection() || style()->specifiesCo
lumns() || !style()->hasAutoZIndex() || style()->shouldCompositeForCurrentAnimat
ions()) |
79 return NormalLayer; | 79 return NormalLayer; |
80 if (hasOverflowClip()) | 80 if (hasOverflowClip()) |
81 return OverflowClipLayer; | 81 return OverflowClipLayer; |
82 | 82 |
83 return NoLayer; | 83 return NoLayer; |
84 } | 84 } |
85 | 85 |
86 virtual bool backgroundIsKnownToBeOpaqueInRect(const LayoutRect& localRect)
const override; | 86 virtual bool backgroundIsKnownToBeOpaqueInRect(const LayoutRect& localRect)
const override; |
87 | 87 |
88 // Use this with caution! No type checking is done! | 88 // Use this with caution! No type checking is done! |
(...skipping 678 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
767 if (UNLIKELY(inlineBoxWrapper() != 0)) | 767 if (UNLIKELY(inlineBoxWrapper() != 0)) |
768 deleteLineBoxWrapper(); | 768 deleteLineBoxWrapper(); |
769 } | 769 } |
770 | 770 |
771 ensureRareData().m_inlineBoxWrapper = boxWrapper; | 771 ensureRareData().m_inlineBoxWrapper = boxWrapper; |
772 } | 772 } |
773 | 773 |
774 } // namespace blink | 774 } // namespace blink |
775 | 775 |
776 #endif // RenderBox_h | 776 #endif // RenderBox_h |
OLD | NEW |