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

Side by Side Diff: Source/web/WebNode.cpp

Issue 977113003: Rename renderer() to layoutObject(). (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 9 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/web/WebFrameWidgetImpl.cpp ('k') | Source/web/WebPluginContainerImpl.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) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 { 229 {
230 return m_private->containsIncludingShadowDOM(other.m_private.get()); 230 return m_private->containsIncludingShadowDOM(other.m_private.get());
231 } 231 }
232 232
233 WebPluginContainer* WebNode::pluginContainer() const 233 WebPluginContainer* WebNode::pluginContainer() const
234 { 234 {
235 if (isNull()) 235 if (isNull())
236 return 0; 236 return 0;
237 const Node& coreNode = *constUnwrap<Node>(); 237 const Node& coreNode = *constUnwrap<Node>();
238 if (isHTMLObjectElement(coreNode) || isHTMLEmbedElement(coreNode)) { 238 if (isHTMLObjectElement(coreNode) || isHTMLEmbedElement(coreNode)) {
239 LayoutObject* object = coreNode.renderer(); 239 LayoutObject* object = coreNode.layoutObject();
240 if (object && object->isLayoutPart()) { 240 if (object && object->isLayoutPart()) {
241 Widget* widget = toLayoutPart(object)->widget(); 241 Widget* widget = toLayoutPart(object)->widget();
242 if (widget && widget->isPluginContainer()) 242 if (widget && widget->isPluginContainer())
243 return toWebPluginContainerImpl(widget); 243 return toWebPluginContainerImpl(widget);
244 } 244 }
245 } 245 }
246 return 0; 246 return 0;
247 } 247 }
248 248
249 WebElement WebNode::shadowHost() const 249 WebElement WebNode::shadowHost() const
(...skipping 24 matching lines...) Expand all
274 m_private = node; 274 m_private = node;
275 return *this; 275 return *this;
276 } 276 }
277 277
278 WebNode::operator PassRefPtrWillBeRawPtr<Node>() const 278 WebNode::operator PassRefPtrWillBeRawPtr<Node>() const
279 { 279 {
280 return m_private.get(); 280 return m_private.get();
281 } 281 }
282 282
283 } // namespace blink 283 } // namespace blink
OLDNEW
« no previous file with comments | « Source/web/WebFrameWidgetImpl.cpp ('k') | Source/web/WebPluginContainerImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698