| 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 * Copyright (C) 2003, 2010 Apple Inc. ALl rights reserved. | 4 * Copyright (C) 2003, 2010 Apple Inc. ALl rights reserved. |
| 5 * | 5 * |
| 6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
| 7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
| 8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
| 9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
| 10 * | 10 * |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 static void dispatchPendingLoadEvents(); | 67 static void dispatchPendingLoadEvents(); |
| 68 | 68 |
| 69 private: | 69 private: |
| 70 HTMLStyleElement(Document&, bool createdByParser); | 70 HTMLStyleElement(Document&, bool createdByParser); |
| 71 | 71 |
| 72 // overload from HTMLElement | 72 // overload from HTMLElement |
| 73 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; | 73 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; |
| 74 virtual InsertionNotificationRequest insertedInto(ContainerNode*) OVERRIDE; | 74 virtual InsertionNotificationRequest insertedInto(ContainerNode*) OVERRIDE; |
| 75 virtual void didNotifySubtreeInsertionsToDocument() OVERRIDE; | 75 virtual void didNotifySubtreeInsertionsToDocument() OVERRIDE; |
| 76 virtual void removedFrom(ContainerNode*) OVERRIDE; | 76 virtual void removedFrom(ContainerNode*) OVERRIDE; |
| 77 virtual void childrenChanged(bool changedByParser = false, Node* beforeChang
e = 0, Node* afterChange = 0, int childCountDelta = 0); | 77 virtual void childrenChanged(bool changedByParser = false, Node* beforeChang
e = 0, Node* afterChange = 0, int childCountDelta = 0) OVERRIDE; |
| 78 | 78 |
| 79 virtual void finishParsingChildren(); | 79 virtual void finishParsingChildren() OVERRIDE; |
| 80 | 80 |
| 81 virtual bool isLoading() const { return StyleElement::isLoading(); } | 81 virtual bool sheetLoaded() OVERRIDE { return StyleElement::sheetLoaded(docum
ent()); } |
| 82 virtual bool sheetLoaded() { return StyleElement::sheetLoaded(document()); } | 82 virtual void notifyLoadedSheetAndAllCriticalSubresources(bool errorOccurred)
OVERRIDE; |
| 83 virtual void notifyLoadedSheetAndAllCriticalSubresources(bool errorOccurred)
; | 83 virtual void startLoadingDynamicSheet() OVERRIDE { StyleElement::startLoadin
gDynamicSheet(document()); } |
| 84 virtual void startLoadingDynamicSheet() { StyleElement::startLoadingDynamicS
heet(document()); } | |
| 85 | 84 |
| 86 virtual const AtomicString& media() const; | 85 virtual const AtomicString& media() const OVERRIDE; |
| 87 virtual const AtomicString& type() const; | 86 virtual const AtomicString& type() const OVERRIDE; |
| 88 | 87 |
| 89 void scopedAttributeChanged(bool); | 88 void scopedAttributeChanged(bool); |
| 90 void registerWithScopingNode(bool); | 89 void registerWithScopingNode(bool); |
| 91 void unregisterWithScopingNode(ContainerNode*); | 90 void unregisterWithScopingNode(ContainerNode*); |
| 92 | 91 |
| 93 bool m_firedLoad; | 92 bool m_firedLoad; |
| 94 bool m_loadedSheet; | 93 bool m_loadedSheet; |
| 95 | 94 |
| 96 enum ScopedStyleRegistrationState { | 95 enum ScopedStyleRegistrationState { |
| 97 NotRegistered, | 96 NotRegistered, |
| 98 RegisteredAsScoped, | 97 RegisteredAsScoped, |
| 99 RegisteredInShadowRoot | 98 RegisteredInShadowRoot |
| 100 }; | 99 }; |
| 101 ScopedStyleRegistrationState m_scopedStyleRegistrationState; | 100 ScopedStyleRegistrationState m_scopedStyleRegistrationState; |
| 102 }; | 101 }; |
| 103 | 102 |
| 104 DEFINE_NODE_TYPE_CASTS(HTMLStyleElement, hasTagName(HTMLNames::styleTag)); | 103 DEFINE_NODE_TYPE_CASTS(HTMLStyleElement, hasTagName(HTMLNames::styleTag)); |
| 105 | 104 |
| 106 } //namespace | 105 } //namespace |
| 107 | 106 |
| 108 #endif | 107 #endif |
| OLD | NEW |