OLD | NEW |
---|---|
1 /* | 1 /* |
2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Neither the name of Google Inc. nor the names of its | 10 * * Neither the name of Google Inc. nor the names of its |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
54 return m_insertionPoint == other.m_insertionPoint; | 54 return m_insertionPoint == other.m_insertionPoint; |
55 } | 55 } |
56 | 56 |
57 private: | 57 private: |
58 Member<const InsertionPoint> m_insertionPoint; | 58 Member<const InsertionPoint> m_insertionPoint; |
59 }; | 59 }; |
60 | 60 |
61 CORE_EXPORT ContainerNode* parent(const Node&, ParentDetails* = 0); | 61 CORE_EXPORT ContainerNode* parent(const Node&, ParentDetails* = 0); |
62 CORE_EXPORT Node* firstChild(const Node&); | 62 CORE_EXPORT Node* firstChild(const Node&); |
63 CORE_EXPORT Node* nextSibling(const Node&); | 63 CORE_EXPORT Node* nextSibling(const Node&); |
64 LayoutObject* parentLayoutObject(const Node&); | |
rune
2016/11/01 07:12:23
This is just one of the changes you need in Layout
emilio
2016/11/01 15:46:31
I agree. I've pushed a new version of the changese
| |
64 Node* previousSibling(const Node&); | 65 Node* previousSibling(const Node&); |
65 Node* previous(const Node&, const Node* stayWithin); | 66 Node* previous(const Node&, const Node* stayWithin); |
66 Node* next(const Node&, const Node* stayWithin); | 67 Node* next(const Node&, const Node* stayWithin); |
67 Node* nextSkippingChildren(const Node&, const Node* stayWithin); | 68 Node* nextSkippingChildren(const Node&, const Node* stayWithin); |
68 LayoutObject* nextSiblingLayoutObject(const Node&, | 69 LayoutObject* nextSiblingLayoutObject(const Node&, |
69 int32_t limit = kTraverseAllSiblings); | 70 int32_t limit = kTraverseAllSiblings); |
70 LayoutObject* previousSiblingLayoutObject(const Node&, | 71 LayoutObject* previousSiblingLayoutObject(const Node&, |
71 int32_t limit = kTraverseAllSiblings); | 72 int32_t limit = kTraverseAllSiblings); |
72 LayoutObject* nextInTopLayer(const Element&); | 73 LayoutObject* nextInTopLayer(const Element&); |
73 | 74 |
74 inline Element* parentElement(const Node& node) { | 75 inline Element* parentElement(const Node& node) { |
75 ContainerNode* found = parent(node); | 76 ContainerNode* found = parent(node); |
76 return found && found->isElementNode() ? toElement(found) : 0; | 77 return found && found->isElementNode() ? toElement(found) : 0; |
77 } | 78 } |
78 | 79 |
79 } // namespace LayoutTreeBuilderTraversal | 80 } // namespace LayoutTreeBuilderTraversal |
80 | 81 |
81 } // namespace blink | 82 } // namespace blink |
82 | 83 |
83 #endif | 84 #endif |
OLD | NEW |