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

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

Issue 931003002: Move and rename RenderPart to LayoutPart. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
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
« no previous file with comments | « Source/web/WebLocalFrameImpl.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 24 matching lines...) Expand all
35 #include "core/dom/Document.h" 35 #include "core/dom/Document.h"
36 #include "core/dom/Element.h" 36 #include "core/dom/Element.h"
37 #include "core/dom/Node.h" 37 #include "core/dom/Node.h"
38 #include "core/dom/NodeList.h" 38 #include "core/dom/NodeList.h"
39 #include "core/dom/TagCollection.h" 39 #include "core/dom/TagCollection.h"
40 #include "core/editing/markup.h" 40 #include "core/editing/markup.h"
41 #include "core/events/Event.h" 41 #include "core/events/Event.h"
42 #include "core/html/HTMLCollection.h" 42 #include "core/html/HTMLCollection.h"
43 #include "core/html/HTMLElement.h" 43 #include "core/html/HTMLElement.h"
44 #include "core/layout/LayoutObject.h" 44 #include "core/layout/LayoutObject.h"
45 #include "core/rendering/RenderPart.h" 45 #include "core/layout/LayoutPart.h"
46 #include "modules/accessibility/AXObject.h" 46 #include "modules/accessibility/AXObject.h"
47 #include "modules/accessibility/AXObjectCacheImpl.h" 47 #include "modules/accessibility/AXObjectCacheImpl.h"
48 #include "platform/Widget.h" 48 #include "platform/Widget.h"
49 #include "public/platform/WebString.h" 49 #include "public/platform/WebString.h"
50 #include "public/web/WebAXObject.h" 50 #include "public/web/WebAXObject.h"
51 #include "public/web/WebDOMEvent.h" 51 #include "public/web/WebDOMEvent.h"
52 #include "public/web/WebDocument.h" 52 #include "public/web/WebDocument.h"
53 #include "public/web/WebElement.h" 53 #include "public/web/WebElement.h"
54 #include "public/web/WebElementCollection.h" 54 #include "public/web/WebElementCollection.h"
55 #include "public/web/WebNodeList.h" 55 #include "public/web/WebNodeList.h"
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 return m_private->containsIncludingShadowDOM(other.m_private.get()); 225 return m_private->containsIncludingShadowDOM(other.m_private.get());
226 } 226 }
227 227
228 WebPluginContainer* WebNode::pluginContainer() const 228 WebPluginContainer* WebNode::pluginContainer() const
229 { 229 {
230 if (isNull()) 230 if (isNull())
231 return 0; 231 return 0;
232 const Node& coreNode = *constUnwrap<Node>(); 232 const Node& coreNode = *constUnwrap<Node>();
233 if (isHTMLObjectElement(coreNode) || isHTMLEmbedElement(coreNode)) { 233 if (isHTMLObjectElement(coreNode) || isHTMLEmbedElement(coreNode)) {
234 LayoutObject* object = coreNode.renderer(); 234 LayoutObject* object = coreNode.renderer();
235 if (object && object->isRenderPart()) { 235 if (object && object->isLayoutPart()) {
236 Widget* widget = toRenderPart(object)->widget(); 236 Widget* widget = toLayoutPart(object)->widget();
237 if (widget && widget->isPluginContainer()) 237 if (widget && widget->isPluginContainer())
238 return toWebPluginContainerImpl(widget); 238 return toWebPluginContainerImpl(widget);
239 } 239 }
240 } 240 }
241 return 0; 241 return 0;
242 } 242 }
243 243
244 WebElement WebNode::shadowHost() const 244 WebElement WebNode::shadowHost() const
245 { 245 {
246 if (isNull()) 246 if (isNull())
(...skipping 22 matching lines...) Expand all
269 m_private = node; 269 m_private = node;
270 return *this; 270 return *this;
271 } 271 }
272 272
273 WebNode::operator PassRefPtrWillBeRawPtr<Node>() const 273 WebNode::operator PassRefPtrWillBeRawPtr<Node>() const
274 { 274 {
275 return m_private.get(); 275 return m_private.get();
276 } 276 }
277 277
278 } // namespace blink 278 } // namespace blink
OLDNEW
« no previous file with comments | « Source/web/WebLocalFrameImpl.cpp ('k') | Source/web/WebPluginContainerImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698