Changeset 79805 in webkit
- Timestamp:
- Feb 26, 2011 12:14:47 PM (13 years ago)
- Location:
- trunk
- Files:
-
- 31 deleted
- 18 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r79804 r79805 1 2011-02-26 Pavel Feldman <pfeldman@chromium.org> 2 3 Not reviewed: rolling out 79799 and 79804 for breaking xml tests on mac. 4 1 5 2011-02-26 Pavel Feldman <pfeldman@chromium.org> 2 6 -
trunk/LayoutTests/platform/qt/Skipped
r79804 r79805 3612 3612 http/tests/inspector-enabled/open-close-open.html 3613 3613 http/tests/inspector/change-iframe-src.html 3614 3615 # [Qt] XML Viewer fails due to specifics in the parser implementation3616 # https://bugs.webkit.org/show_bug.cgi?id=553023617 http/tests/xmlviewer/dumpAsText/svg.xml3618 http/tests/xmlviewer/dumpAsText/wml.xml3619 http/tests/xmlviewer/dumpAsText/xlink.xml3620 http/tests/xmlviewer/dumpAsText/xmlviewer-charset-cp1251.xml3621 http/tests/xmlviewer/dumpAsText/xmlviewer-charset-utf8.xml3622 http/tests/xmlviewer/dumpAsText/xmlviewer.xml3623 http/tests/xmlviewer/dumpAsText/xsl-stylesheet.xml3624 http/tests/xmlviewer/dumpAsText/xul.xml -
trunk/Source/WebCore/CMakeLists.txt
r79804 r79805 1506 1506 xml/XMLHttpRequestProgressEventThrottle.cpp 1507 1507 xml/XMLHttpRequestUpload.cpp 1508 xml/XMLTreeViewer.cpp1509 1508 xml/XMLSerializer.cpp 1510 1509 xml/XPathEvaluator.cpp … … 2142 2141 2143 2142 2144 # Generate XMLViewerXSL.h2145 ADD_CUSTOM_COMMAND(2146 OUTPUT ${DERIVED_SOURCES_DIR}/XMLViewerXSL.h2147 MAIN_DEPENDENCY xml/XMLViewer.xsl2148 COMMAND ${PERL_EXECUTABLE} ${WEBCORE_DIR}/inspector/xxd.pl XMLViewer_xsl ${WEBCORE_DIR}/xml/XMLViewer.xsl ${DERIVED_SOURCES_DIR}/XMLViewerXSL.h2149 VERBATIM)2150 LIST(APPEND WebCore_SOURCES ${DERIVED_SOURCES_DIR}/XMLViewerXSL.h)2151 2152 2153 2143 # Generate HTML entity table 2154 2144 ADD_CUSTOM_COMMAND( -
trunk/Source/WebCore/ChangeLog
r79804 r79805 1 2011-02-26 Pavel Feldman <pfeldman@chromium.org> 2 3 Not reviewed: rolling out 79799 and 79804 for breaking xml tests on mac. 4 1 5 2011-02-26 Pavel Feldman <pfeldman@chromium.org> 2 6 -
trunk/Source/WebCore/DerivedSources.make
r79799 r79805 649 649 # -------- 650 650 651 # XMLViewer XSLT652 653 all : XMLViewerXSL.h654 655 XMLViewerXSL.h : xml/XMLViewer.xsl656 perl $(WebCore)/inspector/xxd.pl XMLViewer_xsl $(WebCore)/xml/XMLViewer.xsl XMLViewerXSL.h657 658 # --------659 660 651 # HTML entity names 661 652 -
trunk/Source/WebCore/GNUmakefile.am
r79799 r79805 647 647 DerivedSources/WebCore/XMLNames.h \ 648 648 DerivedSources/WebCore/XMLNSNames.cpp \ 649 DerivedSources/WebCore/XMLNSNames.h \ 650 DerivedSources/WebCore/XMLViewerXSL.h 649 DerivedSources/WebCore/XMLNSNames.h 651 650 652 651 webcore_sources += \ … … 3629 3628 Source/WebCore/xml/XMLHttpRequestUpload.cpp \ 3630 3629 Source/WebCore/xml/XMLHttpRequestUpload.h \ 3631 Source/WebCore/xml/XMLTreeViewer.cpp \3632 Source/WebCore/xml/XMLTreeViewer.h \3633 3630 Source/WebCore/xml/XMLSerializer.cpp \ 3634 3631 Source/WebCore/xml/XMLSerializer.h \ … … 4864 4861 $(PERL) $(WebCore)/make-hash-tools.pl $(GENSOURCES_WEBCORE) $(WebCore)/html/DocTypeStrings.gperf 4865 4862 4866 # XML Viewer XSL4867 DerivedSources/WebCore/XMLViewerXSL.h: $(WebCore)/xml/XMLViewer.xsl4868 $(PERL) $(WebCore)/inspector/xxd.pl XMLViewer_xsl $(WebCore)/xml/XMLViewer.xsl $(GENSOURCES_WEBCORE)/XMLViewerXSL.h4869 4870 4863 # HTML entity names 4871 4864 DerivedSources/WebCore/HTMLEntityTable.cpp: $(WebCore)/html/parser/HTMLEntityNames.in $(WebCore)/html/parser/create-html-entity-table -
trunk/Source/WebCore/WebCore.gyp/WebCore.gyp
r79799 r79805 388 388 # Actions to build derived sources. 389 389 { 390 'action_name': 'generateXMLViewerXSL',391 'inputs': [392 '../xml/XMLViewer.xsl',393 ],394 'outputs': [395 '<(SHARED_INTERMEDIATE_DIR)/webkit/XMLViewerXSL.h',396 '<(SHARED_INTERMEDIATE_DIR)/webkit/XMLViewerXSL.cpp',397 ],398 'action': [399 'perl',400 '../inspector/xxd.pl',401 'XMLViewer_xsl',402 '../xml/XMLViewer.xsl',403 '<(SHARED_INTERMEDIATE_DIR)/webkit/XMLViewerXSL.h'404 ],405 },406 {407 390 'action_name': 'HTMLEntityTable', 408 391 'inputs': [ -
trunk/Source/WebCore/WebCore.gypi
r79799 r79805 4643 4643 'xml/XMLHttpRequestUpload.cpp', 4644 4644 'xml/XMLHttpRequestUpload.h', 4645 'xml/XMLTreeViewer.cpp',4646 'xml/XMLTreeViewer.h',4647 4645 'xml/XMLSerializer.cpp', 4648 4646 'xml/XMLSerializer.h', -
trunk/Source/WebCore/WebCore.vcproj/WebCore.vcproj
r79799 r79805 23039 23039 </File> 23040 23040 <File 23041 RelativePath="$(ConfigurationBuildDir)\obj\$(ProjectName)\DerivedSources\XMLViewerXSL.h"23042 >23043 </File>23044 <File23045 23041 RelativePath="$(ConfigurationBuildDir)\obj\$(ProjectName)\DerivedSources\XPathGrammar.cpp" 23046 23042 > … … 41001 40997 </File> 41002 40998 <File 41003 RelativePath="..\xml\XMLTreeViewer.cpp"41004 >41005 </File>41006 <File41007 RelativePath="..\xml\XMLTreeViewer.h"41008 >41009 </File>41010 <File41011 40999 RelativePath="..\xml\XMLSerializer.cpp" 41012 41000 > -
trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj
r79799 r79805 1367 1367 550A0BC9085F6039007353D6 /* QualifiedName.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 550A0BC7085F6039007353D6 /* QualifiedName.cpp */; }; 1368 1368 550A0BCA085F6039007353D6 /* QualifiedName.h in Headers */ = {isa = PBXBuildFile; fileRef = 550A0BC8085F6039007353D6 /* QualifiedName.h */; settings = {ATTRIBUTES = (Private, ); }; }; 1369 5905ADBF1302F3CE00F116DF /* XMLTreeViewer.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 5905ADBD1302F3CE00F116DF /* XMLTreeViewer.cpp */; };1370 5905ADC01302F3CE00F116DF /* XMLTreeViewer.h in Headers */ = {isa = PBXBuildFile; fileRef = 5905ADBE1302F3CE00F116DF /* XMLTreeViewer.h */; };1371 1369 590E1B4911E4EF4B0069F784 /* DeviceOrientation.h in Headers */ = {isa = PBXBuildFile; fileRef = 590E1B4811E4EF4B0069F784 /* DeviceOrientation.h */; settings = {ATTRIBUTES = (Private, ); }; }; 1372 1370 590E1B4B11E4EF700069F784 /* JSDeviceOrientationEventCustom.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 590E1B4A11E4EF700069F784 /* JSDeviceOrientationEventCustom.cpp */; }; … … 7823 7821 550A0BC7085F6039007353D6 /* QualifiedName.cpp */ = {isa = PBXFileReference; fileEncoding = 30; indentWidth = 4; lastKnownFileType = sourcecode.cpp.cpp; path = QualifiedName.cpp; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; }; 7824 7822 550A0BC8085F6039007353D6 /* QualifiedName.h */ = {isa = PBXFileReference; fileEncoding = 30; indentWidth = 4; lastKnownFileType = sourcecode.c.h; path = QualifiedName.h; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; }; 7825 5905ADBD1302F3CE00F116DF /* XMLTreeViewer.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = XMLTreeViewer.cpp; sourceTree = "<group>"; };7826 5905ADBE1302F3CE00F116DF /* XMLTreeViewer.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = XMLTreeViewer.h; sourceTree = "<group>"; };7827 7823 590E1B4811E4EF4B0069F784 /* DeviceOrientation.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = DeviceOrientation.h; sourceTree = "<group>"; }; 7828 7824 590E1B4A11E4EF700069F784 /* JSDeviceOrientationEventCustom.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSDeviceOrientationEventCustom.cpp; sourceTree = "<group>"; }; … … 7833 7829 596229771133EFD700DC4CBB /* GeolocationPositionCache.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = GeolocationPositionCache.cpp; sourceTree = "<group>"; }; 7834 7830 596229791133EFE200DC4CBB /* GeolocationPositionCache.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GeolocationPositionCache.h; sourceTree = "<group>"; }; 7835 5980B03312EF3D8400DF5F85 /* XMLViewer.xsl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xml; path = XMLViewer.xsl; sourceTree = "<group>"; };7836 7831 599E758F11055A1F00D904FA /* Bridge.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = Bridge.h; path = bridge/Bridge.h; sourceTree = "<group>"; }; 7837 7832 59A85EA1119D68D900DEF1EF /* DeviceOrientationEvent.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = DeviceOrientationEvent.cpp; sourceTree = "<group>"; }; … … 18430 18425 BCDFD48C0E305290009D10AD /* XMLHttpRequestUpload.h */, 18431 18426 BCDFD4900E305644009D10AD /* XMLHttpRequestUpload.idl */, 18432 5905ADBD1302F3CE00F116DF /* XMLTreeViewer.cpp */,18433 5905ADBE1302F3CE00F116DF /* XMLTreeViewer.h */,18434 18427 1ACE53E40A8D18E70022947D /* XMLSerializer.cpp */, 18435 18428 1ACE53E50A8D18E70022947D /* XMLSerializer.h */, 18436 18429 1ACE53E60A8D18E70022947D /* XMLSerializer.idl */, 18437 5980B03312EF3D8400DF5F85 /* XMLViewer.xsl */,18438 18430 1AB7FC470A8B92EC00D9D37B /* XPathEvaluator.cpp */, 18439 18431 1AB7FC480A8B92EC00D9D37B /* XPathEvaluator.h */, … … 22470 22462 E15A36D71104572000B7B639 /* XMLNSNames.h in Headers */, 22471 22463 1ACE53EB0A8D18E70022947D /* XMLSerializer.h in Headers */, 22472 5905ADC01302F3CE00F116DF /* XMLTreeViewer.h in Headers */,22473 22464 1AB7FC690A8B92EC00D9D37B /* XPathEvaluator.h in Headers */, 22474 22465 BC60DA5B0D2A31F700B9918F /* XPathException.h in Headers */, … … 25115 25106 E15A36D91104572700B7B639 /* XMLNSNames.cpp in Sources */, 25116 25107 1ACE53EA0A8D18E70022947D /* XMLSerializer.cpp in Sources */, 25117 5905ADBF1302F3CE00F116DF /* XMLTreeViewer.cpp in Sources */,25118 25108 1AB7FC680A8B92EC00D9D37B /* XPathEvaluator.cpp in Sources */, 25119 25109 1AB7FC6B0A8B92EC00D9D37B /* XPathExpression.cpp in Sources */, -
trunk/Source/WebCore/css/CSSStyleSelector.cpp
r79799 r79805 1253 1253 matchRules(defaultQuirksStyle, firstUARule, lastUARule, false); 1254 1254 1255 // If document uses view source styles (in view source mode or in xml viewer mode), then we match rules from the view source style sheet.1256 if (m_checker.m_document-> usesViewSourceStyles()) {1255 // If we're in view source mode, then we match rules from the view source style sheet. 1256 if (m_checker.m_document->frame() && m_checker.m_document->frame()->inViewSourceMode()) { 1257 1257 if (!defaultViewSourceStyle) 1258 1258 loadViewSourceStyle(); -
trunk/Source/WebCore/dom/Document.cpp
r79799 r79805 410 410 , m_isXHTML(isXHTML) 411 411 , m_isHTML(isHTML) 412 , m_usesViewSourceStyles(false)413 , m_sawElementsInKnownNamespaces(false)414 412 , m_numNodeListCaches(0) 415 413 #if USE(JSC) … … 962 960 #endif 963 961 964 if (e) 965 m_sawElementsInKnownNamespaces = true; 966 else 962 if (!e) 967 963 e = Element::create(qName, document()); 968 964 -
trunk/Source/WebCore/dom/Document.h
r79799 r79805 436 436 437 437 CSSStyleSelector* styleSelectorIfExists() const { return m_styleSelector.get(); } 438 439 bool usesViewSourceStyles() const { return m_usesViewSourceStyles; }440 void setUsesViewSourceStyles(bool usesViewSourceStyles) { m_usesViewSourceStyles = usesViewSourceStyles; }441 442 bool sawElementsInKnownNamespaces() const { return m_sawElementsInKnownNamespaces; }443 444 438 CSSStyleSelector* styleSelector() 445 439 { … … 1377 1371 bool m_isHTML; 1378 1372 1379 bool m_usesViewSourceStyles;1380 bool m_sawElementsInKnownNamespaces;1381 1382 1373 unsigned m_numNodeListCaches; 1383 1374 -
trunk/Source/WebCore/dom/XMLDocumentParser.h
r79799 r79805 195 195 196 196 bool m_sawError; 197 bool m_sawCSS;198 197 bool m_sawXSLTransform; 199 198 bool m_sawFirstElement; -
trunk/Source/WebCore/dom/XMLDocumentParserLibxml2.cpp
r79799 r79805 64 64 65 65 #if ENABLE(XSLT) 66 #include "XMLTreeViewer.h"67 66 #include <libxslt/xslt.h> 68 67 #endif 69 68 70 69 #if ENABLE(XHTMLMP) 70 #include "HTMLNames.h" 71 71 #include "HTMLScriptElement.h" 72 72 #endif 73 74 73 75 74 using namespace std; … … 550 549 , m_currentNode(document) 551 550 , m_sawError(false) 552 , m_sawCSS(false)553 551 , m_sawXSLTransform(false) 554 552 , m_sawFirstElement(false) … … 577 575 , m_currentNode(fragment) 578 576 , m_sawError(false) 579 , m_sawCSS(false)580 577 , m_sawXSLTransform(false) 581 578 , m_sawFirstElement(false) … … 971 968 972 969 // ### handle exceptions 973 ExceptionCode ec= 0;970 int exception = 0; 974 971 RefPtr<ProcessingInstruction> pi = document()->createProcessingInstruction( 975 toString(target), toString(data), e c);976 if (e c)972 toString(target), toString(data), exception); 973 if (exception) 977 974 return; 978 975 … … 985 982 pi->finishParsingChildren(); 986 983 987 if (pi->isCSS())988 m_sawCSS = true;989 984 #if ENABLE(XSLT) 990 985 m_sawXSLTransform = !m_sawFirstElement && pi->isXSL(); … … 1313 1308 DocumentParser::startParsing(); 1314 1309 m_sawError = false; 1315 m_sawCSS = false;1316 1310 m_sawXSLTransform = false; 1317 1311 m_sawFirstElement = false; … … 1329 1323 { 1330 1324 #if ENABLE(XSLT) 1331 XMLTreeViewer xmlTreeViewer(document()); 1332 1333 bool xmlViewerMode = !m_sawError && !m_sawCSS && !m_sawXSLTransform && xmlTreeViewer.hasNoStyleInformation(); 1334 1335 if (xmlViewerMode || m_sawXSLTransform) { 1325 if (m_sawXSLTransform) { 1336 1326 void* doc = xmlDocPtrForString(document()->cachedResourceLoader(), m_originalSourceForTransform, document()->url().string()); 1337 1327 document()->setTransformSource(new TransformSource(doc)); 1338 1328 1339 if (xmlViewerMode) 1340 xmlTreeViewer.transformDocumentToTreeView(); 1341 else { 1342 document()->setParsing(false); // Make the document think it's done, so it will apply XSL stylesheets. 1343 document()->styleSelectorChanged(RecalcStyleImmediately); 1344 document()->setParsing(true); 1345 } 1346 1329 document()->setParsing(false); // Make the doc think it's done, so it will apply xsl sheets. 1330 document()->styleSelectorChanged(RecalcStyleImmediately); 1331 document()->setParsing(true); 1347 1332 DocumentParser::stopParsing(); 1348 1333 } -
trunk/Source/WebCore/dom/XMLDocumentParserQt.cpp
r79799 r79805 92 92 , m_currentNode(document) 93 93 , m_sawError(false) 94 , m_sawCSS(false)95 94 , m_sawXSLTransform(false) 96 95 , m_sawFirstElement(false) … … 119 118 , m_currentNode(fragment) 120 119 , m_sawError(false) 121 , m_sawCSS(false)122 120 , m_sawXSLTransform(false) 123 121 , m_sawFirstElement(false) … … 208 206 DocumentParser::startParsing(); 209 207 m_sawError = false; 210 m_sawCSS = false;211 208 m_sawXSLTransform = false; 212 209 m_sawFirstElement = false; … … 644 641 pi->finishParsingChildren(); 645 642 646 if (pi->isCSS())647 m_sawCSS = true;648 643 #if ENABLE(XSLT) 649 644 m_sawXSLTransform = !m_sawFirstElement && pi->isXSL(); -
trunk/Source/WebCore/html/HTMLViewSourceDocument.cpp
r79799 r79805 53 53 { 54 54 setUsesBeforeAfterRules(true); 55 setUsesViewSourceStyles(true);56 57 55 setCompatibilityMode(QuirksMode); 58 56 lockCompatibilityMode(); -
trunk/Source/WebCore/xml/XSLStyleSheet.h
r79799 r79805 64 64 } 65 65 66 static PassRefPtr<XSLStyleSheet> createForXMLTreeViewer(Node* node, const String& sheetString)67 {68 RefPtr<XSLStyleSheet> sheet = adoptRef(new XSLStyleSheet(node, String(), KURL(), false));69 sheet->parseString(sheetString);70 71 return sheet.release();72 }73 74 66 virtual ~XSLStyleSheet(); 75 67
Note: See TracChangeset
for help on using the changeset viewer.