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

Unified Diff: Source/core/html/HTMLPlugInElement.cpp

Issue 23819007: Have Node::document() return a reference instead of a pointer (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase on master Created 7 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/html/HTMLParamElement.cpp ('k') | Source/core/html/HTMLPlugInImageElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLPlugInElement.cpp
diff --git a/Source/core/html/HTMLPlugInElement.cpp b/Source/core/html/HTMLPlugInElement.cpp
index 8d23225bd2cbd82de07321d01d0839aab566fec0..c76ee71fe6ea5393ed1163e781b5bfa65d229e28 100644
--- a/Source/core/html/HTMLPlugInElement.cpp
+++ b/Source/core/html/HTMLPlugInElement.cpp
@@ -93,7 +93,7 @@ void HTMLPlugInElement::detach(const AttachContext& context)
m_instance.clear();
if (m_isCapturingMouseEvents) {
- if (Frame* frame = document()->frame())
+ if (Frame* frame = document().frame())
frame->eventHandler()->setCapturingMouseEventsNode(0);
m_isCapturingMouseEvents = false;
}
@@ -113,7 +113,7 @@ void HTMLPlugInElement::resetInstance()
PassScriptInstance HTMLPlugInElement::getInstance()
{
- Frame* frame = document()->frame();
+ Frame* frame = document().frame();
if (!frame)
return 0;
@@ -211,13 +211,13 @@ void HTMLPlugInElement::defaultEventHandler(Event* event)
RenderWidget* HTMLPlugInElement::renderWidgetForJSBindings() const
{
- document()->updateLayoutIgnorePendingStylesheets();
+ document().updateLayoutIgnorePendingStylesheets();
return existingRenderWidget();
}
bool HTMLPlugInElement::isKeyboardFocusable() const
{
- if (!document()->page())
+ if (!document().page())
return false;
const PluginView* plugin = pluginWidget() && pluginWidget()->isPluginView() ? static_cast<const PluginView*>(pluginWidget()) : 0;
@@ -244,9 +244,9 @@ bool HTMLPlugInElement::rendererIsFocusable() const
NPObject* HTMLPlugInElement::getNPObject()
{
- ASSERT(document()->frame());
+ ASSERT(document().frame());
if (!m_NPObject)
- m_NPObject = document()->frame()->script()->createScriptObjectForPluginElement(this);
+ m_NPObject = document().frame()->script()->createScriptObjectForPluginElement(this);
return m_NPObject;
}
« no previous file with comments | « Source/core/html/HTMLParamElement.cpp ('k') | Source/core/html/HTMLPlugInImageElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698