Chromium Code Reviews| 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 42 | 42 |
| 43 class RenderBox : public RenderBoxModelObject { | 43 class RenderBox : public RenderBoxModelObject { |
| 44 public: | 44 public: |
| 45 explicit RenderBox(ContainerNode*); | 45 explicit RenderBox(ContainerNode*); |
| 46 virtual ~RenderBox(); | 46 virtual ~RenderBox(); |
| 47 | 47 |
| 48 // hasAutoZIndex only returns true if the element is positioned or a flex-it em since | 48 // hasAutoZIndex only returns true if the element is positioned or a flex-it em since |
| 49 // position:static elements that are not flex-items get their z-index coerce d to auto. | 49 // position:static elements that are not flex-items get their z-index coerce d to auto. |
| 50 virtual bool requiresLayer() const OVERRIDE { return isRoot() || isPositione d() || createsGroup() || hasClipPath() || hasOverflowClip() || hasTransform() || hasHiddenBackface() || hasReflection() || style()->specifiesColumns() || !style ()->hasAutoZIndex() || isFloatingWithShapeOutside(); } | 50 virtual bool requiresLayer() const OVERRIDE { return isRoot() || isPositione d() || createsGroup() || hasClipPath() || hasOverflowClip() || hasTransform() || hasHiddenBackface() || hasReflection() || style()->specifiesColumns() || !style ()->hasAutoZIndex() || isFloatingWithShapeOutside(); } |
| 51 | 51 |
| 52 virtual bool backgroundIsKnownToBeOpaqueInRect(const LayoutRect& localRect) const OVERRIDE FINAL; | 52 virtual bool backgroundIsKnownToBeOpaqueInRect(const LayoutRect& localRect) const; |
|
jamesr
2013/05/29 04:59:47
why are you removing the OVERRIDE? FINAL doesn't a
| |
| 53 | 53 |
| 54 // Use this with caution! No type checking is done! | 54 // Use this with caution! No type checking is done! |
| 55 RenderBox* firstChildBox() const; | 55 RenderBox* firstChildBox() const; |
| 56 RenderBox* lastChildBox() const; | 56 RenderBox* lastChildBox() const; |
| 57 | 57 |
| 58 LayoutUnit x() const { return m_frameRect.x(); } | 58 LayoutUnit x() const { return m_frameRect.x(); } |
| 59 LayoutUnit y() const { return m_frameRect.y(); } | 59 LayoutUnit y() const { return m_frameRect.y(); } |
| 60 LayoutUnit width() const { return m_frameRect.width(); } | 60 LayoutUnit width() const { return m_frameRect.width(); } |
| 61 LayoutUnit height() const { return m_frameRect.height(); } | 61 LayoutUnit height() const { return m_frameRect.height(); } |
| 62 | 62 |
| (...skipping 673 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 736 if (UNLIKELY(m_inlineBoxWrapper != 0)) | 736 if (UNLIKELY(m_inlineBoxWrapper != 0)) |
| 737 deleteLineBoxWrapper(); | 737 deleteLineBoxWrapper(); |
| 738 } | 738 } |
| 739 | 739 |
| 740 m_inlineBoxWrapper = boxWrapper; | 740 m_inlineBoxWrapper = boxWrapper; |
| 741 } | 741 } |
| 742 | 742 |
| 743 } // namespace WebCore | 743 } // namespace WebCore |
| 744 | 744 |
| 745 #endif // RenderBox_h | 745 #endif // RenderBox_h |
| OLD | NEW |