| 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 16 matching lines...) Expand all Loading... |
| 27 #include "XLinkNames.h" | 27 #include "XLinkNames.h" |
| 28 #include "core/dom/DocumentMarkerController.h" | 28 #include "core/dom/DocumentMarkerController.h" |
| 29 #include "core/dom/NodeRenderingTraversal.h" | 29 #include "core/dom/NodeRenderingTraversal.h" |
| 30 #include "core/dom/shadow/ShadowRoot.h" | 30 #include "core/dom/shadow/ShadowRoot.h" |
| 31 #include "core/editing/FrameSelection.h" | 31 #include "core/editing/FrameSelection.h" |
| 32 #include "core/html/HTMLAnchorElement.h" | 32 #include "core/html/HTMLAnchorElement.h" |
| 33 #include "core/html/HTMLAreaElement.h" | 33 #include "core/html/HTMLAreaElement.h" |
| 34 #include "core/html/HTMLImageElement.h" | 34 #include "core/html/HTMLImageElement.h" |
| 35 #include "core/html/HTMLInputElement.h" | 35 #include "core/html/HTMLInputElement.h" |
| 36 #include "core/html/HTMLMediaElement.h" | 36 #include "core/html/HTMLMediaElement.h" |
| 37 #include "core/html/HTMLVideoElement.h" |
| 37 #include "core/html/parser/HTMLParserIdioms.h" | 38 #include "core/html/parser/HTMLParserIdioms.h" |
| 38 #include "core/loader/cache/CachedImage.h" | 39 #include "core/loader/cache/CachedImage.h" |
| 39 #include "core/page/Frame.h" | 40 #include "core/page/Frame.h" |
| 40 #include "core/page/FrameTree.h" | 41 #include "core/page/FrameTree.h" |
| 41 #include "core/platform/Scrollbar.h" | 42 #include "core/platform/Scrollbar.h" |
| 42 #include "core/rendering/HitTestLocation.h" | 43 #include "core/rendering/HitTestLocation.h" |
| 43 #include "core/rendering/RenderImage.h" | 44 #include "core/rendering/RenderImage.h" |
| 44 | 45 |
| 45 namespace WebCore { | 46 namespace WebCore { |
| 46 | 47 |
| (...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 307 } | 308 } |
| 308 | 309 |
| 309 HTMLMediaElement* HitTestResult::mediaElement() const | 310 HTMLMediaElement* HitTestResult::mediaElement() const |
| 310 { | 311 { |
| 311 if (!(m_innerNonSharedNode && m_innerNonSharedNode->document())) | 312 if (!(m_innerNonSharedNode && m_innerNonSharedNode->document())) |
| 312 return 0; | 313 return 0; |
| 313 | 314 |
| 314 if (!(m_innerNonSharedNode->renderer() && m_innerNonSharedNode->renderer()->
isMedia())) | 315 if (!(m_innerNonSharedNode->renderer() && m_innerNonSharedNode->renderer()->
isMedia())) |
| 315 return 0; | 316 return 0; |
| 316 | 317 |
| 317 if (m_innerNonSharedNode->hasTagName(HTMLNames::videoTag) || m_innerNonShare
dNode->hasTagName(HTMLNames::audioTag)) | 318 if (isHTMLVideoElement(m_innerNonSharedNode.get()) || m_innerNonSharedNode->
hasTagName(HTMLNames::audioTag)) |
| 318 return static_cast<HTMLMediaElement*>(m_innerNonSharedNode.get()); | 319 return static_cast<HTMLMediaElement*>(m_innerNonSharedNode.get()); |
| 319 return 0; | 320 return 0; |
| 320 } | 321 } |
| 321 | 322 |
| 322 KURL HitTestResult::absoluteLinkURL() const | 323 KURL HitTestResult::absoluteLinkURL() const |
| 323 { | 324 { |
| 324 if (!(m_innerURLElement && m_innerURLElement->document())) | 325 if (!(m_innerURLElement && m_innerURLElement->document())) |
| 325 return KURL(); | 326 return KURL(); |
| 326 | 327 |
| 327 AtomicString urlString; | 328 AtomicString urlString; |
| (...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 487 { | 488 { |
| 488 NodeRenderingTraversal::ParentDetails details; | 489 NodeRenderingTraversal::ParentDetails details; |
| 489 for (Node* node = m_innerNode.get(); node; node = NodeRenderingTraversal::pa
rent(node, &details)) | 490 for (Node* node = m_innerNode.get(); node; node = NodeRenderingTraversal::pa
rent(node, &details)) |
| 490 if (node->isElementNode()) | 491 if (node->isElementNode()) |
| 491 return toElement(node); | 492 return toElement(node); |
| 492 | 493 |
| 493 return 0; | 494 return 0; |
| 494 } | 495 } |
| 495 | 496 |
| 496 } // namespace WebCore | 497 } // namespace WebCore |
| OLD | NEW |