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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 | 65 |
66 | 66 |
67 class RenderBox : public RenderBoxModelObject { | 67 class RenderBox : public RenderBoxModelObject { |
68 public: | 68 public: |
69 explicit RenderBox(ContainerNode*); | 69 explicit RenderBox(ContainerNode*); |
70 | 70 |
71 // hasAutoZIndex only returns true if the element is positioned or a flex-it
em since | 71 // hasAutoZIndex only returns true if the element is positioned or a flex-it
em since |
72 // position:static elements that are not flex-items get their z-index coerce
d to auto. | 72 // position:static elements that are not flex-items get their z-index coerce
d to auto. |
73 virtual LayerType layerTypeRequired() const OVERRIDE | 73 virtual LayerType layerTypeRequired() const OVERRIDE |
74 { | 74 { |
75 if (isPositioned() || createsGroup() || hasClipPath() || hasTransform()
|| hasHiddenBackface() || hasReflection() || style()->specifiesColumns() || !sty
le()->hasAutoZIndex() || style()->hasWillChangeCompositingHint() || style()->sho
uldCompositeForCurrentAnimations()) | 75 if (isPositioned() || createsGroup() || hasClipPath() || hasTransform()
|| hasHiddenBackface() || hasReflection() || style()->specifiesColumns() || !sty
le()->hasAutoZIndex() || style()->shouldCompositeForCurrentAnimations()) |
76 return NormalLayer; | 76 return NormalLayer; |
77 if (hasOverflowClip()) | 77 if (hasOverflowClip()) |
78 return OverflowClipLayer; | 78 return OverflowClipLayer; |
79 | 79 |
80 return NoLayer; | 80 return NoLayer; |
81 } | 81 } |
82 | 82 |
83 virtual bool backgroundIsKnownToBeOpaqueInRect(const LayoutRect& localRect)
const OVERRIDE; | 83 virtual bool backgroundIsKnownToBeOpaqueInRect(const LayoutRect& localRect)
const OVERRIDE; |
84 | 84 |
85 // Use this with caution! No type checking is done! | 85 // Use this with caution! No type checking is done! |
(...skipping 690 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
776 if (UNLIKELY(inlineBoxWrapper() != 0)) | 776 if (UNLIKELY(inlineBoxWrapper() != 0)) |
777 deleteLineBoxWrapper(); | 777 deleteLineBoxWrapper(); |
778 } | 778 } |
779 | 779 |
780 ensureRareData().m_inlineBoxWrapper = boxWrapper; | 780 ensureRareData().m_inlineBoxWrapper = boxWrapper; |
781 } | 781 } |
782 | 782 |
783 } // namespace WebCore | 783 } // namespace WebCore |
784 | 784 |
785 #endif // RenderBox_h | 785 #endif // RenderBox_h |
OLD | NEW |