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

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

Issue 241713002: Remove some dead code from rendering/ folder (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/rendering/HitTestResult.h ('k') | Source/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 344 matching lines...) Expand 10 before | Expand all | Expand 10 after
355 return false; 355 return false;
356 return m_innerNonSharedNode->document().markers().markersInRange( 356 return m_innerNonSharedNode->document().markers().markersInRange(
357 makeRange(pos, pos).get(), DocumentMarker::MisspellingMarkers()).size() > 0; 357 makeRange(pos, pos).get(), DocumentMarker::MisspellingMarkers()).size() > 0;
358 } 358 }
359 359
360 bool HitTestResult::isOverLink() const 360 bool HitTestResult::isOverLink() const
361 { 361 {
362 return m_innerURLElement && m_innerURLElement->isLink(); 362 return m_innerURLElement && m_innerURLElement->isLink();
363 } 363 }
364 364
365 String HitTestResult::titleDisplayString() const
366 {
367 if (!m_innerURLElement)
368 return String();
369
370 return m_innerURLElement->title();
371 }
372
373 String HitTestResult::textContent() const 365 String HitTestResult::textContent() const
374 { 366 {
375 if (!m_innerURLElement) 367 if (!m_innerURLElement)
376 return String(); 368 return String();
377 return m_innerURLElement->textContent(); 369 return m_innerURLElement->textContent();
378 } 370 }
379 371
380 // FIXME: This function needs a better name and may belong in a different class. It's not 372 // FIXME: This function needs a better name and may belong in a different class. It's not
381 // really isContentEditable(); it's more like needsEditingContextMenu(). In many ways, this 373 // really isContentEditable(); it's more like needsEditingContextMenu(). In many ways, this
382 // function would make more sense in the ContextMenu class, except that WebEleme ntDictionary 374 // function would make more sense in the ContextMenu class, except that WebEleme ntDictionary
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
493 { 485 {
494 for (Node* node = m_innerNode.get(); node; node = NodeRenderingTraversal::pa rent(node)) { 486 for (Node* node = m_innerNode.get(); node; node = NodeRenderingTraversal::pa rent(node)) {
495 if (node->isElementNode()) 487 if (node->isElementNode())
496 return toElement(node); 488 return toElement(node);
497 } 489 }
498 490
499 return 0; 491 return 0;
500 } 492 }
501 493
502 } // namespace WebCore 494 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/rendering/HitTestResult.h ('k') | Source/core/rendering/RenderBlock.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698