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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 | 117 |
118 void HTMLStyleElement::notifyLoadedSheetAndAllCriticalSubresources( | 118 void HTMLStyleElement::notifyLoadedSheetAndAllCriticalSubresources( |
119 LoadedSheetErrorStatus errorStatus) { | 119 LoadedSheetErrorStatus errorStatus) { |
120 bool isLoadEvent = errorStatus == NoErrorLoadingSubresource; | 120 bool isLoadEvent = errorStatus == NoErrorLoadingSubresource; |
121 if (m_firedLoad && isLoadEvent) | 121 if (m_firedLoad && isLoadEvent) |
122 return; | 122 return; |
123 m_loadedSheet = isLoadEvent; | 123 m_loadedSheet = isLoadEvent; |
124 TaskRunnerHelper::get(TaskType::DOMManipulation, &document()) | 124 TaskRunnerHelper::get(TaskType::DOMManipulation, &document()) |
125 ->postTask( | 125 ->postTask( |
126 BLINK_FROM_HERE, | 126 BLINK_FROM_HERE, |
127 WTF::bind(&HTMLStyleElement::dispatchPendingEvent, | 127 WTF::bind( |
128 wrapPersistent(this), | 128 &HTMLStyleElement::dispatchPendingEvent, wrapPersistent(this), |
129 passed(IncrementLoadEventDelayCount::create(document())))); | 129 WTF::passed(IncrementLoadEventDelayCount::create(document())))); |
130 m_firedLoad = true; | 130 m_firedLoad = true; |
131 } | 131 } |
132 | 132 |
133 bool HTMLStyleElement::disabled() const { | 133 bool HTMLStyleElement::disabled() const { |
134 if (!m_sheet) | 134 if (!m_sheet) |
135 return false; | 135 return false; |
136 | 136 |
137 return m_sheet->disabled(); | 137 return m_sheet->disabled(); |
138 } | 138 } |
139 | 139 |
140 void HTMLStyleElement::setDisabled(bool setDisabled) { | 140 void HTMLStyleElement::setDisabled(bool setDisabled) { |
141 if (CSSStyleSheet* styleSheet = sheet()) | 141 if (CSSStyleSheet* styleSheet = sheet()) |
142 styleSheet->setDisabled(setDisabled); | 142 styleSheet->setDisabled(setDisabled); |
143 } | 143 } |
144 | 144 |
145 DEFINE_TRACE(HTMLStyleElement) { | 145 DEFINE_TRACE(HTMLStyleElement) { |
146 StyleElement::trace(visitor); | 146 StyleElement::trace(visitor); |
147 HTMLElement::trace(visitor); | 147 HTMLElement::trace(visitor); |
148 } | 148 } |
149 | 149 |
150 } // namespace blink | 150 } // namespace blink |
OLD | NEW |