OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
4 * (C) 2001 Dirk Mueller (mueller@kde.org) | 4 * (C) 2001 Dirk Mueller (mueller@kde.org) |
5 * Copyright (C) 2003, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserv
ed. | 5 * Copyright (C) 2003, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserv
ed. |
6 * Copyright (C) 2009 Rob Buis (rwlbuis@gmail.com) | 6 * Copyright (C) 2009 Rob Buis (rwlbuis@gmail.com) |
7 * Copyright (C) 2011 Google Inc. All rights reserved. | 7 * Copyright (C) 2011 Google Inc. All rights reserved. |
8 * | 8 * |
9 * This library is free software; you can redistribute it and/or | 9 * This library is free software; you can redistribute it and/or |
10 * modify it under the terms of the GNU Library General Public | 10 * modify it under the terms of the GNU Library General Public |
(...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
345 | 345 |
346 void HTMLLinkElement::dispatchPendingLoadEvents() | 346 void HTMLLinkElement::dispatchPendingLoadEvents() |
347 { | 347 { |
348 linkLoadEventSender().dispatchPendingEvents(); | 348 linkLoadEventSender().dispatchPendingEvents(); |
349 } | 349 } |
350 | 350 |
351 void HTMLLinkElement::dispatchPendingEvent(LinkEventSender* eventSender) | 351 void HTMLLinkElement::dispatchPendingEvent(LinkEventSender* eventSender) |
352 { | 352 { |
353 ASSERT_UNUSED(eventSender, eventSender == &linkLoadEventSender()); | 353 ASSERT_UNUSED(eventSender, eventSender == &linkLoadEventSender()); |
354 ASSERT(m_link); | 354 ASSERT(m_link); |
355 dispatchEventImmediately(); | |
356 } | |
357 | |
358 void HTMLLinkElement::dispatchEventImmediately() | |
359 { | |
360 if (m_link->hasLoaded()) | 355 if (m_link->hasLoaded()) |
361 linkLoaded(); | 356 linkLoaded(); |
362 else | 357 else |
363 linkLoadingErrored(); | 358 linkLoadingErrored(); |
364 } | 359 } |
365 | 360 |
366 void HTMLLinkElement::scheduleEvent() | 361 void HTMLLinkElement::scheduleEvent() |
367 { | 362 { |
368 linkLoadEventSender().dispatchEventSoon(this); | 363 linkLoadEventSender().dispatchEventSoon(this); |
369 } | 364 } |
(...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
697 void LinkStyle::ownerRemoved() | 692 void LinkStyle::ownerRemoved() |
698 { | 693 { |
699 if (m_sheet) | 694 if (m_sheet) |
700 clearSheet(); | 695 clearSheet(); |
701 | 696 |
702 if (styleSheetIsLoading()) | 697 if (styleSheetIsLoading()) |
703 removePendingSheet(RemovePendingSheetNotifyLater); | 698 removePendingSheet(RemovePendingSheetNotifyLater); |
704 } | 699 } |
705 | 700 |
706 } // namespace WebCore | 701 } // namespace WebCore |
OLD | NEW |