OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011 Adobe Systems Incorporated. All rights reserved. | 2 * Copyright (C) 2011 Adobe Systems Incorporated. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * | 7 * |
8 * 1. Redistributions of source code must retain the above | 8 * 1. Redistributions of source code must retain the above |
9 * copyright notice, this list of conditions and the following | 9 * copyright notice, this list of conditions and the following |
10 * disclaimer. | 10 * disclaimer. |
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
205 } | 205 } |
206 | 206 |
207 void NamedFlow::dispatchRegionLayoutUpdateEvent() | 207 void NamedFlow::dispatchRegionLayoutUpdateEvent() |
208 { | 208 { |
209 ASSERT(!NoEventDispatchAssertion::isEventDispatchForbidden()); | 209 ASSERT(!NoEventDispatchAssertion::isEventDispatchForbidden()); |
210 | 210 |
211 // If the flow is in the "NULL" state the event should not be dispatched any
more. | 211 // If the flow is in the "NULL" state the event should not be dispatched any
more. |
212 if (flowState() == FlowStateNull) | 212 if (flowState() == FlowStateNull) |
213 return; | 213 return; |
214 | 214 |
215 RefPtr<Event> event = UIEvent::create(EventTypeNames::webkitregionlayoutupda
te, false, false, m_flowManager->document()->defaultView(), 0); | 215 RefPtr<Event> event = UIEvent::create(EventTypeNames::webkitregionlayoutupda
te, false, false, m_flowManager->document()->domWindow(), 0); |
216 | 216 |
217 dispatchEvent(event); | 217 dispatchEvent(event); |
218 } | 218 } |
219 | 219 |
220 void NamedFlow::dispatchRegionOversetChangeEvent() | 220 void NamedFlow::dispatchRegionOversetChangeEvent() |
221 { | 221 { |
222 ASSERT(!NoEventDispatchAssertion::isEventDispatchForbidden()); | 222 ASSERT(!NoEventDispatchAssertion::isEventDispatchForbidden()); |
223 | 223 |
224 // If the flow is in the "NULL" state the event should not be dispatched any
more. | 224 // If the flow is in the "NULL" state the event should not be dispatched any
more. |
225 if (flowState() == FlowStateNull) | 225 if (flowState() == FlowStateNull) |
226 return; | 226 return; |
227 | 227 |
228 RefPtr<Event> event = UIEvent::create(EventTypeNames::webkitregionoversetcha
nge, false, false, m_flowManager->document()->defaultView(), 0); | 228 RefPtr<Event> event = UIEvent::create(EventTypeNames::webkitregionoversetcha
nge, false, false, m_flowManager->document()->domWindow(), 0); |
229 | 229 |
230 dispatchEvent(event); | 230 dispatchEvent(event); |
231 } | 231 } |
232 | 232 |
233 const AtomicString& NamedFlow::interfaceName() const | 233 const AtomicString& NamedFlow::interfaceName() const |
234 { | 234 { |
235 return EventTargetNames::NamedFlow; | 235 return EventTargetNames::NamedFlow; |
236 } | 236 } |
237 | 237 |
238 ScriptExecutionContext* NamedFlow::scriptExecutionContext() const | 238 ScriptExecutionContext* NamedFlow::scriptExecutionContext() const |
239 { | 239 { |
240 return m_flowManager->document(); | 240 return m_flowManager->document(); |
241 } | 241 } |
242 | 242 |
243 Node* NamedFlow::ownerNode() const | 243 Node* NamedFlow::ownerNode() const |
244 { | 244 { |
245 return m_flowManager->document(); | 245 return m_flowManager->document(); |
246 } | 246 } |
247 | 247 |
248 } // namespace WebCore | 248 } // namespace WebCore |
249 | 249 |
OLD | NEW |