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 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
267 { | 267 { |
268 if (!m_innerNonSharedNode) | 268 if (!m_innerNonSharedNode) |
269 return String(); | 269 return String(); |
270 | 270 |
271 if (m_innerNonSharedNode->hasTagName(imgTag)) { | 271 if (m_innerNonSharedNode->hasTagName(imgTag)) { |
272 HTMLImageElement* image = static_cast<HTMLImageElement*>(m_innerNonShare
dNode.get()); | 272 HTMLImageElement* image = static_cast<HTMLImageElement*>(m_innerNonShare
dNode.get()); |
273 return displayString(image->getAttribute(altAttr), m_innerNonSharedNode.
get()); | 273 return displayString(image->getAttribute(altAttr), m_innerNonSharedNode.
get()); |
274 } | 274 } |
275 | 275 |
276 if (m_innerNonSharedNode->hasTagName(inputTag)) { | 276 if (m_innerNonSharedNode->hasTagName(inputTag)) { |
277 HTMLInputElement* input = static_cast<HTMLInputElement*>(m_innerNonShare
dNode.get()); | 277 Handle<HTMLInputElement> input(static_cast<HTMLInputElement*>(m_innerNon
SharedNode.get())); |
278 return displayString(input->alt(), m_innerNonSharedNode.get()); | 278 return displayString(input->alt(), m_innerNonSharedNode.get()); |
279 } | 279 } |
280 | 280 |
281 return String(); | 281 return String(); |
282 } | 282 } |
283 | 283 |
284 Image* HitTestResult::image() const | 284 Image* HitTestResult::image() const |
285 { | 285 { |
286 if (!m_innerNonSharedNode) | 286 if (!m_innerNonSharedNode) |
287 return 0; | 287 return 0; |
(...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
625 { | 625 { |
626 for (Node* node = m_innerNode.get(); node; node = node->parentNode()) { | 626 for (Node* node = m_innerNode.get(); node; node = node->parentNode()) { |
627 if (node->isElementNode()) | 627 if (node->isElementNode()) |
628 return toElement(node); | 628 return toElement(node); |
629 } | 629 } |
630 | 630 |
631 return 0; | 631 return 0; |
632 } | 632 } |
633 | 633 |
634 } // namespace WebCore | 634 } // namespace WebCore |
OLD | NEW |