Changeset 150700 in webkit
- Timestamp:
- May 25, 2013 7:48:46 PM (11 years ago)
- Location:
- trunk/Source
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r150699 r150700 1 2013-05-25 Andreas Kling <akling@apple.com> 2 3 PluginDocument::pluginNode() should be pluginElement() instead. 4 <http://webkit.org/b/116774> 5 6 Reviewed by Anders Carlsson. 7 8 Make PluginDocument hand out a HTMLPlugInElement* instead of a Node*. 9 10 * dom/Document.cpp: 11 (WebCore::eventTargetNodeForDocument): 12 * html/PluginDocument.h: 13 * html/PluginDocument.cpp: 14 (WebCore::PluginDocumentParser::createDocumentStructure): 15 (WebCore::PluginDocument::pluginWidget): 16 (WebCore::PluginDocument::setPluginElement): 17 (WebCore::PluginDocument::detach): 18 1 19 2013-05-25 Andreas Kling <akling@apple.com> 2 20 -
trunk/Source/WebCore/WebCore.exp.in
r150699 r150700 330 330 __ZN7WebCore14LoaderStrategy21resourceLoadSchedulerEv 331 331 __ZN7WebCore14LoaderStrategy25loadResourceSynchronouslyEPNS_17NetworkingContextEmRKNS_15ResourceRequestENS_17StoredCredentialsENS_22ClientCredentialPolicyERNS_13ResourceErrorERNS_16ResourceResponseERN3WTF6VectorIcLm0ENSC_15CrashOnOverflowEEE 332 __ZN7WebCore14PluginDocument10pluginNodeEv333 332 __ZN7WebCore14PluginDocument12pluginWidgetEv 334 333 __ZN7WebCore14ResourceBuffer12createNSDataEv -
trunk/Source/WebCore/dom/Document.cpp
r150699 r150700 101 101 #include "HTMLNames.h" 102 102 #include "HTMLParserIdioms.h" 103 #include "HTMLPlugInElement.h" 103 104 #include "HTMLStyleElement.h" 104 105 #include "HTMLTitleElement.h" … … 5771 5772 if (!node && doc->isPluginDocument()) { 5772 5773 PluginDocument* pluginDocument = toPluginDocument(doc); 5773 node = pluginDocument->pluginNode();5774 node = pluginDocument->pluginElement(); 5774 5775 } 5775 5776 if (!node && doc->isHTMLDocument()) -
trunk/Source/WebCore/html/PluginDocument.cpp
r150227 r150700 1 1 /* 2 * Copyright (C) 2006, 2008 Apple Inc. All rights reserved.2 * Copyright (C) 2006, 2008, 2013 Apple Inc. All rights reserved. 3 3 * 4 4 * Redistribution and use in source and binary forms, with or without … … 35 35 #include "HTMLHtmlElement.h" 36 36 #include "HTMLNames.h" 37 #include "NodeList.h"38 37 #include "Page.h" 39 38 #include "RawDataDocumentParser.h" … … 97 96 m_embedElement->setAttribute(typeAttr, loader->writer()->mimeType()); 98 97 99 toPluginDocument(document())->setPlugin Node(m_embedElement);98 toPluginDocument(document())->setPluginElement(m_embedElement); 100 99 101 100 body->appendChild(embedElement, IGNORE_EXCEPTION); … … 151 150 Widget* PluginDocument::pluginWidget() 152 151 { 153 if (m_plugin Node && m_pluginNode->renderer()) {154 ASSERT(m_plugin Node->renderer()->isEmbeddedObject());155 return toRenderEmbeddedObject(m_plugin Node->renderer())->widget();152 if (m_pluginElement && m_pluginElement->renderer()) { 153 ASSERT(m_pluginElement->renderer()->isEmbeddedObject()); 154 return toRenderEmbeddedObject(m_pluginElement->renderer())->widget(); 156 155 } 157 156 return 0; 158 157 } 159 158 160 Node* PluginDocument::pluginNode()159 void PluginDocument::setPluginElement(PassRefPtr<HTMLPlugInElement> element) 161 160 { 162 return m_pluginNode.get();161 m_pluginElement = element; 163 162 } 164 163 165 164 void PluginDocument::detach() 166 165 { 167 // Release the plugin nodeso that we don't have a circular reference.168 m_plugin Node= 0;166 // Release the plugin Element so that we don't have a circular reference. 167 m_pluginElement = 0; 169 168 if (FrameLoader* loader = frame()->loader()) 170 169 loader->client()->redirectDataToPlugin(0); -
trunk/Source/WebCore/html/PluginDocument.h
r149960 r150700 1 1 /* 2 * Copyright (C) 2006, 2008, 2009 Apple Inc. All rights reserved.2 * Copyright (C) 2006, 2008, 2009, 2013 Apple Inc. All rights reserved. 3 3 * 4 4 * Redistribution and use in source and binary forms, with or without … … 30 30 namespace WebCore { 31 31 32 class Node;32 class HTMLPlugInElement; 33 33 class Widget; 34 34 … … 40 40 } 41 41 42 void setPlugin Node(Node* pluginNode) { m_pluginNode = pluginNode; }42 void setPluginElement(PassRefPtr<HTMLPlugInElement>); 43 43 44 44 Widget* pluginWidget(); 45 Node* pluginNode();45 HTMLPlugInElement* pluginElement() { return m_pluginElement.get(); } 46 46 47 47 virtual void detach() OVERRIDE; … … 59 59 60 60 bool m_shouldLoadPluginManually; 61 RefPtr< Node> m_pluginNode;61 RefPtr<HTMLPlugInElement> m_pluginElement; 62 62 }; 63 63 -
trunk/Source/WebKit2/ChangeLog
r150695 r150700 1 2013-05-25 Andreas Kling <akling@apple.com> 2 3 PluginDocument::pluginNode() should be pluginElement() instead. 4 <http://webkit.org/b/116774> 5 6 Reviewed by Anders Carlsson. 7 8 * WebProcess/WebPage/WebPage.cpp: 9 (WebKit::WebPage::focusedPluginViewForFrame): 10 1 11 2013-05-25 Simon Fraser <simon.fraser@apple.com> 2 12 -
trunk/Source/WebKit2/WebProcess/WebPage/WebPage.cpp
r150692 r150700 745 745 PluginDocument* pluginDocument = static_cast<PluginDocument*>(frame->document()); 746 746 747 if (pluginDocument->focusedNode() != pluginDocument->plugin Node())747 if (pluginDocument->focusedNode() != pluginDocument->pluginElement()) 748 748 return 0; 749 749
Note: See TracChangeset
for help on using the changeset viewer.