| 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, 2010 Apple Inc. All rights reserved. | 5 * Copyright (C) 2003, 2010 Apple Inc. All rights reserved. |
| 6 * (C) 2007 Rob Buis (buis@kde.org) | 6 * (C) 2007 Rob Buis (buis@kde.org) |
| 7 * | 7 * |
| 8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
| 9 * modify it under the terms of the GNU Library General Public | 9 * modify it under the terms of the GNU Library General Public |
| 10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 } | 102 } |
| 103 | 103 |
| 104 const AtomicString& HTMLStyleElement::type() const { | 104 const AtomicString& HTMLStyleElement::type() const { |
| 105 return getAttribute(typeAttr); | 105 return getAttribute(typeAttr); |
| 106 } | 106 } |
| 107 | 107 |
| 108 void HTMLStyleElement::DispatchPendingEvent( | 108 void HTMLStyleElement::DispatchPendingEvent( |
| 109 std::unique_ptr<IncrementLoadEventDelayCount> count) { | 109 std::unique_ptr<IncrementLoadEventDelayCount> count) { |
| 110 if (loaded_sheet_) { | 110 if (loaded_sheet_) { |
| 111 if (GetDocument().HasListenerType( | 111 if (GetDocument().HasListenerType( |
| 112 Document::LOAD_LISTENER_AT_CAPTURE_PHASE_OR_AT_STYLE_ELEMENT)) | 112 Document::kLoadListenerAtCapturePhaseOrAtStyleElement)) |
| 113 DispatchEvent(Event::Create(EventTypeNames::load)); | 113 DispatchEvent(Event::Create(EventTypeNames::load)); |
| 114 } else { | 114 } else { |
| 115 DispatchEvent(Event::Create(EventTypeNames::error)); | 115 DispatchEvent(Event::Create(EventTypeNames::error)); |
| 116 } | 116 } |
| 117 // Checks Document's load event synchronously here for performance. | 117 // Checks Document's load event synchronously here for performance. |
| 118 // This is safe because dispatchPendingEvent() is called asynchronously. | 118 // This is safe because dispatchPendingEvent() is called asynchronously. |
| 119 count->ClearAndCheckLoadEvent(); | 119 count->ClearAndCheckLoadEvent(); |
| 120 } | 120 } |
| 121 | 121 |
| 122 void HTMLStyleElement::NotifyLoadedSheetAndAllCriticalSubresources( | 122 void HTMLStyleElement::NotifyLoadedSheetAndAllCriticalSubresources( |
| (...skipping 22 matching lines...) Expand all Loading... |
| 145 if (CSSStyleSheet* style_sheet = sheet()) | 145 if (CSSStyleSheet* style_sheet = sheet()) |
| 146 style_sheet->setDisabled(set_disabled); | 146 style_sheet->setDisabled(set_disabled); |
| 147 } | 147 } |
| 148 | 148 |
| 149 DEFINE_TRACE(HTMLStyleElement) { | 149 DEFINE_TRACE(HTMLStyleElement) { |
| 150 StyleElement::Trace(visitor); | 150 StyleElement::Trace(visitor); |
| 151 HTMLElement::Trace(visitor); | 151 HTMLElement::Trace(visitor); |
| 152 } | 152 } |
| 153 | 153 |
| 154 } // namespace blink | 154 } // namespace blink |
| OLD | NEW |