diff options
Diffstat (limited to 'WebCore/dom/ProcessingInstruction.h')
-rw-r--r-- | WebCore/dom/ProcessingInstruction.h | 47 |
1 files changed, 28 insertions, 19 deletions
diff --git a/WebCore/dom/ProcessingInstruction.h b/WebCore/dom/ProcessingInstruction.h index d133019..61af9cf 100644 --- a/WebCore/dom/ProcessingInstruction.h +++ b/WebCore/dom/ProcessingInstruction.h @@ -1,8 +1,6 @@ /* - * This file is part of the DOM implementation for KDE. - * * Copyright (C) 2000 Peter Kelly (pmk@post.com) - * Copyright (C) 2006 Apple Computer, Inc. + * Copyright (C) 2006 Apple Inc. All rights reserved. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public @@ -35,15 +33,36 @@ class CSSStyleSheet; class ProcessingInstruction : public ContainerNode, private CachedResourceClient { public: - ProcessingInstruction(Document*); - ProcessingInstruction(Document*, const String& target, const String& data); + static PassRefPtr<ProcessingInstruction> create(Document*, const String& target, const String& data); virtual ~ProcessingInstruction(); - // DOM methods & attributes for Notation - String target() const { return m_target; } - String data() const { return m_data; } + const String& target() const { return m_target; } + const String& data() const { return m_data; } void setData(const String&, ExceptionCode&); + void setCreatedByParser(bool createdByParser) { m_createdByParser = createdByParser; } + + virtual void finishParsingChildren(); + + const String& localHref() const { return m_localHref; } + StyleSheet* sheet() const { return m_sheet.get(); } + void setCSSStyleSheet(PassRefPtr<CSSStyleSheet>); + +#if ENABLE(XSLT) + bool isXSL() const { return m_isXSL; } +#endif + +private: + ProcessingInstruction(Document*, const String& target, const String& data); + +#ifdef ANDROID_INSTRUMENT + // Overridden to resolve the ambiguous + void* operator new(size_t size); + void* operator new[](size_t size); + void operator delete(void* p, size_t size); + void operator delete[](void* p, size_t size); +#endif + virtual String nodeName() const; virtual NodeType nodeType() const; virtual String nodeValue() const; @@ -55,28 +74,18 @@ public: virtual void insertedIntoDocument(); virtual void removedFromDocument(); - void setCreatedByParser(bool createdByParser) { m_createdByParser = createdByParser; } - virtual void finishParsingChildren(); - // Other methods (not part of DOM) - String localHref() const { return m_localHref; } - StyleSheet* sheet() const { return m_sheet.get(); } void checkStyleSheet(); virtual void setCSSStyleSheet(const String& url, const String& charset, const CachedCSSStyleSheet*); #if ENABLE(XSLT) virtual void setXSLStyleSheet(const String& url, const String& sheet); #endif - void setCSSStyleSheet(PassRefPtr<CSSStyleSheet>); + bool isLoading() const; virtual bool sheetLoaded(); -#if ENABLE(XSLT) - bool isXSL() const { return m_isXSL; } -#endif - virtual void addSubresourceAttributeURLs(ListHashSet<KURL>&) const; -private: void parseStyleSheet(const String& sheet); String m_target; |