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

Unified Diff: Source/core/rendering/RenderMarquee.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/rendering/RenderListMarker.cpp ('k') | Source/core/rendering/RenderMenuList.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/RenderMarquee.cpp
diff --git a/Source/core/rendering/RenderMarquee.cpp b/Source/core/rendering/RenderMarquee.cpp
index ecfff0d0ae59dc498887824fc35d06c6de7c3d45..9540f0b3a6c1464c36a76e110dba431ce2dbe549 100644
--- a/Source/core/rendering/RenderMarquee.cpp
+++ b/Source/core/rendering/RenderMarquee.cpp
@@ -72,7 +72,7 @@ RenderMarquee::RenderMarquee(Element* element)
, m_stopped(false)
, m_direction(MAUTO)
{
- UseCounter::count(document(), UseCounter::HTMLMarqueeElement);
+ UseCounter::count(&document(), UseCounter::HTMLMarqueeElement);
}
RenderMarquee::~RenderMarquee()
@@ -167,7 +167,7 @@ void RenderMarquee::start()
// We may end up propagating a scroll event. It is important that we suspend events until
// the end of the function since they could delete the layer, including the marquee.
- FrameView* frameView = document()->view();
+ FrameView* frameView = document().view();
if (frameView)
frameView->pauseScheduledEvents();
« no previous file with comments | « Source/core/rendering/RenderListMarker.cpp ('k') | Source/core/rendering/RenderMenuList.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698