Index: Source/core/dom/NamedFlow.cpp |
diff --git a/Source/core/dom/NamedFlow.cpp b/Source/core/dom/NamedFlow.cpp |
index 6fb918c9593dace4f6f96358ad0795cfe6f4befe..575fd13eef6c830d0a16f6f273e82bbbf0eda803 100644 |
--- a/Source/core/dom/NamedFlow.cpp |
+++ b/Source/core/dom/NamedFlow.cpp |
@@ -212,7 +212,7 @@ void NamedFlow::dispatchRegionLayoutUpdateEvent() |
if (flowState() == FlowStateNull) |
return; |
- RefPtr<Event> event = UIEvent::create(EventTypeNames::webkitregionlayoutupdate, false, false, m_flowManager->document()->defaultView(), 0); |
+ RefPtr<Event> event = UIEvent::create(EventTypeNames::webkitregionlayoutupdate, false, false, m_flowManager->document()->domWindow(), 0); |
dispatchEvent(event); |
} |
@@ -225,7 +225,7 @@ void NamedFlow::dispatchRegionOversetChangeEvent() |
if (flowState() == FlowStateNull) |
return; |
- RefPtr<Event> event = UIEvent::create(EventTypeNames::webkitregionoversetchange, false, false, m_flowManager->document()->defaultView(), 0); |
+ RefPtr<Event> event = UIEvent::create(EventTypeNames::webkitregionoversetchange, false, false, m_flowManager->document()->domWindow(), 0); |
dispatchEvent(event); |
} |