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

Unified Diff: third_party/WebKit/Source/core/html/forms/InputType.cpp

Issue 2716153003: Removed FrameHost::chromeClient() (Closed)
Patch Set: Rebase 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/html/forms/InputType.cpp
diff --git a/third_party/WebKit/Source/core/html/forms/InputType.cpp b/third_party/WebKit/Source/core/html/forms/InputType.cpp
index c833c9ce6a536b3794d9ed40f5784eb8c9b3ab0e..6d451d647b46f72384a782814599f400986fbdb5 100644
--- a/third_party/WebKit/Source/core/html/forms/InputType.cpp
+++ b/third_party/WebKit/Source/core/html/forms/InputType.cpp
@@ -28,6 +28,7 @@
#include "core/html/forms/InputType.h"
+#include <memory>
#include "bindings/core/v8/ExceptionMessages.h"
slangley 2017/02/27 08:32:35 As above
#include "bindings/core/v8/ExceptionState.h"
#include "core/InputTypeNames.h"
@@ -37,7 +38,6 @@
#include "core/events/KeyboardEvent.h"
#include "core/events/ScopedEventQueue.h"
#include "core/fileapi/FileList.h"
-#include "core/frame/FrameHost.h"
#include "core/html/FormData.h"
#include "core/html/HTMLFormElement.h"
#include "core/html/HTMLInputElement.h"
@@ -68,12 +68,12 @@
#include "core/html/parser/HTMLParserIdioms.h"
#include "core/inspector/ConsoleMessage.h"
#include "core/layout/LayoutTheme.h"
+#include "core/page/Page.h"
#include "platform/RuntimeEnabledFeatures.h"
#include "platform/json/JSONValues.h"
#include "platform/text/PlatformLocale.h"
#include "platform/text/TextBreakIterator.h"
#include "wtf/PtrUtil.h"
-#include <memory>
namespace blink {
@@ -430,8 +430,8 @@ String InputType::serialize(const Decimal&) const {
}
ChromeClient* InputType::chromeClient() const {
- if (FrameHost* host = element().document().frameHost())
- return &host->chromeClient();
+ if (Page* page = element().document().page())
+ return &page->chromeClient();
return nullptr;
}

Powered by Google App Engine
This is Rietveld 408576698