| 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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 | 69 |
| 70 | 70 |
| 71 class RenderBox : public RenderBoxModelObject { | 71 class RenderBox : public RenderBoxModelObject { |
| 72 public: | 72 public: |
| 73 explicit RenderBox(ContainerNode*); | 73 explicit RenderBox(ContainerNode*); |
| 74 | 74 |
| 75 // hasAutoZIndex only returns true if the element is positioned or a flex-it
em since | 75 // hasAutoZIndex only returns true if the element is positioned or a flex-it
em since |
| 76 // position:static elements that are not flex-items get their z-index coerce
d to auto. | 76 // position:static elements that are not flex-items get their z-index coerce
d to auto. |
| 77 virtual LayerType layerTypeRequired() const override | 77 virtual LayerType layerTypeRequired() const override |
| 78 { | 78 { |
| 79 if (isPositioned() || createsGroup() || hasClipPath() || hasTransform()
|| hasHiddenBackface() || !style()->hasAutoZIndex() || style()->shouldCompositeF
orCurrentAnimations()) | 79 if (isPositioned() || createsGroup() || hasClipPath() || hasTransform()
|| hasHiddenBackface() || !style()->hasAutoZIndex()) |
| 80 return NormalLayer; | 80 return NormalLayer; |
| 81 if (hasOverflowClip()) | 81 if (hasOverflowClip()) |
| 82 return OverflowClipLayer; | 82 return OverflowClipLayer; |
| 83 | 83 |
| 84 return NoLayer; | 84 return NoLayer; |
| 85 } | 85 } |
| 86 | 86 |
| 87 virtual bool backgroundIsKnownToBeOpaqueInRect(const LayoutRect& localRect)
const override; | 87 virtual bool backgroundIsKnownToBeOpaqueInRect(const LayoutRect& localRect)
const override; |
| 88 | 88 |
| 89 // Use this with caution! No type checking is done! | 89 // Use this with caution! No type checking is done! |
| (...skipping 568 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 658 if (UNLIKELY(inlineBoxWrapper() != 0)) | 658 if (UNLIKELY(inlineBoxWrapper() != 0)) |
| 659 deleteLineBoxWrapper(); | 659 deleteLineBoxWrapper(); |
| 660 } | 660 } |
| 661 | 661 |
| 662 ensureRareData().m_inlineBoxWrapper = boxWrapper; | 662 ensureRareData().m_inlineBoxWrapper = boxWrapper; |
| 663 } | 663 } |
| 664 | 664 |
| 665 } // namespace blink | 665 } // namespace blink |
| 666 | 666 |
| 667 #endif // SKY_ENGINE_CORE_RENDERING_RENDERBOX_H_ | 667 #endif // SKY_ENGINE_CORE_RENDERING_RENDERBOX_H_ |
| OLD | NEW |