| 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, 2008, 2010 Apple Inc. All rights reserved. | 4 * Copyright (C) 2003, 2008, 2010 Apple Inc. All rights reserved. |
| 5 * Copyright (C) 2011 Google Inc. All rights reserved. | 5 * Copyright (C) 2011 Google Inc. All rights reserved. |
| 6 * | 6 * |
| 7 * This library is free software; you can redistribute it and/or | 7 * This library is free software; you can redistribute it and/or |
| 8 * modify it under the terms of the GNU Library General Public | 8 * modify it under the terms of the GNU Library General Public |
| 9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
| 10 * version 2 of the License, or (at your option) any later version. | 10 * version 2 of the License, or (at your option) any later version. |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 public: | 59 public: |
| 60 static PassOwnPtrWillBeRawPtr<LinkStyle> create(HTMLLinkElement* owner); | 60 static PassOwnPtrWillBeRawPtr<LinkStyle> create(HTMLLinkElement* owner); |
| 61 | 61 |
| 62 explicit LinkStyle(HTMLLinkElement* owner); | 62 explicit LinkStyle(HTMLLinkElement* owner); |
| 63 virtual ~LinkStyle(); | 63 virtual ~LinkStyle(); |
| 64 | 64 |
| 65 virtual Type type() const override { return Style; } | 65 virtual Type type() const override { return Style; } |
| 66 virtual void process() override; | 66 virtual void process() override; |
| 67 virtual void ownerRemoved() override; | 67 virtual void ownerRemoved() override; |
| 68 virtual bool hasLoaded() const override { return m_loadedSheet; } | 68 virtual bool hasLoaded() const override { return m_loadedSheet; } |
| 69 virtual void trace(Visitor*) override; | 69 DECLARE_VIRTUAL_TRACE(); |
| 70 | 70 |
| 71 void startLoadingDynamicSheet(); | 71 void startLoadingDynamicSheet(); |
| 72 void notifyLoadedSheetAndAllCriticalSubresources(bool errorOccurred); | 72 void notifyLoadedSheetAndAllCriticalSubresources(bool errorOccurred); |
| 73 bool sheetLoaded(); | 73 bool sheetLoaded(); |
| 74 | 74 |
| 75 void setDisabledState(bool); | 75 void setDisabledState(bool); |
| 76 void setSheetTitle(const String&); | 76 void setSheetTitle(const String&); |
| 77 | 77 |
| 78 bool styleSheetIsLoading() const; | 78 bool styleSheetIsLoading() const; |
| 79 bool hasSheet() const { return m_sheet; } | 79 bool hasSheet() const { return m_sheet; } |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 157 // For LinkStyle | 157 // For LinkStyle |
| 158 bool loadLink(const String& type, const KURL&); | 158 bool loadLink(const String& type, const KURL&); |
| 159 bool isAlternate() const { return linkStyle()->isUnset() && m_relAttribute.i
sAlternate(); } | 159 bool isAlternate() const { return linkStyle()->isUnset() && m_relAttribute.i
sAlternate(); } |
| 160 bool shouldProcessStyle() { return linkResourceToProcess() && linkStyle(); } | 160 bool shouldProcessStyle() { return linkResourceToProcess() && linkStyle(); } |
| 161 bool isCreatedByParser() const { return m_createdByParser; } | 161 bool isCreatedByParser() const { return m_createdByParser; } |
| 162 | 162 |
| 163 // Parse the icon size attribute into |iconSizes|, make this method public | 163 // Parse the icon size attribute into |iconSizes|, make this method public |
| 164 // visible for testing purpose. | 164 // visible for testing purpose. |
| 165 static void parseSizesAttribute(const AtomicString& value, Vector<IntSize>&
iconSizes); | 165 static void parseSizesAttribute(const AtomicString& value, Vector<IntSize>&
iconSizes); |
| 166 | 166 |
| 167 virtual void trace(Visitor*) override; | 167 DECLARE_VIRTUAL_TRACE(); |
| 168 | 168 |
| 169 private: | 169 private: |
| 170 virtual void attributeWillChange(const QualifiedName&, const AtomicString& o
ldValue, const AtomicString& newValue) override; | 170 virtual void attributeWillChange(const QualifiedName&, const AtomicString& o
ldValue, const AtomicString& newValue) override; |
| 171 virtual void parseAttribute(const QualifiedName&, const AtomicString&) overr
ide; | 171 virtual void parseAttribute(const QualifiedName&, const AtomicString&) overr
ide; |
| 172 | 172 |
| 173 LinkStyle* linkStyle() const; | 173 LinkStyle* linkStyle() const; |
| 174 LinkImport* linkImport() const; | 174 LinkImport* linkImport() const; |
| 175 LinkResource* linkResourceToProcess(); | 175 LinkResource* linkResourceToProcess(); |
| 176 | 176 |
| 177 void process(); | 177 void process(); |
| (...skipping 30 matching lines...) Expand all Loading... |
| 208 Vector<IntSize> m_iconSizes; | 208 Vector<IntSize> m_iconSizes; |
| 209 LinkRelAttribute m_relAttribute; | 209 LinkRelAttribute m_relAttribute; |
| 210 | 210 |
| 211 bool m_createdByParser; | 211 bool m_createdByParser; |
| 212 bool m_isInShadowTree; | 212 bool m_isInShadowTree; |
| 213 }; | 213 }; |
| 214 | 214 |
| 215 } // namespace blink | 215 } // namespace blink |
| 216 | 216 |
| 217 #endif // HTMLLinkElement_h | 217 #endif // HTMLLinkElement_h |
| OLD | NEW |