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 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
264 return image->cachedImage()->imageForRenderer(image); | 264 return image->cachedImage()->imageForRenderer(image); |
265 } | 265 } |
266 | 266 |
267 return 0; | 267 return 0; |
268 } | 268 } |
269 | 269 |
270 IntRect HitTestResult::imageRect() const | 270 IntRect HitTestResult::imageRect() const |
271 { | 271 { |
272 if (!image()) | 272 if (!image()) |
273 return IntRect(); | 273 return IntRect(); |
274 return m_innerNonSharedNode->renderBox()->absoluteContentQuad().enclosingBou
ndingBox(); | 274 return m_innerNonSharedNode->layoutBox()->absoluteContentQuad().enclosingBou
ndingBox(); |
275 } | 275 } |
276 | 276 |
277 KURL HitTestResult::absoluteImageURL() const | 277 KURL HitTestResult::absoluteImageURL() const |
278 { | 278 { |
279 if (!m_innerNonSharedNode) | 279 if (!m_innerNonSharedNode) |
280 return KURL(); | 280 return KURL(); |
281 | 281 |
282 LayoutObject* renderer = m_innerNonSharedNode->renderer(); | 282 LayoutObject* renderer = m_innerNonSharedNode->renderer(); |
283 if (!(renderer && renderer->isImage())) | 283 if (!(renderer && renderer->isImage())) |
284 return KURL(); | 284 return KURL(); |
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
475 { | 475 { |
476 for (Node* node = m_innerNode.get(); node; node = NodeRenderingTraversal::pa
rent(*node)) { | 476 for (Node* node = m_innerNode.get(); node; node = NodeRenderingTraversal::pa
rent(*node)) { |
477 if (node->isElementNode()) | 477 if (node->isElementNode()) |
478 return toElement(node); | 478 return toElement(node); |
479 } | 479 } |
480 | 480 |
481 return 0; | 481 return 0; |
482 } | 482 } |
483 | 483 |
484 } // namespace blink | 484 } // namespace blink |
OLD | NEW |