| 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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 | 60 |
| 61 RawPtr<HTMLStyleElement> HTMLStyleElement::create(Document& document, bool creat
edByParser) | 61 RawPtr<HTMLStyleElement> HTMLStyleElement::create(Document& document, bool creat
edByParser) |
| 62 { | 62 { |
| 63 return new HTMLStyleElement(document, createdByParser); | 63 return new HTMLStyleElement(document, createdByParser); |
| 64 } | 64 } |
| 65 | 65 |
| 66 void HTMLStyleElement::parseAttribute(const QualifiedName& name, const AtomicStr
ing& oldValue, const AtomicString& value) | 66 void HTMLStyleElement::parseAttribute(const QualifiedName& name, const AtomicStr
ing& oldValue, const AtomicString& value) |
| 67 { | 67 { |
| 68 if (name == titleAttr && m_sheet) { | 68 if (name == titleAttr && m_sheet) { |
| 69 m_sheet->setTitle(value); | 69 m_sheet->setTitle(value); |
| 70 } else if (name == mediaAttr && inDocument() && document().isActive() && m_s
heet) { | 70 } else if (name == mediaAttr && inShadowIncludingDocument() && document().is
Active() && m_sheet) { |
| 71 m_sheet->setMediaQueries(MediaQuerySet::create(value)); | 71 m_sheet->setMediaQueries(MediaQuerySet::create(value)); |
| 72 document().styleEngine().setNeedsActiveStyleUpdate(m_sheet.get(), FullSt
yleUpdate); | 72 document().styleEngine().setNeedsActiveStyleUpdate(m_sheet.get(), FullSt
yleUpdate); |
| 73 } else { | 73 } else { |
| 74 HTMLElement::parseAttribute(name, oldValue, value); | 74 HTMLElement::parseAttribute(name, oldValue, value); |
| 75 } | 75 } |
| 76 } | 76 } |
| 77 | 77 |
| 78 void HTMLStyleElement::finishParsingChildren() | 78 void HTMLStyleElement::finishParsingChildren() |
| 79 { | 79 { |
| 80 StyleElement::ProcessingResult result = StyleElement::finishParsingChildren(
this); | 80 StyleElement::ProcessingResult result = StyleElement::finishParsingChildren(
this); |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 154 styleSheet->setDisabled(setDisabled); | 154 styleSheet->setDisabled(setDisabled); |
| 155 } | 155 } |
| 156 | 156 |
| 157 DEFINE_TRACE(HTMLStyleElement) | 157 DEFINE_TRACE(HTMLStyleElement) |
| 158 { | 158 { |
| 159 StyleElement::trace(visitor); | 159 StyleElement::trace(visitor); |
| 160 HTMLElement::trace(visitor); | 160 HTMLElement::trace(visitor); |
| 161 } | 161 } |
| 162 | 162 |
| 163 } // namespace blink | 163 } // namespace blink |
| OLD | NEW |