| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2000 Peter Kelly (pmk@post.com) | 2 * Copyright (C) 2000 Peter Kelly (pmk@post.com) |
| 3 * Copyright (C) 2006 Apple Inc. All rights reserved. | 3 * Copyright (C) 2006 Apple Inc. All rights reserved. |
| 4 * | 4 * |
| 5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
| 6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
| 7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
| 8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
| 9 * | 9 * |
| 10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 | 44 |
| 45 virtual void finishParsingChildren(); | 45 virtual void finishParsingChildren(); |
| 46 | 46 |
| 47 const String& localHref() const { return m_localHref; } | 47 const String& localHref() const { return m_localHref; } |
| 48 StyleSheet* sheet() const { return m_sheet.get(); } | 48 StyleSheet* sheet() const { return m_sheet.get(); } |
| 49 void setCSSStyleSheet(PassRefPtr<CSSStyleSheet>); | 49 void setCSSStyleSheet(PassRefPtr<CSSStyleSheet>); |
| 50 | 50 |
| 51 bool isCSS() const { return m_isCSS; } | 51 bool isCSS() const { return m_isCSS; } |
| 52 bool isXSL() const { return m_isXSL; } | 52 bool isXSL() const { return m_isXSL; } |
| 53 | 53 |
| 54 bool isLoading() const; |
| 55 |
| 54 private: | 56 private: |
| 55 ProcessingInstruction(Document*, const String& target, const String& data); | 57 ProcessingInstruction(Document*, const String& target, const String& data); |
| 56 | 58 |
| 57 virtual String nodeName() const; | 59 virtual String nodeName() const; |
| 58 virtual NodeType nodeType() const; | 60 virtual NodeType nodeType() const; |
| 59 virtual String nodeValue() const; | 61 virtual String nodeValue() const; |
| 60 virtual void setNodeValue(const String&); | 62 virtual void setNodeValue(const String&); |
| 61 virtual PassRefPtr<Node> cloneNode(bool deep = true); | 63 virtual PassRefPtr<Node> cloneNode(bool deep = true); |
| 62 virtual bool offsetInCharacters() const; | 64 virtual bool offsetInCharacters() const; |
| 63 virtual int maxCharacterOffset() const; | 65 virtual int maxCharacterOffset() const; |
| 64 | 66 |
| 65 virtual InsertionNotificationRequest insertedInto(ContainerNode*) OVERRIDE; | 67 virtual InsertionNotificationRequest insertedInto(ContainerNode*) OVERRIDE; |
| 66 virtual void removedFrom(ContainerNode*) OVERRIDE; | 68 virtual void removedFrom(ContainerNode*) OVERRIDE; |
| 67 | 69 |
| 68 void checkStyleSheet(); | 70 void checkStyleSheet(); |
| 69 virtual void setCSSStyleSheet(const String& href, const KURL& baseURL, const
String& charset, const CachedCSSStyleSheet*); | 71 virtual void setCSSStyleSheet(const String& href, const KURL& baseURL, const
String& charset, const CachedCSSStyleSheet*); |
| 70 virtual void setXSLStyleSheet(const String& href, const KURL& baseURL, const
String& sheet); | 72 virtual void setXSLStyleSheet(const String& href, const KURL& baseURL, const
String& sheet); |
| 71 | 73 |
| 72 bool isLoading() const; | |
| 73 virtual bool sheetLoaded(); | 74 virtual bool sheetLoaded(); |
| 74 | 75 |
| 75 virtual void addSubresourceAttributeURLs(ListHashSet<KURL>&) const; | 76 virtual void addSubresourceAttributeURLs(ListHashSet<KURL>&) const; |
| 76 | 77 |
| 77 void parseStyleSheet(const String& sheet); | 78 void parseStyleSheet(const String& sheet); |
| 78 | 79 |
| 79 String m_target; | 80 String m_target; |
| 80 String m_data; | 81 String m_data; |
| 81 String m_localHref; | 82 String m_localHref; |
| 82 String m_title; | 83 String m_title; |
| 83 String m_media; | 84 String m_media; |
| 84 ResourcePtr<Resource> m_cachedSheet; | 85 ResourcePtr<Resource> m_cachedSheet; |
| 85 RefPtr<StyleSheet> m_sheet; | 86 RefPtr<StyleSheet> m_sheet; |
| 86 bool m_loading; | 87 bool m_loading; |
| 87 bool m_alternate; | 88 bool m_alternate; |
| 88 bool m_createdByParser; | 89 bool m_createdByParser; |
| 89 bool m_isCSS; | 90 bool m_isCSS; |
| 90 bool m_isXSL; | 91 bool m_isXSL; |
| 91 }; | 92 }; |
| 92 | 93 |
| 93 } //namespace | 94 } //namespace |
| 94 | 95 |
| 95 #endif | 96 #endif |
| OLD | NEW |