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

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

Issue 926193003: Move rendering/RenderBox to layout/LayoutBox. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 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/layout/FloatingObjects.cpp ('k') | Source/core/layout/Layer.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 253 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « Source/core/layout/FloatingObjects.cpp ('k') | Source/core/layout/Layer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698