| 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 * (C) 2001 Dirk Mueller (mueller@kde.org) | 4 * (C) 2001 Dirk Mueller (mueller@kde.org) |
| 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r
ights reserved. | 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r
ights reserved. |
| 6 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) | 6 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) |
| 7 * Copyright (C) 2011 Google Inc. All rights reserved. | 7 * Copyright (C) 2011 Google Inc. All rights reserved. |
| 8 * | 8 * |
| 9 * This library is free software; you can redistribute it and/or | 9 * This library is free software; you can redistribute it and/or |
| 10 * modify it under the terms of the GNU Library General Public | 10 * modify it under the terms of the GNU Library General Public |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 { | 55 { |
| 56 ASSERT(m_layoutObjectParent); | 56 ASSERT(m_layoutObjectParent); |
| 57 | 57 |
| 58 // Avoid an O(N^2) walk over the children when reattaching all children
of a node. | 58 // Avoid an O(N^2) walk over the children when reattaching all children
of a node. |
| 59 if (m_layoutObjectParent->node() && m_layoutObjectParent->node()->needsA
ttach()) | 59 if (m_layoutObjectParent->node() && m_layoutObjectParent->node()->needsA
ttach()) |
| 60 return 0; | 60 return 0; |
| 61 | 61 |
| 62 return LayoutTreeBuilderTraversal::nextSiblingLayoutObject(*m_node); | 62 return LayoutTreeBuilderTraversal::nextSiblingLayoutObject(*m_node); |
| 63 } | 63 } |
| 64 | 64 |
| 65 RawPtrWillBeMember<NodeType> m_node; | 65 Member<NodeType> m_node; |
| 66 LayoutObject* m_layoutObjectParent; | 66 LayoutObject* m_layoutObjectParent; |
| 67 }; | 67 }; |
| 68 | 68 |
| 69 class LayoutTreeBuilderForElement : public LayoutTreeBuilder<Element> { | 69 class LayoutTreeBuilderForElement : public LayoutTreeBuilder<Element> { |
| 70 public: | 70 public: |
| 71 LayoutTreeBuilderForElement(Element&, ComputedStyle*); | 71 LayoutTreeBuilderForElement(Element&, ComputedStyle*); |
| 72 | 72 |
| 73 void createLayoutObjectIfNeeded() | 73 void createLayoutObjectIfNeeded() |
| 74 { | 74 { |
| 75 if (shouldCreateLayoutObject()) | 75 if (shouldCreateLayoutObject()) |
| (...skipping 14 matching lines...) Expand all Loading... |
| 90 public: | 90 public: |
| 91 LayoutTreeBuilderForText(Text& text, LayoutObject* layoutParent) | 91 LayoutTreeBuilderForText(Text& text, LayoutObject* layoutParent) |
| 92 : LayoutTreeBuilder(text, layoutParent) { } | 92 : LayoutTreeBuilder(text, layoutParent) { } |
| 93 | 93 |
| 94 void createLayoutObject(); | 94 void createLayoutObject(); |
| 95 }; | 95 }; |
| 96 | 96 |
| 97 } // namespace blink | 97 } // namespace blink |
| 98 | 98 |
| 99 #endif | 99 #endif |
| OLD | NEW |