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

Side by Side Diff: Source/core/rendering/HitTestResult.cpp

Issue 603193005: Move the Widget hierarchy to the Oilpan heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add ~Scrollbar assert Created 6 years, 2 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) 2006, 2008, 2011 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2008, 2011 Apple Inc. All rights reserved.
3 * Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies) 3 * Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies)
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 112
113 return *this; 113 return *this;
114 } 114 }
115 115
116 void HitTestResult::trace(Visitor* visitor) 116 void HitTestResult::trace(Visitor* visitor)
117 { 117 {
118 visitor->trace(m_innerNode); 118 visitor->trace(m_innerNode);
119 visitor->trace(m_innerPossiblyPseudoNode); 119 visitor->trace(m_innerPossiblyPseudoNode);
120 visitor->trace(m_innerNonSharedNode); 120 visitor->trace(m_innerNonSharedNode);
121 visitor->trace(m_innerURLElement); 121 visitor->trace(m_innerURLElement);
122 visitor->trace(m_scrollbar);
122 #if ENABLE(OILPAN) 123 #if ENABLE(OILPAN)
123 visitor->trace(m_rectBasedTestResult); 124 visitor->trace(m_rectBasedTestResult);
124 #endif 125 #endif
125 } 126 }
126 127
127 PositionWithAffinity HitTestResult::position() const 128 PositionWithAffinity HitTestResult::position() const
128 { 129 {
129 if (!m_innerPossiblyPseudoNode) 130 if (!m_innerPossiblyPseudoNode)
130 return PositionWithAffinity(); 131 return PositionWithAffinity();
131 RenderObject* renderer = this->renderer(); 132 RenderObject* renderer = this->renderer();
(...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after
473 { 474 {
474 for (Node* node = m_innerNode.get(); node; node = NodeRenderingTraversal::pa rent(node)) { 475 for (Node* node = m_innerNode.get(); node; node = NodeRenderingTraversal::pa rent(node)) {
475 if (node->isElementNode()) 476 if (node->isElementNode())
476 return toElement(node); 477 return toElement(node);
477 } 478 }
478 479
479 return 0; 480 return 0;
480 } 481 }
481 482
482 } // namespace blink 483 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698