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

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

Issue 19510005: [oilpan] Completely move HTMLFormControlElement's hierarchy to the managed heap Base URL: svn://svn.chromium.org/blink/branches/oilpan
Patch Set: Created 7 years, 5 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/page/DragController.cpp ('k') | Source/core/rendering/RenderButton.cpp » ('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 256 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « Source/core/page/DragController.cpp ('k') | Source/core/rendering/RenderButton.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698