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

Unified Diff: third_party/WebKit/Source/core/dom/Document.cpp

Issue 2716153003: Removed FrameHost::chromeClient() (Closed)
Patch Set: Small feedback Created 3 years, 10 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: third_party/WebKit/Source/core/dom/Document.cpp
diff --git a/third_party/WebKit/Source/core/dom/Document.cpp b/third_party/WebKit/Source/core/dom/Document.cpp
index 39cc41ea019a37bff37e21b26bed993b5b627160..8a5abde9861cb4d633a3fdebc477d7d4559b1a0e 100644
--- a/third_party/WebKit/Source/core/dom/Document.cpp
+++ b/third_party/WebKit/Source/core/dom/Document.cpp
@@ -2525,9 +2525,8 @@ void Document::shutdown() {
if (m_focusedElement.get()) {
Element* oldFocusedElement = m_focusedElement;
m_focusedElement = nullptr;
- if (frameHost())
- frameHost()->chromeClient().focusedNodeChanged(oldFocusedElement,
- nullptr);
+ if (page())
+ page()->chromeClient().focusedNodeChanged(oldFocusedElement, nullptr);
}
m_sequentialFocusNavigationStartingPoint = nullptr;
@@ -3574,7 +3573,7 @@ ViewportDescription Document::viewportDescription() const {
void Document::updateViewportDescription() {
if (frame() && frame()->isMainFrame()) {
- frameHost()->chromeClient().dispatchViewportPropertiesDidChange(
+ page()->chromeClient().dispatchViewportPropertiesDidChange(
viewportDescription());
}
}
@@ -4139,9 +4138,10 @@ bool Document::setFocusedElement(Element* prpNewFocusedElement,
newFocusedElement);
}
- if (!focusChangeBlocked && frameHost())
- frameHost()->chromeClient().focusedNodeChanged(oldFocusedElement,
- m_focusedElement.get());
+ if (!focusChangeBlocked && page()) {
+ page()->chromeClient().focusedNodeChanged(oldFocusedElement,
+ m_focusedElement.get());
+ }
SetFocusedElementDone:
updateStyleAndLayoutTree();
« no previous file with comments | « third_party/WebKit/Source/core/css/MediaValues.cpp ('k') | third_party/WebKit/Source/core/editing/commands/EditorCommand.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698