and XPath ifdefs. KHTML_NO_XBL is flipped and is now XBL_SUPPORT.
KHTML_XSLT is now XSLT_SUPPORT.
* WebCore.xcodeproj/project.pbxproj:
* bindings/js/JSXSLTProcessor.cpp:
* bindings/js/JSXSLTProcessor.h:
* bindings/js/kjs_window.cpp:
(KJS::Window::getValueProperty):
* config.h:
* css/CSSComputedStyleDeclaration.cpp:
(WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
* css/cssparser.cpp:
(WebCore::CSSParser::parseValue):
* css/cssstyleselector.cpp:
(WebCore::CSSStyleSelector::applyProperty):
* dom/Document.cpp:
(WebCore::Document::Document):
(WebCore::Document::~Document):
(WebCore::Document::recalcStyleSelector):
* dom/Document.h:
(WebCore::Document::bindingManager):
* dom/Node.cpp:
(WebCore::Node::createRendererIfNeeded):
* dom/ProcessingInstruction.cpp:
(WebCore::ProcessingInstruction::ProcessingInstruction):
(WebCore::ProcessingInstruction::checkStyleSheet):
(WebCore::ProcessingInstruction::setStyleSheet):
* dom/ProcessingInstruction.h:
* dom/XMLTokenizer.cpp:
(WebCore::XMLTokenizer::processingInstruction):
(WebCore::XMLTokenizer::insertErrorMessageBlock):
* dom/XMLTokenizer.h:
* loader/Cache.cpp:
(WebCore::Cache::getStatistics):
* loader/Cache.h:
* loader/CachedResource.h:
(WebCore::CachedResource::):
* loader/CachedResourceClient.h:
* loader/CachedXBLDocument.cpp:
* loader/CachedXBLDocument.h:
* loader/CachedXSLStyleSheet.cpp:
* loader/CachedXSLStyleSheet.h:
* loader/DocLoader.cpp:
* loader/DocLoader.h:
* rendering/RenderStyle.cpp:
(WebCore::StyleCSS3NonInheritedData::StyleCSS3NonInheritedData):
(WebCore::StyleCSS3NonInheritedData::~StyleCSS3NonInheritedData):
(WebCore::StyleCSS3NonInheritedData::operator==):
* rendering/RenderStyle.h:
* xml/XSLImportRule.cpp:
* xml/XSLImportRule.h:
* xml/XSLStyleSheet.cpp:
* xml/XSLStyleSheet.h:
* xml/XSLTProcessor.cpp:
* xml/XSLTProcessor.h:
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@16348
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2006-09-13 David Hyatt <hyatt@apple.com>
+
+ Clean up the XBL and XSLT ifdefs to be consistent with the SVG
+ and XPath ifdefs. KHTML_NO_XBL is flipped and is now XBL_SUPPORT.
+ KHTML_XSLT is now XSLT_SUPPORT.
+
+ * WebCore.xcodeproj/project.pbxproj:
+ * bindings/js/JSXSLTProcessor.cpp:
+ * bindings/js/JSXSLTProcessor.h:
+ * bindings/js/kjs_window.cpp:
+ (KJS::Window::getValueProperty):
+ * config.h:
+ * css/CSSComputedStyleDeclaration.cpp:
+ (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
+ * css/cssparser.cpp:
+ (WebCore::CSSParser::parseValue):
+ * css/cssstyleselector.cpp:
+ (WebCore::CSSStyleSelector::applyProperty):
+ * dom/Document.cpp:
+ (WebCore::Document::Document):
+ (WebCore::Document::~Document):
+ (WebCore::Document::recalcStyleSelector):
+ * dom/Document.h:
+ (WebCore::Document::bindingManager):
+ * dom/Node.cpp:
+ (WebCore::Node::createRendererIfNeeded):
+ * dom/ProcessingInstruction.cpp:
+ (WebCore::ProcessingInstruction::ProcessingInstruction):
+ (WebCore::ProcessingInstruction::checkStyleSheet):
+ (WebCore::ProcessingInstruction::setStyleSheet):
+ * dom/ProcessingInstruction.h:
+ * dom/XMLTokenizer.cpp:
+ (WebCore::XMLTokenizer::processingInstruction):
+ (WebCore::XMLTokenizer::insertErrorMessageBlock):
+ * dom/XMLTokenizer.h:
+ * loader/Cache.cpp:
+ (WebCore::Cache::getStatistics):
+ * loader/Cache.h:
+ * loader/CachedResource.h:
+ (WebCore::CachedResource::):
+ * loader/CachedResourceClient.h:
+ * loader/CachedXBLDocument.cpp:
+ * loader/CachedXBLDocument.h:
+ * loader/CachedXSLStyleSheet.cpp:
+ * loader/CachedXSLStyleSheet.h:
+ * loader/DocLoader.cpp:
+ * loader/DocLoader.h:
+ * rendering/RenderStyle.cpp:
+ (WebCore::StyleCSS3NonInheritedData::StyleCSS3NonInheritedData):
+ (WebCore::StyleCSS3NonInheritedData::~StyleCSS3NonInheritedData):
+ (WebCore::StyleCSS3NonInheritedData::operator==):
+ * rendering/RenderStyle.h:
+ * xml/XSLImportRule.cpp:
+ * xml/XSLImportRule.h:
+ * xml/XSLStyleSheet.cpp:
+ * xml/XSLStyleSheet.h:
+ * xml/XSLTProcessor.cpp:
+ * xml/XSLTProcessor.h:
+
2006-09-13 Nikolas Zimmermann <zimmermann@kde.org>
Reviewed by eseidel. Landed by eseidel.
#include "config.h"
-#ifdef KHTML_XSLT
+#ifdef XSLT_SUPPORT
#include "JSXSLTProcessor.h"
#include "XSLTProcessor.h"
}
-#endif // KHTML_XSLT
+#endif // XSLT_SUPPORT
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifdef KHTML_XSLT
+#ifdef XSLT_SUPPORT
#ifndef XSLTProcessor_H
#define XSLTProcessor_H
#endif // XSLTProcessor_H
-#endif // KHTML_XSLT
+#endif // XSLT_SUPPORT
#include "kjs_traversal.h"
#include <wtf/MathExtras.h>
-#if KHTML_XSLT
+#if XSLT_SUPPORT
#include "JSXSLTProcessor.h"
#endif
return new JSHTMLOptionElementConstructor(exec, m_frame->document());
case XMLHttpRequest:
return new JSXMLHttpRequestConstructorImp(exec, m_frame->document());
-#ifdef KHTML_XSLT
+#ifdef XSLT_SUPPORT
case XSLTProcessor_:
return new XSLTProcessorConstructorImp(exec);
#else
#include <wtf/Platform.h>
-#define KHTML_NO_XBL 1
-#define KHTML_XSLT 1
-
+#define XSLT_SUPPORT 1
#if __APPLE__
#define HAVE_FUNC_USLEEP 1
return valueForLength(style->backgroundXPosition());
case CSS_PROP_BACKGROUND_POSITION_Y:
return valueForLength(style->backgroundYPosition());
-#ifndef KHTML_NO_XBL
+#ifdef XBL_SUPPORT
case CSS_PROP__WEBKIT_BINDING:
// FIXME: unimplemented
break;
break;
case CSS_PROP__WEBKIT_BINDING:
-#ifndef KHTML_NO_XBL
+#ifdef XBL_SUPPORT
if (id == CSS_VAL_NONE)
valid_primitive = true;
else {
style->setAppearance(appearance);
}
case CSS_PROP__WEBKIT_BINDING: {
-#ifndef KHTML_NO_XBL
+#ifdef XBL_SUPPORT
if (isInitial || (primitiveValue && primitiveValue->getIdent() == CSS_VAL_NONE)) {
style->deleteBindingURIs();
return;
#include "XPathResult.h"
#endif
-#ifdef KHTML_XSLT
+#ifdef XSLT_SUPPORT
#include "XSLTProcessor.h"
#endif
-#ifndef KHTML_NO_XBL
-#include "xbl_binding_manager.h"
-using XBL::XBLBindingManager;
+#ifdef XBL_SUPPORT
+#include "XBLBindingManager.h"
#endif
#ifdef SVG_SUPPORT
, m_title("")
, m_titleSetExplicitly(false)
, m_imageLoadEventTimer(this, &Document::imageLoadEventTimerFired)
-#if !KHTML_NO_XBL
+#ifdef XBL_SUPPORT
, m_bindingManager(new XBLBindingManager(this))
#endif
-#ifdef KHTML_XSLT
+#ifdef XSLT_SUPPORT
, m_transformSource(0)
#endif
, m_savedRenderer(0)
m_renderArena = 0;
}
-#ifdef KHTML_XSLT
+#ifdef XSLT_SUPPORT
xmlFreeDoc((xmlDocPtr)m_transformSource);
#endif
-#ifndef KHTML_NO_XBL
+#ifdef XBL_SUPPORT
delete m_bindingManager;
#endif
// Processing instruction (XML documents only)
ProcessingInstruction* pi = static_cast<ProcessingInstruction*>(n);
sheet = pi->sheet();
-#ifdef KHTML_XSLT
+#ifdef XSLT_SUPPORT
// Don't apply XSL transforms to already transformed documents -- <rdar://problem/4132806>
if (pi->isXSL() && !transformSourceDocument()) {
// Don't apply XSL transforms until loading is finished.
node->renderer()->repaint();
}
-#ifdef KHTML_XSLT
+#ifdef XSLT_SUPPORT
void Document::applyXSLTransform(ProcessingInstruction* pi)
{
#include "Timer.h"
#include <wtf/HashCountedSet.h>
-#ifndef KHTML_NO_XBL
-namespace XBL {
- class XBLBindingManager;
-}
-#endif
-
namespace WebCore {
class AXObjectCache;
class Text;
class Tokenizer;
class TreeWalker;
+#ifdef XBL_SUPPORT
+ class XBLBindingManager;
+#endif
#ifdef XPATH_SUPPORT
class XPathEvaluator;
class XPathExpression;
int docID() const { return m_docID; }
-#if KHTML_XSLT
+#if XSLT_SUPPORT
void applyXSLTransform(ProcessingInstruction* pi);
void setTransformSource(void* doc) { m_transformSource = doc; }
const void* transformSource() { return m_transformSource; }
void setTransformSourceDocument(Document *doc) { m_transformSourceDocument = doc; }
#endif
-#ifndef KHTML_NO_XBL
+#ifdef XBL_SUPPORT
// XBL methods
- XBL::XBLBindingManager* bindingManager() const { return m_bindingManager; }
+ XBLBindingManager* bindingManager() const { return m_bindingManager; }
#endif
void incDOMTreeVersion() { ++m_domtree_version; }
double m_startTime;
bool m_overMinimumLayoutThreshold;
-#if KHTML_XSLT
+#if XSLT_SUPPORT
void* m_transformSource;
RefPtr<Document> m_transformSourceDocument;
#endif
-#ifndef KHTML_NO_XBL
- XBL::XBLBindingManager* m_bindingManager; // The access point through which documents and elements communicate with XBL.
+#ifdef XBL_SUPPORT
+ XBLBindingManager* m_bindingManager; // The access point through which documents and elements communicate with XBL.
#endif
typedef HashMap<AtomicStringImpl*, HTMLMapElement*> ImageMapsByName;
#endif
) {
RenderStyle* style = styleForRenderer(parentRenderer);
-#ifndef KHTML_NO_XBL
- bool resolveStyle = false;
- if (document()->bindingManager()->loadBindings(this, style->bindingURIs(), true, &resolveStyle) &&
- rendererIsNeeded(style)) {
- if (resolveStyle) {
- style->deref(document()->renderArena());
- style = styleForRenderer(parentRenderer);
- }
-#else
if (rendererIsNeeded(style)) {
-#endif
setRenderer(createRenderer(document()->renderArena(), style));
if (renderer()) {
renderer()->setStyle(style);
parentRenderer->addChild(renderer(), nextRenderer());
}
-#ifndef KHTML_NO_XBL
- } // avoid confusing the change log code parser by having two close braces to match the two open braces above
-#else
}
-#endif
style->deref(document()->renderArena());
}
}
: ContainerNode(doc)
, m_cachedSheet(0)
, m_loading(false)
-#if KHTML_XSLT
+#if XSLT_SUPPORT
, m_isXSL(false)
#endif
{
, m_data(data.impl())
, m_cachedSheet(0)
, m_loading(false)
-#if KHTML_XSLT
+#if XSLT_SUPPORT
, m_isXSL(false)
#endif
{
type = i->second;
bool isCSS = type.isEmpty() || type == "text/css";
-#if KHTML_XSLT
+#if XSLT_SUPPORT
m_isXSL = (type == "text/xml" || type == "text/xsl" || type == "application/xml" ||
type == "application/xhtml+xml" || type == "application/rss+xml" || type == "application/atom=xml");
if (!isCSS && !m_isXSL)
if (href.length() > 1) {
if (href[0] == '#') {
m_localHref = href.substring(1).impl();
-#if KHTML_XSLT
+#if XSLT_SUPPORT
// We need to make a synthetic XSLStyleSheet that is embedded. It needs to be able
// to kick off import/include loads that can hang off some parent sheet.
if (m_isXSL) {
document()->addPendingSheet();
if (m_cachedSheet)
m_cachedSheet->deref(this);
-#if KHTML_XSLT
+#if XSLT_SUPPORT
if (m_isXSL)
m_cachedSheet = document()->docLoader()->requestXSLStyleSheet(document()->completeURL(href));
else
m_cachedSheet = document()->docLoader()->requestStyleSheet(document()->completeURL(href), String());
if (m_cachedSheet)
m_cachedSheet->ref( this );
-#if KHTML_XSLT
+#if XSLT_SUPPORT
return !m_isXSL;
#endif
}
void ProcessingInstruction::setStyleSheet(const String &url, const String &sheet)
{
-#if KHTML_XSLT
+#if XSLT_SUPPORT
if (m_isXSL)
m_sheet = new XSLStyleSheet(this, url);
else
void sheetLoaded();
virtual String toString() const;
-#ifdef KHTML_XSLT
+#ifdef XSLT_SUPPORT
bool isXSL() const { return m_isXSL; }
#endif
CachedResource* m_cachedSheet;
RefPtr<StyleSheet> m_sheet;
bool m_loading;
-#ifdef KHTML_XSLT
+#ifdef XSLT_SUPPORT
bool m_isXSL;
#endif
};
#include <wtf/Platform.h>
#include <wtf/Vector.h>
-#ifdef KHTML_XSLT
+#ifdef XSLT_SUPPORT
#include <libxslt/xslt.h>
#endif
// don't load stylesheets for standalone documents
if (m_doc->frame()) {
m_sawXSLTransform = !m_sawFirstElement && !pi->checkStyleSheet();
-#ifdef KHTML_XSLT
+#ifdef XSLT_SUPPORT
// Pretend we didn't see this PI if we're the result of a transform.
if (m_sawXSLTransform && !m_doc->transformSourceDocument())
#else
RefPtr<Element> reportElement = createXHTMLParserErrorHeader(doc, m_errorMessages);
documentElement->insertBefore(reportElement, documentElement->firstChild(), ec);
-#ifdef KHTML_XSLT
+#ifdef XSLT_SUPPORT
if (doc->transformSourceDocument()) {
RefPtr<Element> par = doc->createElementNS(xhtmlNamespaceURI, "p", ec);
reportElement->appendChild(par, ec);
return m_pendingScript != 0;
}
-#ifdef KHTML_XSLT
+#ifdef XSLT_SUPPORT
void* xmlDocPtrForString(DocLoader* docLoader, const String& source, const DeprecatedString &url)
{
if (source.isEmpty())
};
Tokenizer* newXMLTokenizer(Document*, FrameView* = 0);
-#if KHTML_XSLT
+#if XSLT_SUPPORT
void* xmlDocPtrForString(DocLoader*, const String& source, const DeprecatedString& URL);
void setLoaderForLibXMLCallbacks(DocLoader*);
#endif
return static_cast<CachedScript *>(o);
}
-#ifdef KHTML_XSLT
+#ifdef XSLT_SUPPORT
CachedXSLStyleSheet* Cache::requestXSLStyleSheet(DocLoader* dl, const String& url, bool reload, time_t expireDate)
{
// this brings the _url to a standard form...
}
#endif
-#ifndef KHTML_NO_XBL
+#ifdef XBL_SUPPORT
CachedXBLDocument* Cache::requestXBLDocument(DocLoader* dl, const String& url, bool reload,
time_t expireDate)
{
stats.scripts.count++;
stats.scripts.size += o->size();
break;
-#ifdef KHTML_XSLT
+#ifdef XSLT_SUPPORT
case CachedResource::XSLStyleSheet:
stats.xslStyleSheets.count++;
stats.xslStyleSheets.size += o->size();
break;
#endif
-#ifndef KHTML_NO_XBL
+#ifdef XBL_SUPPORT
case CachedResource::XBL:
stats.xblDocs.count++;
stats.xblDocs.size += o->size();
static CachedCSSStyleSheet* requestStyleSheet(DocLoader*, const String& URL, bool reload, time_t expireDate, const String& charset);
static CachedScript* requestScript(DocLoader*, const String& URL, bool reload, time_t expireDate, const String& charset);
-#ifdef KHTML_XSLT
+#ifdef XSLT_SUPPORT
static CachedXSLStyleSheet* requestXSLStyleSheet(DocLoader*, const String& URL, bool reload, time_t expireDate);
#endif
-#ifndef KHTML_NO_XBL
+#ifdef XBL_SUPPORT
static CachedXBLDocument* requestXBLDocument(DocLoader*, const String& URL, bool reload, time_t expireDate);
#endif
TypeStatistic movies;
TypeStatistic styleSheets;
TypeStatistic scripts;
-#ifdef KHTML_XSLT
+#ifdef XSLT_SUPPORT
TypeStatistic xslStyleSheets;
#endif
-#ifndef KHTML_NO_XBL
+#ifdef XBL_SUPPORT
TypeStatistic xblDocs;
#endif
TypeStatistic other;
ImageResource,
CSSStyleSheet,
Script
-#ifdef KHTML_XSLT
+#ifdef XSLT_SUPPORT
, XSLStyleSheet
#endif
-#ifndef KHTML_NO_XBL
+#ifdef XBL_SUPPORT
, XBL
#endif
};
#ifndef CachedResourceClient_h
#define CachedResourceClient_h
-#ifndef KHTML_NO_XBL
+#ifdef XBL_SUPPORT
namespace XBL {
class XBLDocument;
}
virtual void setStyleSheet(const String& /*URL*/, const String& /*sheet*/) { }
-#ifndef KHTML_NO_XBL
+#ifdef XBL_SUPPORT
virtual void setXBLDocument(const String& /*URL*/, XBL::XBLDocument*) { }
#endif
#include "config.h"
-#ifndef KHTML_NO_XBL
+#ifdef XBL_SUPPORT
#include "CachedXBLDocument.h"
class Decoder;
class CachedResourceClient;
-#ifndef KHTML_NO_XBL
+#ifdef XBL_SUPPORT
class CachedXBLDocument : public CachedResource {
public:
CachedXBLDocument(DocLoader*, const String& url, CachePolicy, time_t expireDate);
namespace WebCore {
-#ifdef KHTML_XSLT
+#ifdef XSLT_SUPPORT
CachedXSLStyleSheet::CachedXSLStyleSheet(DocLoader* dl, const String &url, CachePolicy cachePolicy, time_t _expireDate)
: CachedResource(url, XSLStyleSheet, cachePolicy, _expireDate)
class DocLoader;
class Decoder;
-#ifdef KHTML_XSLT
+#ifdef XSLT_SUPPORT
class CachedXSLStyleSheet : public CachedResource {
public:
CachedXSLStyleSheet(DocLoader*, const String& url, CachePolicy, time_t expireDate);
return cachedObject;
}
-#ifdef KHTML_XSLT
+#ifdef XSLT_SUPPORT
CachedXSLStyleSheet* DocLoader::requestXSLStyleSheet(const String& url)
{
KURL fullURL = m_doc->completeURL(url.deprecatedString());
}
#endif
-#ifndef KHTML_NO_XBL
+#ifdef XBL_SUPPORT
CachedXBLDocument* DocLoader::requestXBLDocument(const String& url)
{
KURL fullURL = m_doc->completeURL(url.deprecatedString());
CachedCSSStyleSheet* requestStyleSheet(const String& url, const String& charset);
CachedScript* requestScript(const String& url, const String& charset);
-#ifdef KHTML_XSLT
+#ifdef XSLT_SUPPORT
CachedXSLStyleSheet* requestXSLStyleSheet(const String& url);
#endif
-#ifndef KHTML_NO_XBL
+#ifdef XBL_SUPPORT
CachedXBLDocument* requestXBLDocument(const String &url);
#endif
, marginTopCollapse(MCOLLAPSE)
, marginBottomCollapse(MCOLLAPSE)
, m_appearance(RenderStyle::initialAppearance())
-#ifndef KHTML_NO_XBL
+#ifdef XBL_SUPPORT
, bindingURI(0)
#endif
{
, marginTopCollapse(o.marginTopCollapse)
, marginBottomCollapse(o.marginBottomCollapse)
, m_appearance(o.m_appearance)
-#ifndef KHTML_NO_XBL
+#ifdef XBL_SUPPORT
, bindingURI(o.bindingURI ? o.bindingURI->copy() : 0)
#endif
{
StyleCSS3NonInheritedData::~StyleCSS3NonInheritedData()
{
-#ifndef KHTML_NO_XBL
+#ifdef XBL_SUPPORT
delete bindingURI;
#endif
}
-#ifndef KHTML_NO_XBL
+#ifdef XBL_SUPPORT
bool StyleCSS3NonInheritedData::bindingsEquivalent(const StyleCSS3NonInheritedData& o) const
{
if (this == &o) return true;
userDrag == o.userDrag && userSelect == o.userSelect && textOverflow == o.textOverflow &&
marginTopCollapse == o.marginTopCollapse && marginBottomCollapse == o.marginBottomCollapse &&
m_appearance == o.m_appearance
-#ifndef KHTML_NO_XBL
+#ifdef XBL_SUPPORT
&& bindingsEquivalent(o)
#endif
&& lineClamp == o.lineClamp && m_dashboardRegions == o.m_dashboardRegions
}
}
-#ifndef KHTML_NO_XBL
+#ifdef XBL_SUPPORT
BindingURI::BindingURI(StringImpl* uri)
:m_next(0)
{
ShadowData* next;
};
-#ifndef KHTML_NO_XBL
+#ifdef XBL_SUPPORT
struct BindingURI {
BindingURI(StringImpl*);
~BindingURI();
~StyleCSS3NonInheritedData();
StyleCSS3NonInheritedData(const StyleCSS3NonInheritedData& o);
-#ifndef KHTML_NO_XBL
+#ifdef XBL_SUPPORT
bool bindingsEquivalent(const StyleCSS3NonInheritedData& o) const;
#endif
unsigned m_appearance : 6; // EAppearance
-#ifndef KHTML_NO_XBL
+#ifdef XBL_SUPPORT
BindingURI* bindingURI; // The XBL binding URI list.
#endif
};
EPageBreak pageBreakAfter() const { return static_cast<EPageBreak>(noninherited_flags._page_break_after); }
// CSS3 Getter Methods
-#ifndef KHTML_NO_XBL
+#ifdef XBL_SUPPORT
BindingURI* bindingURIs() const { return css3NonInheritedData->bindingURI; }
#endif
int outlineOffset() const {
void setPageBreakAfter(EPageBreak b) { noninherited_flags._page_break_after = b; }
// CSS3 Setters
-#ifndef KHTML_NO_XBL
+#ifdef XBL_SUPPORT
void deleteBindingURIs() {
delete css3NonInheritedData->bindingURI;
SET_VAR(css3NonInheritedData, bindingURI, (BindingURI*) 0);
#include "config.h"
#include "XSLImportRule.h"
-#ifdef KHTML_XSLT
+#ifdef XSLT_SUPPORT
#include "CachedXSLStyleSheet.h"
#include "DocLoader.h"
} // namespace WebCore
-#endif // KHTML_XSLT
+#endif // XSLT_SUPPORT
#ifndef XSLImportRule_H
#define XSLImportRule_H
-#ifdef KHTML_XSLT
+#ifdef XSLT_SUPPORT
#include "CachedResourceClient.h"
#include "StyleBase.h"
} // namespace WebCore
-#endif // KHTML_XSLT
+#endif // XSLT_SUPPORT
#endif // XSLImportRule_H
#include "config.h"
#include "XSLStyleSheet.h"
-#ifdef KHTML_XSLT
+#ifdef XSLT_SUPPORT
#include "DocLoader.h"
#include "Document.h"
} // namespace WebCore
-#endif // KHTML_XSLT
+#endif // XSLT_SUPPORT
#ifndef XSLStyleSheet_H
#define XSLStyleSheet_H
-#ifdef KHTML_XSLT
+#ifdef XSLT_SUPPORT
#include "StyleSheet.h"
#include <libxml/parser.h>
} // namespace WebCore
-#endif // KHTML_XSLT
+#endif // XSLT_SUPPORT
#endif // XSLStyleSheet_H
#include "config.h"
-#ifdef KHTML_XSLT
+#ifdef XSLT_SUPPORT
#include "XSLTProcessor.h"
} // namespace WebCore
-#endif // KHTML_XSLT
+#endif // XSLT_SUPPORT
#ifndef xslt_processorimpl_h_
#define xslt_processorimpl_h_
-#ifdef KHTML_XSLT
+#ifdef XSLT_SUPPORT
#include "StringHash.h"
#include "XSLStyleSheet.h"