| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2004, 2005, 2007 Nikolas Zimmermann <zimmermann@kde.org> | 2 * Copyright (C) 2004, 2005, 2007 Nikolas Zimmermann <zimmermann@kde.org> |
| 3 * Copyright (C) 2004, 2005, 2007 Rob Buis <buis@kde.org> | 3 * Copyright (C) 2004, 2005, 2007 Rob Buis <buis@kde.org> |
| 4 * Copyright (C) 2009 Google, Inc. All rights reserved. | 4 * Copyright (C) 2009 Google, Inc. All rights reserved. |
| 5 * Copyright (C) 2009 Apple Inc. All rights reserved. | 5 * Copyright (C) 2009 Apple Inc. All rights reserved. |
| 6 * | 6 * |
| 7 * This library is free software; you can redistribute it and/or | 7 * This library is free software; you can redistribute it and/or |
| 8 * modify it under the terms of the GNU Library General Public | 8 * modify it under the terms of the GNU Library General Public |
| 9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
| 10 * version 2 of the License, or (at your option) any later version. | 10 * version 2 of the License, or (at your option) any later version. |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 bool isEmbeddedThroughSVGImage() const; | 38 bool isEmbeddedThroughSVGImage() const; |
| 39 bool isEmbeddedThroughFrameContainingSVGDocument() const; | 39 bool isEmbeddedThroughFrameContainingSVGDocument() const; |
| 40 | 40 |
| 41 void computeIntrinsicSizingInfo(IntrinsicSizingInfo&) const override; | 41 void computeIntrinsicSizingInfo(IntrinsicSizingInfo&) const override; |
| 42 | 42 |
| 43 // If you have a LayoutSVGRoot, use firstChild or lastChild instead. | 43 // If you have a LayoutSVGRoot, use firstChild or lastChild instead. |
| 44 void slowFirstChild() const = delete; | 44 void slowFirstChild() const = delete; |
| 45 void slowLastChild() const = delete; | 45 void slowLastChild() const = delete; |
| 46 | 46 |
| 47 LayoutObject* firstChild() const { | 47 LayoutObject* firstChild() const { |
| 48 ASSERT(children() == virtualChildren()); | 48 DCHECK_EQ(children(), virtualChildren()); |
| 49 return children()->firstChild(); | 49 return children()->firstChild(); |
| 50 } | 50 } |
| 51 LayoutObject* lastChild() const { | 51 LayoutObject* lastChild() const { |
| 52 ASSERT(children() == virtualChildren()); | 52 DCHECK_EQ(children(), virtualChildren()); |
| 53 return children()->lastChild(); | 53 return children()->lastChild(); |
| 54 } | 54 } |
| 55 | 55 |
| 56 bool isLayoutSizeChanged() const { return m_isLayoutSizeChanged; } | 56 bool isLayoutSizeChanged() const { return m_isLayoutSizeChanged; } |
| 57 bool didScreenScaleFactorChange() const { | 57 bool didScreenScaleFactorChange() const { |
| 58 return m_didScreenScaleFactorChange; | 58 return m_didScreenScaleFactorChange; |
| 59 } | 59 } |
| 60 void setNeedsBoundariesUpdate() override { | 60 void setNeedsBoundariesUpdate() override { |
| 61 m_needsBoundariesOrTransformUpdate = true; | 61 m_needsBoundariesOrTransformUpdate = true; |
| 62 } | 62 } |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 179 bool m_hasBoxDecorationBackground : 1; | 179 bool m_hasBoxDecorationBackground : 1; |
| 180 mutable bool m_hasNonIsolatedBlendingDescendants : 1; | 180 mutable bool m_hasNonIsolatedBlendingDescendants : 1; |
| 181 mutable bool m_hasNonIsolatedBlendingDescendantsDirty : 1; | 181 mutable bool m_hasNonIsolatedBlendingDescendantsDirty : 1; |
| 182 }; | 182 }; |
| 183 | 183 |
| 184 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutSVGRoot, isSVGRoot()); | 184 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutSVGRoot, isSVGRoot()); |
| 185 | 185 |
| 186 } // namespace blink | 186 } // namespace blink |
| 187 | 187 |
| 188 #endif // LayoutSVGRoot_h | 188 #endif // LayoutSVGRoot_h |
| OLD | NEW |