Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(89)

Side by Side Diff: third_party/WebKit/Source/core/dom/LayoutTreeBuilder.h

Issue 1686483002: Oilpan: Remove most WillBe types from the code base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698