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 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
203 } | 203 } |
204 | 204 |
205 if (insertionPoint->inDocument()) { | 205 if (insertionPoint->inDocument()) { |
206 TreeScope* containingScope = containingShadowRoot(); | 206 TreeScope* containingScope = containingShadowRoot(); |
207 StyleElement::removedFromDocument(document(), this, scopingNode, contain ingScope ? *containingScope : insertionPoint->treeScope()); | 207 StyleElement::removedFromDocument(document(), this, scopingNode, contain ingScope ? *containingScope : insertionPoint->treeScope()); |
208 } | 208 } |
209 } | 209 } |
210 | 210 |
211 void HTMLStyleElement::didNotifySubtreeInsertionsToDocument() | 211 void HTMLStyleElement::didNotifySubtreeInsertionsToDocument() |
212 { | 212 { |
213 if (!inDocument()) | |
214 return; | |
abarth-chromium
2014/04/02 05:46:05
Do other didNotifySubtreeInsertionsToDocument assu
| |
213 StyleElement::processStyleSheet(document(), this); | 215 StyleElement::processStyleSheet(document(), this); |
214 } | 216 } |
215 | 217 |
216 void HTMLStyleElement::childrenChanged(bool changedByParser, Node* beforeChange, Node* afterChange, int childCountDelta) | 218 void HTMLStyleElement::childrenChanged(bool changedByParser, Node* beforeChange, Node* afterChange, int childCountDelta) |
217 { | 219 { |
218 HTMLElement::childrenChanged(changedByParser, beforeChange, afterChange, chi ldCountDelta); | 220 HTMLElement::childrenChanged(changedByParser, beforeChange, afterChange, chi ldCountDelta); |
219 StyleElement::childrenChanged(this); | 221 StyleElement::childrenChanged(this); |
220 } | 222 } |
221 | 223 |
222 const AtomicString& HTMLStyleElement::media() const | 224 const AtomicString& HTMLStyleElement::media() const |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
281 return m_sheet->disabled(); | 283 return m_sheet->disabled(); |
282 } | 284 } |
283 | 285 |
284 void HTMLStyleElement::setDisabled(bool setDisabled) | 286 void HTMLStyleElement::setDisabled(bool setDisabled) |
285 { | 287 { |
286 if (CSSStyleSheet* styleSheet = sheet()) | 288 if (CSSStyleSheet* styleSheet = sheet()) |
287 styleSheet->setDisabled(setDisabled); | 289 styleSheet->setDisabled(setDisabled); |
288 } | 290 } |
289 | 291 |
290 } | 292 } |
OLD | NEW |