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

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

Issue 122943003: Make calls to AtomicString(const String&) explicit in rendering/ (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Take feedback into consideration Created 6 years, 11 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 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 190
191 Frame* HitTestResult::targetFrame() const 191 Frame* HitTestResult::targetFrame() const
192 { 192 {
193 if (!m_innerURLElement) 193 if (!m_innerURLElement)
194 return 0; 194 return 0;
195 195
196 Frame* frame = m_innerURLElement->document().frame(); 196 Frame* frame = m_innerURLElement->document().frame();
197 if (!frame) 197 if (!frame)
198 return 0; 198 return 0;
199 199
200 return frame->tree().find(m_innerURLElement->target()); 200 return frame->tree().find(AtomicString(m_innerURLElement->target()));
201 } 201 }
202 202
203 bool HitTestResult::isSelected() const 203 bool HitTestResult::isSelected() const
204 { 204 {
205 if (!m_innerNonSharedNode) 205 if (!m_innerNonSharedNode)
206 return false; 206 return false;
207 207
208 if (Frame* frame = m_innerNonSharedNode->document().frame()) 208 if (Frame* frame = m_innerNonSharedNode->document().frame())
209 return frame->selection().contains(m_hitTestLocation.point()); 209 return frame->selection().contains(m_hitTestLocation.point());
210 return false; 210 return false;
(...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after
504 { 504 {
505 for (Node* node = m_innerNode.get(); node; node = NodeRenderingTraversal::pa rent(node)) { 505 for (Node* node = m_innerNode.get(); node; node = NodeRenderingTraversal::pa rent(node)) {
506 if (node->isElementNode()) 506 if (node->isElementNode())
507 return toElement(node); 507 return toElement(node);
508 } 508 }
509 509
510 return 0; 510 return 0;
511 } 511 }
512 512
513 } // namespace WebCore 513 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/rendering/FastTextAutosizer.cpp ('k') | Source/core/rendering/RenderThemeChromiumFontProvider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698