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

Side by Side Diff: sky/engine/core/rendering/HitTestResult.cpp

Issue 723253004: Remove tons of OILPAN. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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
« no previous file with comments | « sky/engine/core/rendering/HitTestResult.h ('k') | sky/engine/core/rendering/RenderBlock.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 m_innerURLElement = other.URLElement(); 93 m_innerURLElement = other.URLElement();
94 m_scrollbar = other.scrollbar(); 94 m_scrollbar = other.scrollbar();
95 m_isOverWidget = other.isOverWidget(); 95 m_isOverWidget = other.isOverWidget();
96 96
97 // Only copy the NodeSet in case of rect hit test. 97 // Only copy the NodeSet in case of rect hit test.
98 m_rectBasedTestResult = adoptPtr(other.m_rectBasedTestResult ? new NodeSet(* other.m_rectBasedTestResult) : 0); 98 m_rectBasedTestResult = adoptPtr(other.m_rectBasedTestResult ? new NodeSet(* other.m_rectBasedTestResult) : 0);
99 99
100 return *this; 100 return *this;
101 } 101 }
102 102
103 void HitTestResult::trace(Visitor* visitor)
104 {
105 visitor->trace(m_innerNode);
106 visitor->trace(m_innerPossiblyPseudoNode);
107 visitor->trace(m_innerNonSharedNode);
108 visitor->trace(m_innerURLElement);
109 #if ENABLE(OILPAN)
110 visitor->trace(m_rectBasedTestResult);
111 #endif
112 }
113
114 PositionWithAffinity HitTestResult::position() const 103 PositionWithAffinity HitTestResult::position() const
115 { 104 {
116 if (!m_innerPossiblyPseudoNode) 105 if (!m_innerPossiblyPseudoNode)
117 return PositionWithAffinity(); 106 return PositionWithAffinity();
118 RenderObject* renderer = this->renderer(); 107 RenderObject* renderer = this->renderer();
119 if (!renderer) 108 if (!renderer)
120 return PositionWithAffinity(); 109 return PositionWithAffinity();
121 return renderer->positionForPoint(localPoint()); 110 return renderer->positionForPoint(localPoint());
122 } 111 }
123 112
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after
405 { 394 {
406 for (Node* node = m_innerNode.get(); node; node = NodeRenderingTraversal::pa rent(node)) { 395 for (Node* node = m_innerNode.get(); node; node = NodeRenderingTraversal::pa rent(node)) {
407 if (node->isElementNode()) 396 if (node->isElementNode())
408 return toElement(node); 397 return toElement(node);
409 } 398 }
410 399
411 return 0; 400 return 0;
412 } 401 }
413 402
414 } // namespace blink 403 } // namespace blink
OLDNEW
« no previous file with comments | « sky/engine/core/rendering/HitTestResult.h ('k') | sky/engine/core/rendering/RenderBlock.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698