| 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 | 42 |
| 43 void setCreatedByParser(bool createdByParser) { m_createdByParser = createdB
yParser; } | 43 void setCreatedByParser(bool createdByParser) { m_createdByParser = createdB
yParser; } |
| 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 #if ENABLE(XSLT) | |
| 53 bool isXSL() const { return m_isXSL; } | 52 bool isXSL() const { return m_isXSL; } |
| 54 #endif | |
| 55 | 53 |
| 56 private: | 54 private: |
| 57 ProcessingInstruction(Document*, const String& target, const String& data); | 55 ProcessingInstruction(Document*, const String& target, const String& data); |
| 58 | 56 |
| 59 virtual String nodeName() const; | 57 virtual String nodeName() const; |
| 60 virtual NodeType nodeType() const; | 58 virtual NodeType nodeType() const; |
| 61 virtual String nodeValue() const; | 59 virtual String nodeValue() const; |
| 62 virtual void setNodeValue(const String&, ExceptionCode&); | 60 virtual void setNodeValue(const String&, ExceptionCode&); |
| 63 virtual PassRefPtr<Node> cloneNode(bool deep); | 61 virtual PassRefPtr<Node> cloneNode(bool deep); |
| 64 virtual bool offsetInCharacters() const; | 62 virtual bool offsetInCharacters() const; |
| 65 virtual int maxCharacterOffset() const; | 63 virtual int maxCharacterOffset() const; |
| 66 | 64 |
| 67 virtual InsertionNotificationRequest insertedInto(ContainerNode*) OVERRIDE; | 65 virtual InsertionNotificationRequest insertedInto(ContainerNode*) OVERRIDE; |
| 68 virtual void removedFrom(ContainerNode*) OVERRIDE; | 66 virtual void removedFrom(ContainerNode*) OVERRIDE; |
| 69 | 67 |
| 70 void checkStyleSheet(); | 68 void checkStyleSheet(); |
| 71 virtual void setCSSStyleSheet(const String& href, const KURL& baseURL, const
String& charset, const CachedCSSStyleSheet*); | 69 virtual void setCSSStyleSheet(const String& href, const KURL& baseURL, const
String& charset, const CachedCSSStyleSheet*); |
| 72 #if ENABLE(XSLT) | |
| 73 virtual void setXSLStyleSheet(const String& href, const KURL& baseURL, const
String& sheet); | 70 virtual void setXSLStyleSheet(const String& href, const KURL& baseURL, const
String& sheet); |
| 74 #endif | |
| 75 | 71 |
| 76 bool isLoading() const; | 72 bool isLoading() const; |
| 77 virtual bool sheetLoaded(); | 73 virtual bool sheetLoaded(); |
| 78 | 74 |
| 79 virtual void addSubresourceAttributeURLs(ListHashSet<KURL>&) const; | 75 virtual void addSubresourceAttributeURLs(ListHashSet<KURL>&) const; |
| 80 | 76 |
| 81 void parseStyleSheet(const String& sheet); | 77 void parseStyleSheet(const String& sheet); |
| 82 | 78 |
| 83 String m_target; | 79 String m_target; |
| 84 String m_data; | 80 String m_data; |
| 85 String m_localHref; | 81 String m_localHref; |
| 86 String m_title; | 82 String m_title; |
| 87 String m_media; | 83 String m_media; |
| 88 CachedResourceHandle<CachedResource> m_cachedSheet; | 84 CachedResourceHandle<CachedResource> m_cachedSheet; |
| 89 RefPtr<StyleSheet> m_sheet; | 85 RefPtr<StyleSheet> m_sheet; |
| 90 bool m_loading; | 86 bool m_loading; |
| 91 bool m_alternate; | 87 bool m_alternate; |
| 92 bool m_createdByParser; | 88 bool m_createdByParser; |
| 93 bool m_isCSS; | 89 bool m_isCSS; |
| 94 #if ENABLE(XSLT) | |
| 95 bool m_isXSL; | 90 bool m_isXSL; |
| 96 #endif | |
| 97 }; | 91 }; |
| 98 | 92 |
| 99 } //namespace | 93 } //namespace |
| 100 | 94 |
| 101 #endif | 95 #endif |
| OLD | NEW |