Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(20)

Side by Side Diff: Source/WebCore/dom/Document.cpp

Issue 14113007: Remove the ENABLE_XSLT compile-time flag. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/WebCore/dom/Document.h ('k') | Source/WebCore/dom/DocumentStyleSheetCollection.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 * (C) 2001 Dirk Mueller (mueller@kde.org) 4 * (C) 2001 Dirk Mueller (mueller@kde.org)
5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) 5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org)
6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011, 2012 Apple Inc. All r ights reserved. 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011, 2012 Apple Inc. All r ights reserved.
7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/) 7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/)
8 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved. 8 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved.
9 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) 9 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
10 * Copyright (C) Research In Motion Limited 2010-2011. All rights reserved. 10 * Copyright (C) Research In Motion Limited 2010-2011. All rights reserved.
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 #include "VisitedLinkState.h" 176 #include "VisitedLinkState.h"
177 #include "WebCoreMemoryInstrumentation.h" 177 #include "WebCoreMemoryInstrumentation.h"
178 #include "XMLDocumentParser.h" 178 #include "XMLDocumentParser.h"
179 #include "XMLHttpRequest.h" 179 #include "XMLHttpRequest.h"
180 #include "XMLNSNames.h" 180 #include "XMLNSNames.h"
181 #include "XMLNames.h" 181 #include "XMLNames.h"
182 #include "XPathEvaluator.h" 182 #include "XPathEvaluator.h"
183 #include "XPathExpression.h" 183 #include "XPathExpression.h"
184 #include "XPathNSResolver.h" 184 #include "XPathNSResolver.h"
185 #include "XPathResult.h" 185 #include "XPathResult.h"
186 #include "XSLTProcessor.h"
186 #include "htmlediting.h" 187 #include "htmlediting.h"
187 #include <wtf/CurrentTime.h> 188 #include <wtf/CurrentTime.h>
188 #include <wtf/HashFunctions.h> 189 #include <wtf/HashFunctions.h>
189 #include <wtf/MainThread.h> 190 #include <wtf/MainThread.h>
190 #include <wtf/MemoryInstrumentationHashCountedSet.h> 191 #include <wtf/MemoryInstrumentationHashCountedSet.h>
191 #include <wtf/MemoryInstrumentationHashMap.h> 192 #include <wtf/MemoryInstrumentationHashMap.h>
192 #include <wtf/MemoryInstrumentationHashSet.h> 193 #include <wtf/MemoryInstrumentationHashSet.h>
193 #include <wtf/MemoryInstrumentationVector.h> 194 #include <wtf/MemoryInstrumentationVector.h>
194 #include <wtf/PassRefPtr.h> 195 #include <wtf/PassRefPtr.h>
195 #include <wtf/StdLibExtras.h> 196 #include <wtf/StdLibExtras.h>
196 #include <wtf/text/StringBuffer.h> 197 #include <wtf/text/StringBuffer.h>
197 198
198 #if ENABLE(SHARED_WORKERS) 199 #if ENABLE(SHARED_WORKERS)
199 #include "SharedWorkerRepository.h" 200 #include "SharedWorkerRepository.h"
200 #endif 201 #endif
201 202
202 #if ENABLE(XSLT)
203 #include "XSLTProcessor.h"
204 #endif
205
206 #if ENABLE(SVG) 203 #if ENABLE(SVG)
207 #include "SVGDocumentExtensions.h" 204 #include "SVGDocumentExtensions.h"
208 #include "SVGElementFactory.h" 205 #include "SVGElementFactory.h"
209 #include "SVGNames.h" 206 #include "SVGNames.h"
210 #include "SVGSVGElement.h" 207 #include "SVGSVGElement.h"
211 #include "SVGStyleElement.h" 208 #include "SVGStyleElement.h"
212 #endif 209 #endif
213 210
214 #if ENABLE(TOUCH_EVENTS) 211 #if ENABLE(TOUCH_EVENTS)
215 #include "TouchList.h" 212 #include "TouchList.h"
(...skipping 3921 matching lines...) Expand 10 before | Expand all | Expand 10 after
4137 if (!equalIgnoringCase(linkElement->type(), openSearchMIMEType) || !equa lIgnoringCase(linkElement->rel(), openSearchRelation)) 4134 if (!equalIgnoringCase(linkElement->type(), openSearchMIMEType) || !equa lIgnoringCase(linkElement->rel(), openSearchRelation))
4138 continue; 4135 continue;
4139 if (linkElement->href().isEmpty()) 4136 if (linkElement->href().isEmpty())
4140 continue; 4137 continue;
4141 return linkElement->href(); 4138 return linkElement->href();
4142 } 4139 }
4143 4140
4144 return KURL(); 4141 return KURL();
4145 } 4142 }
4146 4143
4147 #if ENABLE(XSLT)
4148
4149 void Document::applyXSLTransform(ProcessingInstruction* pi) 4144 void Document::applyXSLTransform(ProcessingInstruction* pi)
4150 { 4145 {
4151 RefPtr<XSLTProcessor> processor = XSLTProcessor::create(); 4146 RefPtr<XSLTProcessor> processor = XSLTProcessor::create();
4152 processor->setXSLStyleSheet(static_cast<XSLStyleSheet*>(pi->sheet())); 4147 processor->setXSLStyleSheet(static_cast<XSLStyleSheet*>(pi->sheet()));
4153 String resultMIMEType; 4148 String resultMIMEType;
4154 String newSource; 4149 String newSource;
4155 String resultEncoding; 4150 String resultEncoding;
4156 if (!processor->transformToString(this, resultMIMEType, newSource, resultEnc oding)) 4151 if (!processor->transformToString(this, resultMIMEType, newSource, resultEnc oding))
4157 return; 4152 return;
4158 // FIXME: If the transform failed we should probably report an error (like M ozilla does). 4153 // FIXME: If the transform failed we should probably report an error (like M ozilla does).
4159 Frame* ownerFrame = frame(); 4154 Frame* ownerFrame = frame();
4160 processor->createDocumentFromSource(newSource, resultEncoding, resultMIMETyp e, this, ownerFrame); 4155 processor->createDocumentFromSource(newSource, resultEncoding, resultMIMETyp e, this, ownerFrame);
4161 InspectorInstrumentation::frameDocumentUpdated(ownerFrame); 4156 InspectorInstrumentation::frameDocumentUpdated(ownerFrame);
4162 } 4157 }
4163 4158
4164 void Document::setTransformSource(PassOwnPtr<TransformSource> source) 4159 void Document::setTransformSource(PassOwnPtr<TransformSource> source)
4165 { 4160 {
4166 m_transformSource = source; 4161 m_transformSource = source;
4167 } 4162 }
4168 4163
4169 #endif
4170
4171 void Document::setDesignMode(InheritedBool value) 4164 void Document::setDesignMode(InheritedBool value)
4172 { 4165 {
4173 m_designMode = value; 4166 m_designMode = value;
4174 for (Frame* frame = m_frame; frame && frame->document(); frame = frame->tree ()->traverseNext(m_frame)) 4167 for (Frame* frame = m_frame; frame && frame->document(); frame = frame->tree ()->traverseNext(m_frame))
4175 frame->document()->scheduleForcedStyleRecalc(); 4168 frame->document()->scheduleForcedStyleRecalc();
4176 } 4169 }
4177 4170
4178 Document::InheritedBool Document::getDesignMode() const 4171 Document::InheritedBool Document::getDesignMode() const
4179 { 4172 {
4180 return m_designMode; 4173 return m_designMode;
(...skipping 1654 matching lines...) Expand 10 before | Expand all | Expand 10 after
5835 info.addMember(m_visitedLinkState, "visitedLinkState"); 5828 info.addMember(m_visitedLinkState, "visitedLinkState");
5836 info.addMember(m_styleRecalcTimer, "styleRecalcTimer"); 5829 info.addMember(m_styleRecalcTimer, "styleRecalcTimer");
5837 info.addMember(m_titleElement, "titleElement"); 5830 info.addMember(m_titleElement, "titleElement");
5838 info.ignoreMember(m_renderArena); 5831 info.ignoreMember(m_renderArena);
5839 info.addMember(m_axObjectCache, "axObjectCache"); 5832 info.addMember(m_axObjectCache, "axObjectCache");
5840 info.addMember(m_markers, "markers"); 5833 info.addMember(m_markers, "markers");
5841 info.addMember(m_cssTarget, "cssTarget"); 5834 info.addMember(m_cssTarget, "cssTarget");
5842 info.addMember(m_updateFocusAppearanceTimer, "updateFocusAppearanceTimer"); 5835 info.addMember(m_updateFocusAppearanceTimer, "updateFocusAppearanceTimer");
5843 info.addMember(m_pendingStateObject, "pendingStateObject"); 5836 info.addMember(m_pendingStateObject, "pendingStateObject");
5844 info.addMember(m_scriptRunner, "scriptRunner"); 5837 info.addMember(m_scriptRunner, "scriptRunner");
5845 #if ENABLE(XSLT)
5846 info.addMember(m_transformSource, "transformSource"); 5838 info.addMember(m_transformSource, "transformSource");
5847 info.addMember(m_transformSourceDocument, "transformSourceDocument"); 5839 info.addMember(m_transformSourceDocument, "transformSourceDocument");
5848 #endif
5849 info.addMember(m_savedRenderer, "savedRenderer"); 5840 info.addMember(m_savedRenderer, "savedRenderer");
5850 info.addMember(m_decoder, "decoder"); 5841 info.addMember(m_decoder, "decoder");
5851 info.addMember(m_xpathEvaluator, "xpathEvaluator"); 5842 info.addMember(m_xpathEvaluator, "xpathEvaluator");
5852 #if ENABLE(SVG) 5843 #if ENABLE(SVG)
5853 info.addMember(m_svgExtensions, "svgExtensions"); 5844 info.addMember(m_svgExtensions, "svgExtensions");
5854 #endif 5845 #endif
5855 info.addMember(m_selectorQueryCache, "selectorQueryCache"); 5846 info.addMember(m_selectorQueryCache, "selectorQueryCache");
5856 info.addMember(m_renderer, "renderer"); 5847 info.addMember(m_renderer, "renderer");
5857 info.addMember(m_weakFactory, "weakFactory"); 5848 info.addMember(m_weakFactory, "weakFactory");
5858 info.addMember(m_idAttributeName, "idAttributeName"); 5849 info.addMember(m_idAttributeName, "idAttributeName");
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
5942 return; 5933 return;
5943 5934
5944 Vector<RefPtr<Element> > associatedFormControls; 5935 Vector<RefPtr<Element> > associatedFormControls;
5945 copyToVector(m_associatedFormControls, associatedFormControls); 5936 copyToVector(m_associatedFormControls, associatedFormControls);
5946 5937
5947 frame()->page()->chrome()->client()->didAssociateFormControls(associatedForm Controls); 5938 frame()->page()->chrome()->client()->didAssociateFormControls(associatedForm Controls);
5948 m_associatedFormControls.clear(); 5939 m_associatedFormControls.clear();
5949 } 5940 }
5950 5941
5951 } // namespace WebCore 5942 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/WebCore/dom/Document.h ('k') | Source/WebCore/dom/DocumentStyleSheetCollection.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698