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

Unified Diff: Source/core/page/FrameView.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/page/Frame.cpp ('k') | Source/core/page/Page.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/page/FrameView.cpp
diff --git a/Source/core/page/FrameView.cpp b/Source/core/page/FrameView.cpp
index 0e8a2f6ee31d90c35bb9a84ec21a0d7a150262a5..12878f0d64e4bea40a8ce983784d398a3e652e10 100644
--- a/Source/core/page/FrameView.cpp
+++ b/Source/core/page/FrameView.cpp
@@ -1077,7 +1077,7 @@ void FrameView::layout(bool allowSubtree)
m_layoutCount++;
- if (AXObjectCache* cache = rootForThisLayout->document()->existingAXObjectCache())
+ if (AXObjectCache* cache = rootForThisLayout->document().existingAXObjectCache())
cache->postNotification(rootForThisLayout, AXObjectCache::AXLayoutComplete, true);
updateAnnotatedRegions();
@@ -2425,7 +2425,7 @@ IntRect FrameView::windowClipRect(bool clipToContents) const
// Take our owner element and get its clip rect.
HTMLFrameOwnerElement* ownerElement = m_frame->ownerElement();
- FrameView* parentView = ownerElement->document()->view();
+ FrameView* parentView = ownerElement->document().view();
if (parentView)
clipRect.intersect(parentView->windowClipRectForFrameOwner(ownerElement, true));
return clipRect;
« no previous file with comments | « Source/core/page/Frame.cpp ('k') | Source/core/page/Page.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698