| 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 | 51 |
| 52 void HTMLStyleElement::parseAttribute(const QualifiedName& name, | 52 void HTMLStyleElement::parseAttribute(const QualifiedName& name, |
| 53 const AtomicString& oldValue, | 53 const AtomicString& oldValue, |
| 54 const AtomicString& value) { | 54 const AtomicString& value) { |
| 55 if (name == titleAttr && m_sheet && isInDocumentTree()) { | 55 if (name == titleAttr && m_sheet && isInDocumentTree()) { |
| 56 m_sheet->setTitle(value); | 56 m_sheet->setTitle(value); |
| 57 } else if (name == mediaAttr && isConnected() && document().isActive() && | 57 } else if (name == mediaAttr && isConnected() && document().isActive() && |
| 58 m_sheet) { | 58 m_sheet) { |
| 59 m_sheet->setMediaQueries(MediaQuerySet::create(value)); | 59 m_sheet->setMediaQueries(MediaQuerySet::create(value)); |
| 60 document().styleEngine().mediaQueriesChangedInScope(treeScope()); | 60 document().styleEngine().mediaQueriesChangedInScope(treeScope()); |
| 61 // TODO(rune@opera.com): resolverChanged() can be removed once stylesheet | |
| 62 // updates are async. https://crbug.com/567021 | |
| 63 document().styleEngine().resolverChanged(FullStyleUpdate); | |
| 64 } else { | 61 } else { |
| 65 HTMLElement::parseAttribute(name, oldValue, value); | 62 HTMLElement::parseAttribute(name, oldValue, value); |
| 66 } | 63 } |
| 67 } | 64 } |
| 68 | 65 |
| 69 void HTMLStyleElement::finishParsingChildren() { | 66 void HTMLStyleElement::finishParsingChildren() { |
| 70 StyleElement::ProcessingResult result = | 67 StyleElement::ProcessingResult result = |
| 71 StyleElement::finishParsingChildren(*this); | 68 StyleElement::finishParsingChildren(*this); |
| 72 HTMLElement::finishParsingChildren(); | 69 HTMLElement::finishParsingChildren(); |
| 73 if (result == StyleElement::ProcessingFatalError) | 70 if (result == StyleElement::ProcessingFatalError) |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 if (CSSStyleSheet* styleSheet = sheet()) | 138 if (CSSStyleSheet* styleSheet = sheet()) |
| 142 styleSheet->setDisabled(setDisabled); | 139 styleSheet->setDisabled(setDisabled); |
| 143 } | 140 } |
| 144 | 141 |
| 145 DEFINE_TRACE(HTMLStyleElement) { | 142 DEFINE_TRACE(HTMLStyleElement) { |
| 146 StyleElement::trace(visitor); | 143 StyleElement::trace(visitor); |
| 147 HTMLElement::trace(visitor); | 144 HTMLElement::trace(visitor); |
| 148 } | 145 } |
| 149 | 146 |
| 150 } // namespace blink | 147 } // namespace blink |
| OLD | NEW |