| OLD | NEW |
| 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 339 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 350 } | 350 } |
| 351 | 351 |
| 352 bool HitTestResult::isMisspelled() const | 352 bool HitTestResult::isMisspelled() const |
| 353 { | 353 { |
| 354 if (!targetNode()) | 354 if (!targetNode()) |
| 355 return false; | 355 return false; |
| 356 VisiblePosition pos(targetNode()->renderer()->positionForPoint(localPoint())
); | 356 VisiblePosition pos(targetNode()->renderer()->positionForPoint(localPoint())
); |
| 357 if (pos.isNull()) | 357 if (pos.isNull()) |
| 358 return false; | 358 return false; |
| 359 return m_innerNonSharedNode->document().markers()->markersInRange( | 359 return m_innerNonSharedNode->document().markers()->markersInRange( |
| 360 makeRange(pos, pos).get(), DocumentMarker::Spelling | DocumentMarker::Gr
ammar).size() > 0; | 360 makeRange(pos, pos).get(), DocumentMarker::MisspellingMarkers()).size()
> 0; |
| 361 } | 361 } |
| 362 | 362 |
| 363 String HitTestResult::titleDisplayString() const | 363 String HitTestResult::titleDisplayString() const |
| 364 { | 364 { |
| 365 if (!m_innerURLElement) | 365 if (!m_innerURLElement) |
| 366 return String(); | 366 return String(); |
| 367 | 367 |
| 368 return displayString(m_innerURLElement->title(), m_innerURLElement.get()); | 368 return displayString(m_innerURLElement->title(), m_innerURLElement.get()); |
| 369 } | 369 } |
| 370 | 370 |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 486 Element* HitTestResult::innerElement() const | 486 Element* HitTestResult::innerElement() const |
| 487 { | 487 { |
| 488 for (Node* node = m_innerNode.get(); node; node = NodeRenderingTraversal::pa
rent(node)) | 488 for (Node* node = m_innerNode.get(); node; node = NodeRenderingTraversal::pa
rent(node)) |
| 489 if (node->isElementNode()) | 489 if (node->isElementNode()) |
| 490 return toElement(node); | 490 return toElement(node); |
| 491 | 491 |
| 492 return 0; | 492 return 0; |
| 493 } | 493 } |
| 494 | 494 |
| 495 } // namespace WebCore | 495 } // namespace WebCore |
| OLD | NEW |