Index: third_party/WebKit/Source/core/frame/LocalDOMWindow.h |
diff --git a/third_party/WebKit/Source/core/frame/LocalDOMWindow.h b/third_party/WebKit/Source/core/frame/LocalDOMWindow.h |
index d358a0fbba06dc41d86d0d631a03fcfe4f9907e2..b72f3424f3caf0da6817200ee9c2413f9fff6956 100644 |
--- a/third_party/WebKit/Source/core/frame/LocalDOMWindow.h |
+++ b/third_party/WebKit/Source/core/frame/LocalDOMWindow.h |
@@ -316,6 +316,9 @@ class CORE_EXPORT LocalDOMWindow final : public DOMWindow, |
FloatSize GetViewportSize(IncludeScrollbarsInRect) const; |
+ void SetHasLoadEventFired() { has_load_event_fired_ = true; } |
+ bool HasLoadEventFired() { return has_load_event_fired_; } |
+ |
protected: |
// EventTarget overrides. |
void AddedEventListener(const AtomicString& event_type, |
@@ -346,6 +349,7 @@ class CORE_EXPORT LocalDOMWindow final : public DOMWindow, |
TaskRunnerTimer<LocalDOMWindow> unused_preloads_timer_; |
bool should_print_when_finished_loading_; |
+ bool has_load_event_fired_ = false; |
mutable Member<Screen> screen_; |
mutable Member<History> history_; |