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

Unified Diff: Source/core/frame/LocalFrame.cpp

Issue 235553006: Move Document pointer from Frame to LocalFrame. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 8 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
Index: Source/core/frame/LocalFrame.cpp
diff --git a/Source/core/frame/LocalFrame.cpp b/Source/core/frame/LocalFrame.cpp
index d7bf03055669cd757e40c6c3a23d1d88d406bdf7..4a0216aba31452b0684abef9a19a9d235283d676 100644
--- a/Source/core/frame/LocalFrame.cpp
+++ b/Source/core/frame/LocalFrame.cpp
@@ -293,6 +293,16 @@ VisiblePosition LocalFrame::visiblePositionForPoint(const IntPoint& framePoint)
return visiblePos;
}
+RenderView* LocalFrame::contentRenderer() const
+{
+ return document() ? document()->renderView() : 0;
+}
+
+Document* LocalFrame::document() const
+{
+ return m_domWindow ? m_domWindow->document() : 0;
+}
+
Document* LocalFrame::documentAtPoint(const IntPoint& point)
{
if (!view())
@@ -603,4 +613,13 @@ double LocalFrame::devicePixelRatio() const
return ratio;
}
+void LocalFrame::disconnectOwnerElement()
+{
+ if (ownerElement()) {
+ if (Document* doc = document())
+ doc->topDocument().clearAXObjectCache();
dcheng 2014/04/14 19:25:57 Do you know what accessibility is planning on doin
kenrb 2014/04/14 20:09:52 I don't know much about accessibility, so I have j
+ }
+ Frame::disconnectOwnerElement();
+}
+
} // namespace WebCore

Powered by Google App Engine
This is Rietveld 408576698