Changeset 164254 in webkit
- Timestamp:
- Feb 17, 2014 3:53:29 PM (10 years ago)
- Location:
- trunk/Source
- Files:
-
- 7 deleted
- 43 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/CMakeLists.txt
r164131 r164254 1450 1450 html/HTMLUListElement.cpp 1451 1451 html/HTMLVideoElement.cpp 1452 html/HTMLViewSourceDocument.cpp1453 1452 html/HiddenInputType.cpp 1454 1453 html/ImageData.cpp … … 1549 1548 html/parser/HTMLTokenizer.cpp 1550 1549 html/parser/HTMLTreeBuilder.cpp 1551 html/parser/HTMLViewSourceParser.cpp1552 1550 html/parser/TextDocumentParser.cpp 1553 html/parser/TextViewSourceParser.cpp1554 1551 html/parser/XSSAuditor.cpp 1555 1552 html/parser/XSSAuditorDelegate.cpp … … 2569 2566 ${WEBCORE_DIR}/css/quirks.css 2570 2567 ${WEBCORE_DIR}/css/svg.css 2571 ${WEBCORE_DIR}/css/view-source.css2572 2568 ) 2573 2569 -
trunk/Source/WebCore/ChangeLog
r164252 r164254 1 2014-02-17 Anders Carlsson <andersca@apple.com> 2 3 Remove view source code 4 https://bugs.webkit.org/show_bug.cgi?id=127233 5 6 Reviewed by Antti Koivisto. 7 8 * CMakeLists.txt: 9 * DerivedSources.make: 10 * GNUmakefile.am: 11 * GNUmakefile.list.am: 12 * WebCore.vcxproj/WebCore.vcxproj: 13 * WebCore.vcxproj/WebCore.vcxproj.filters: 14 * WebCore.xcodeproj/project.pbxproj: 15 * bindings/js/ScriptController.cpp: 16 (WebCore::ScriptController::canExecuteScripts): 17 * css/CSSDefaultStyleSheets.cpp: 18 * css/CSSDefaultStyleSheets.h: 19 * css/DocumentRuleSets.cpp: 20 (WebCore::DocumentRuleSets::appendAuthorStyleSheets): 21 (WebCore::DocumentRuleSets::collectFeatures): 22 * css/DocumentRuleSets.h: 23 * css/ElementRuleCollector.cpp: 24 (WebCore::ElementRuleCollector::matchUARules): 25 * css/StyleResolver.cpp: 26 (WebCore::StyleResolver::appendAuthorStyleSheets): 27 (WebCore::StyleResolver::styleForElement): 28 * css/view-source.css: Removed. 29 * dom/DOMImplementation.cpp: 30 (WebCore::DOMImplementation::createDocument): 31 * dom/DOMImplementation.h: 32 * dom/Document.cpp: 33 (WebCore::Document::Document): 34 * dom/Document.h: 35 * html/HTMLAttributeNames.in: 36 * html/HTMLFrameElementBase.cpp: 37 (WebCore::HTMLFrameElementBase::HTMLFrameElementBase): 38 (WebCore::HTMLFrameElementBase::openURL): 39 * html/HTMLFrameElementBase.h: 40 * html/HTMLViewSourceDocument.cpp: Removed. 41 * html/HTMLViewSourceDocument.h: Removed. 42 * html/parser/HTMLToken.h: 43 * html/parser/HTMLViewSourceParser.cpp: Removed. 44 * html/parser/HTMLViewSourceParser.h: Removed. 45 * html/parser/TextViewSourceParser.cpp: Removed. 46 * html/parser/TextViewSourceParser.h: Removed. 47 * inspector/InspectorOverlayPage.css: 48 (.tag-name): 49 (.node-id): 50 (.class-name): 51 * loader/DocumentWriter.cpp: 52 (WebCore::DocumentWriter::createDocument): 53 * loader/FrameLoader.cpp: 54 (WebCore::FrameLoader::receivedFirstData): 55 * page/Frame.cpp: 56 (WebCore::Frame::Frame): 57 * page/Frame.h: 58 * xml/DOMParser.cpp: 59 (WebCore::DOMParser::parseFromString): 60 * xml/XMLViewer.css: 61 (.tag): 62 * xml/XSLTProcessor.cpp: 63 (WebCore::XSLTProcessor::createDocumentFromSource): 64 1 65 2014-02-17 Simon Fraser <simon.fraser@apple.com> 2 66 -
trunk/Source/WebCore/DerivedSources.make
r164131 r164254 847 847 # user agent style sheets 848 848 849 USER_AGENT_STYLE_SHEETS = $(WebCore)/css/html.css $(WebCore)/css/quirks.css $(WebCore)/css/ view-source.css $(WebCore)/css/themeWin.css $(WebCore)/css/themeWinQuirks.css $(WebCore)/css/plugIns.css849 USER_AGENT_STYLE_SHEETS = $(WebCore)/css/html.css $(WebCore)/css/quirks.css $(WebCore)/css/themeWin.css $(WebCore)/css/themeWinQuirks.css $(WebCore)/css/plugIns.css 850 850 USER_AGENT_STYLE_SHEETS := $(USER_AGENT_STYLE_SHEETS) $(WebCore)/css/svg.css 851 851 -
trunk/Source/WebCore/GNUmakefile.am
r164239 r164254 276 276 $(WebCore)/css/mathml.css \ 277 277 $(WebCore)/css/quirks.css \ 278 $(WebCore)/css/view-source.css \279 278 $(WebCore)/css/svg.css \ 280 279 $(WebCore)/css/mediaControls.css \ … … 702 701 Source/WebCore/css/SVGCSSPropertyNames.in \ 703 702 Source/WebCore/css/SVGCSSValueKeywords.in \ 704 Source/WebCore/css/view-source.css \705 703 Source/WebCore/css/WebKitFontFamilyNames.in \ 706 704 Source/WebCore/dom/EventNames.in \ -
trunk/Source/WebCore/GNUmakefile.list.am
r164131 r164254 3527 3527 Source/WebCore/html/HTMLVideoElement.cpp \ 3528 3528 Source/WebCore/html/HTMLVideoElement.h \ 3529 Source/WebCore/html/HTMLViewSourceDocument.cpp \3530 Source/WebCore/html/HTMLViewSourceDocument.h \3531 3529 Source/WebCore/html/HiddenInputType.cpp \ 3532 3530 Source/WebCore/html/HiddenInputType.h \ … … 3602 3600 Source/WebCore/html/parser/HTMLTreeBuilder.cpp \ 3603 3601 Source/WebCore/html/parser/HTMLTreeBuilder.h \ 3604 Source/WebCore/html/parser/HTMLViewSourceParser.cpp \3605 Source/WebCore/html/parser/HTMLViewSourceParser.h \3606 3602 Source/WebCore/html/parser/InputStreamPreprocessor.h \ 3607 3603 Source/WebCore/html/parser/NestingLevelIncrementer.h \ 3608 3604 Source/WebCore/html/parser/TextDocumentParser.cpp \ 3609 3605 Source/WebCore/html/parser/TextDocumentParser.h \ 3610 Source/WebCore/html/parser/TextViewSourceParser.cpp \3611 Source/WebCore/html/parser/TextViewSourceParser.h \3612 3606 Source/WebCore/html/parser/XSSAuditor.cpp \ 3613 3607 Source/WebCore/html/parser/XSSAuditor.h \ -
trunk/Source/WebCore/WebCore.vcxproj/WebCore.vcxproj
r164131 r164254 15579 15579 <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Production|x64'">true</ExcludedFromBuild> 15580 15580 </ClCompile> 15581 <ClCompile Include="..\html\HTMLViewSourceDocument.cpp" />15582 15581 <ClCompile Include="..\html\ImageData.cpp" /> 15583 15582 <ClCompile Include="..\html\ImageDocument.cpp" /> … … 15631 15630 <ClCompile Include="..\html\parser\HTMLTokenizer.cpp" /> 15632 15631 <ClCompile Include="..\html\parser\HTMLTreeBuilder.cpp" /> 15633 <ClCompile Include="..\html\parser\HTMLViewSourceParser.cpp" />15634 15632 <ClCompile Include="..\html\parser\TextDocumentParser.cpp" /> 15635 <ClCompile Include="..\html\parser\TextViewSourceParser.cpp" />15636 15633 <ClCompile Include="..\html\parser\XSSAuditor.cpp" /> 15637 15634 <ClCompile Include="..\html\parser\XSSAuditorDelegate.cpp" /> … … 20325 20322 <ClInclude Include="..\html\HTMLUListElement.h" /> 20326 20323 <ClInclude Include="..\html\HTMLVideoElement.h" /> 20327 <ClInclude Include="..\html\HTMLViewSourceDocument.h" />20328 20324 <ClInclude Include="..\html\ImageData.h" /> 20329 20325 <ClInclude Include="..\html\ImageDocument.h" /> … … 20386 20382 <ClInclude Include="..\html\parser\HTMLTokenizer.h" /> 20387 20383 <ClInclude Include="..\html\parser\HTMLTreeBuilder.h" /> 20388 <ClInclude Include="..\html\parser\HTMLViewSourceParser.h" />20389 20384 <ClInclude Include="..\html\parser\InputStreamPreprocessor.h" /> 20390 20385 <ClInclude Include="..\html\parser\NestingLevelIncrementer.h" /> 20391 20386 <ClInclude Include="..\html\parser\TextDocumentParser.h" /> 20392 <ClInclude Include="..\html\parser\TextViewSourceParser.h" />20393 20387 <ClInclude Include="..\html\parser\XSSAuditor.h" /> 20394 20388 <ClInclude Include="..\html\parser\XSSAuditorDelegate.h" /> … … 20841 20835 <None Include="..\css\themeWin.css" /> 20842 20836 <None Include="..\css\themeWinQuirks.css" /> 20843 <None Include="..\css\view-source.css" />20844 20837 <None Include="..\Modules\mediacontrols\mediaControlsApple.css" /> 20845 20838 <None Include="..\Modules\mediacontrols\mediaControlsApple.js" /> -
trunk/Source/WebCore/WebCore.vcxproj/WebCore.vcxproj.filters
r164131 r164254 3964 3964 <Filter>html</Filter> 3965 3965 </ClCompile> 3966 <ClCompile Include="..\html\HTMLViewSourceDocument.cpp">3967 <Filter>html</Filter>3968 </ClCompile>3969 3966 <ClCompile Include="..\html\ImageData.cpp"> 3970 3967 <Filter>html</Filter> … … 4120 4117 <Filter>html\parser</Filter> 4121 4118 </ClCompile> 4122 <ClCompile Include="..\html\parser\HTMLViewSourceParser.cpp">4123 <Filter>html\parser</Filter>4124 </ClCompile>4125 4119 <ClCompile Include="..\html\parser\TextDocumentParser.cpp"> 4126 <Filter>html\parser</Filter>4127 </ClCompile>4128 <ClCompile Include="..\html\parser\TextViewSourceParser.cpp">4129 4120 <Filter>html\parser</Filter> 4130 4121 </ClCompile> … … 10959 10950 <Filter>html</Filter> 10960 10951 </ClInclude> 10961 <ClInclude Include="..\html\HTMLViewSourceDocument.h">10962 <Filter>html</Filter>10963 </ClInclude>10964 10952 <ClInclude Include="..\html\ImageData.h"> 10965 10953 <Filter>html</Filter> … … 11142 11130 <Filter>html\parser</Filter> 11143 11131 </ClInclude> 11144 <ClInclude Include="..\html\parser\HTMLViewSourceParser.h">11145 <Filter>html\parser</Filter>11146 </ClInclude>11147 11132 <ClInclude Include="..\html\parser\InputStreamPreprocessor.h"> 11148 11133 <Filter>html\parser</Filter> … … 11152 11137 </ClInclude> 11153 11138 <ClInclude Include="..\html\parser\TextDocumentParser.h"> 11154 <Filter>html\parser</Filter>11155 </ClInclude>11156 <ClInclude Include="..\html\parser\TextViewSourceParser.h">11157 11139 <Filter>html\parser</Filter> 11158 11140 </ClInclude> … … 14912 14894 <None Include="WebCorePreBuild.cmd" /> 14913 14895 <None Include="..\css\mathml.css"> 14914 <Filter>css</Filter>14915 </None>14916 <None Include="..\css\view-source.css">14917 14896 <Filter>css</Filter> 14918 14897 </None> -
trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj
r164144 r164254 3364 3364 977B3877122883E900B81FF8 /* HTMLTokenizer.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 977B385E122883E900B81FF8 /* HTMLTokenizer.cpp */; }; 3365 3365 977B3878122883E900B81FF8 /* HTMLTokenizer.h in Headers */ = {isa = PBXBuildFile; fileRef = 977B385F122883E900B81FF8 /* HTMLTokenizer.h */; }; 3366 977B3879122883E900B81FF8 /* HTMLViewSourceParser.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 977B3860122883E900B81FF8 /* HTMLViewSourceParser.cpp */; };3367 977B387A122883E900B81FF8 /* HTMLViewSourceParser.h in Headers */ = {isa = PBXBuildFile; fileRef = 977B3861122883E900B81FF8 /* HTMLViewSourceParser.h */; };3368 3366 977E2DCD12F0E28300C13379 /* HTMLSourceTracker.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 977E2DCB12F0E28300C13379 /* HTMLSourceTracker.cpp */; }; 3369 3367 977E2DCE12F0E28300C13379 /* HTMLSourceTracker.h in Headers */ = {isa = PBXBuildFile; fileRef = 977E2DCC12F0E28300C13379 /* HTMLSourceTracker.h */; }; … … 3459 3457 97BC84841236FD93000C6161 /* TextDocumentParser.h in Headers */ = {isa = PBXBuildFile; fileRef = 97BC84821236FD93000C6161 /* TextDocumentParser.h */; }; 3460 3458 97BC849B12370A4B000C6161 /* HTMLInputStream.h in Headers */ = {isa = PBXBuildFile; fileRef = 97BC849A12370A4B000C6161 /* HTMLInputStream.h */; }; 3461 97BC84A412370DC8000C6161 /* TextViewSourceParser.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 97BC84A212370DC7000C6161 /* TextViewSourceParser.cpp */; };3462 97BC84A512370DC8000C6161 /* TextViewSourceParser.h in Headers */ = {isa = PBXBuildFile; fileRef = 97BC84A312370DC8000C6161 /* TextViewSourceParser.h */; };3463 3459 97BC84B312371180000C6161 /* TextDocument.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 97BC84B112371180000C6161 /* TextDocument.cpp */; }; 3464 3460 97BC84B412371180000C6161 /* TextDocument.h in Headers */ = {isa = PBXBuildFile; fileRef = 97BC84B212371180000C6161 /* TextDocument.h */; }; … … 5191 5187 BCCBAD400C18C14200CE890F /* JSHTMLCollection.cpp in Sources */ = {isa = PBXBuildFile; fileRef = BCCBAD3E0C18C14200CE890F /* JSHTMLCollection.cpp */; }; 5192 5188 BCCBAD410C18C14200CE890F /* JSHTMLCollection.h in Headers */ = {isa = PBXBuildFile; fileRef = BCCBAD3F0C18C14200CE890F /* JSHTMLCollection.h */; }; 5193 BCCD74DC0A4C8D35005FDA6D /* HTMLViewSourceDocument.h in Headers */ = {isa = PBXBuildFile; fileRef = BCCD74DB0A4C8D35005FDA6D /* HTMLViewSourceDocument.h */; };5194 BCCD74E50A4C8DDF005FDA6D /* HTMLViewSourceDocument.cpp in Sources */ = {isa = PBXBuildFile; fileRef = BCCD74E40A4C8DDF005FDA6D /* HTMLViewSourceDocument.cpp */; };5195 5189 BCCFBAE80B5152ED0001F1D7 /* DocumentParser.h in Headers */ = {isa = PBXBuildFile; fileRef = BCCFBAE70B5152ED0001F1D7 /* DocumentParser.h */; settings = {ATTRIBUTES = (Private, ); }; }; 5196 5190 BCD0E0FA0E972C3500265DEA /* SecurityOrigin.cpp in Sources */ = {isa = PBXBuildFile; fileRef = BCD0E0F70E972C3500265DEA /* SecurityOrigin.cpp */; }; … … 10298 10292 977B385E122883E900B81FF8 /* HTMLTokenizer.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = HTMLTokenizer.cpp; path = parser/HTMLTokenizer.cpp; sourceTree = "<group>"; }; 10299 10293 977B385F122883E900B81FF8 /* HTMLTokenizer.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = HTMLTokenizer.h; path = parser/HTMLTokenizer.h; sourceTree = "<group>"; }; 10300 977B3860122883E900B81FF8 /* HTMLViewSourceParser.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = HTMLViewSourceParser.cpp; path = parser/HTMLViewSourceParser.cpp; sourceTree = "<group>"; };10301 977B3861122883E900B81FF8 /* HTMLViewSourceParser.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = HTMLViewSourceParser.h; path = parser/HTMLViewSourceParser.h; sourceTree = "<group>"; };10302 10294 977E2DCB12F0E28300C13379 /* HTMLSourceTracker.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = HTMLSourceTracker.cpp; path = parser/HTMLSourceTracker.cpp; sourceTree = "<group>"; }; 10303 10295 977E2DCC12F0E28300C13379 /* HTMLSourceTracker.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = HTMLSourceTracker.h; path = parser/HTMLSourceTracker.h; sourceTree = "<group>"; }; … … 10409 10401 97BC84821236FD93000C6161 /* TextDocumentParser.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = TextDocumentParser.h; path = parser/TextDocumentParser.h; sourceTree = "<group>"; }; 10410 10402 97BC849A12370A4B000C6161 /* HTMLInputStream.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = HTMLInputStream.h; path = parser/HTMLInputStream.h; sourceTree = "<group>"; }; 10411 97BC84A212370DC7000C6161 /* TextViewSourceParser.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = TextViewSourceParser.cpp; path = parser/TextViewSourceParser.cpp; sourceTree = "<group>"; };10412 97BC84A312370DC8000C6161 /* TextViewSourceParser.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = TextViewSourceParser.h; path = parser/TextViewSourceParser.h; sourceTree = "<group>"; };10413 10403 97BC84B112371180000C6161 /* TextDocument.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = TextDocument.cpp; sourceTree = "<group>"; }; 10414 10404 97BC84B212371180000C6161 /* TextDocument.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TextDocument.h; sourceTree = "<group>"; }; … … 12193 12183 BC5EBA0E0E823E4700B25965 /* KeyframeList.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = KeyframeList.cpp; path = style/KeyframeList.cpp; sourceTree = "<group>"; }; 12194 12184 BC5EBA0F0E823E4700B25965 /* KeyframeList.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = KeyframeList.h; path = style/KeyframeList.h; sourceTree = "<group>"; }; 12195 BC5EC1760A507E3E006007F5 /* view-source.css */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = text; path = "view-source.css"; sourceTree = "<group>"; };12196 12185 BC6049CB0DB560C200204739 /* CSSCanvasValue.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CSSCanvasValue.h; sourceTree = "<group>"; }; 12197 12186 BC604A420DB5634E00204739 /* CSSCanvasValue.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = CSSCanvasValue.cpp; sourceTree = "<group>"; }; … … 12388 12377 BCCBAD3E0C18C14200CE890F /* JSHTMLCollection.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = JSHTMLCollection.cpp; sourceTree = "<group>"; }; 12389 12378 BCCBAD3F0C18C14200CE890F /* JSHTMLCollection.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = JSHTMLCollection.h; sourceTree = "<group>"; }; 12390 BCCD74DB0A4C8D35005FDA6D /* HTMLViewSourceDocument.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = HTMLViewSourceDocument.h; sourceTree = "<group>"; };12391 BCCD74E40A4C8DDF005FDA6D /* HTMLViewSourceDocument.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = HTMLViewSourceDocument.cpp; sourceTree = "<group>"; };12392 12379 BCCFBAE70B5152ED0001F1D7 /* DocumentParser.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = DocumentParser.h; sourceTree = "<group>"; }; 12393 12380 BCD0E0F70E972C3500265DEA /* SecurityOrigin.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = SecurityOrigin.cpp; sourceTree = "<group>"; }; … … 17355 17342 E44613990CD6331000FADA75 /* HTMLVideoElement.h */, 17356 17343 E446139A0CD6331000FADA75 /* HTMLVideoElement.idl */, 17357 BCCD74E40A4C8DDF005FDA6D /* HTMLViewSourceDocument.cpp */,17358 BCCD74DB0A4C8D35005FDA6D /* HTMLViewSourceDocument.h */,17359 17344 A77979130D6B9D0C003851B9 /* ImageData.cpp */, 17360 17345 A77979140D6B9D0C003851B9 /* ImageData.h */, … … 17820 17805 977B37211228721700B81FF8 /* HTMLTreeBuilder.cpp */, 17821 17806 977B37221228721700B81FF8 /* HTMLTreeBuilder.h */, 17822 977B3860122883E900B81FF8 /* HTMLViewSourceParser.cpp */,17823 977B3861122883E900B81FF8 /* HTMLViewSourceParser.h */,17824 17807 A8805AF116C96AEA000E9D98 /* InputStreamPreprocessor.h */, 17825 17808 8A309C9E123950BE00CB9204 /* NestingLevelIncrementer.h */, 17826 17809 97BC84811236FD93000C6161 /* TextDocumentParser.cpp */, 17827 17810 97BC84821236FD93000C6161 /* TextDocumentParser.h */, 17828 97BC84A212370DC7000C6161 /* TextViewSourceParser.cpp */,17829 97BC84A312370DC8000C6161 /* TextViewSourceParser.h */,17830 17811 977E2E0B12F0FC9C00C13379 /* XSSAuditor.cpp */, 17831 17812 977E2E0C12F0FC9C00C13379 /* XSSAuditor.h */, … … 21534 21515 FB484F4A171F821E00040755 /* TransformFunctions.cpp */, 21535 21516 FB484F4B171F821E00040755 /* TransformFunctions.h */, 21536 BC5EC1760A507E3E006007F5 /* view-source.css */,21537 21517 3FFFF9AB159D9B060020BBD5 /* ViewportStyleResolver.cpp */, 21538 21518 3FFFF9AC159D9B060020BBD5 /* ViewportStyleResolver.h */, … … 23859 23839 E44613AB0CD6331000FADA75 /* HTMLVideoElement.h in Headers */, 23860 23840 07277E4D17D018CC0015534D /* JSMediaStream.h in Headers */, 23861 BCCD74DC0A4C8D35005FDA6D /* HTMLViewSourceDocument.h in Headers */,23862 977B387A122883E900B81FF8 /* HTMLViewSourceParser.h in Headers */,23863 23841 514C76710CE923A1007EF3CD /* HTTPHeaderMap.h in Headers */, 23864 23842 073AB4B817F92ECF006E0D6F /* JSCapabilityRange.h in Headers */, … … 25657 25635 B1AD4E7413A12A4600846B27 /* TextTrackLoader.h in Headers */, 25658 25636 498770F11242C535002226BA /* Texture.h in Headers */, 25659 97BC84A512370DC8000C6161 /* TextViewSourceParser.h in Headers */,25660 25637 BCE658FF0EA9248A007E4533 /* Theme.h in Headers */, 25661 25638 BCE659E60EA92FB2007E4533 /* ThemeMac.h in Headers */, … … 27204 27181 E44613AA0CD6331000FADA75 /* HTMLVideoElement.cpp in Sources */, 27205 27182 E125F8381822F1EB00D84CD9 /* CryptoAlgorithmHMACMac.cpp in Sources */, 27206 BCCD74E50A4C8DDF005FDA6D /* HTMLViewSourceDocument.cpp in Sources */,27207 977B3879122883E900B81FF8 /* HTMLViewSourceParser.cpp in Sources */,27208 27183 E1C266D818317AB4003F8B33 /* CryptoAlgorithmRSASSA_PKCS1_v1_5Mac.cpp in Sources */, 27209 27184 A584FE2F1864CB8400843B10 /* WebInjectedScriptManager.cpp in Sources */, … … 28892 28867 CD1E7347167BC78E009A885D /* TextTrackRepresentation.cpp in Sources */, 28893 28868 498770F01242C535002226BA /* Texture.cpp in Sources */, 28894 97BC84A412370DC8000C6161 /* TextViewSourceParser.cpp in Sources */,28895 28869 BCE65D320EAD1211007E4533 /* Theme.cpp in Sources */, 28896 28870 E4C3B1FC0F0E4170009693F6 /* TileCache.mm in Sources */, -
trunk/Source/WebCore/bindings/js/ScriptController.cpp
r163725 r164254 487 487 } 488 488 489 if (m_frame.document() && m_frame.document()->isViewSource()) {490 ASSERT(m_frame.document()->securityOrigin()->isUnique());491 return true;492 }493 494 489 if (!m_frame.page()) 495 490 return false; -
trunk/Source/WebCore/css/CSSDefaultStyleSheets.cpp
r163440 r164254 48 48 RuleSet* CSSDefaultStyleSheets::defaultQuirksStyle; 49 49 RuleSet* CSSDefaultStyleSheets::defaultPrintStyle; 50 RuleSet* CSSDefaultStyleSheets::defaultViewSourceStyle;51 50 52 51 StyleSheetContents* CSSDefaultStyleSheets::simpleDefaultStyleSheet; … … 146 145 } 147 146 148 RuleSet* CSSDefaultStyleSheets::viewSourceStyle()149 {150 if (!defaultViewSourceStyle) {151 static StyleSheetContents* viewSourceStyleSheet = parseUASheet(sourceUserAgentStyleSheet, sizeof(sourceUserAgentStyleSheet));152 defaultViewSourceStyle = std::make_unique<RuleSet>().release();153 defaultViewSourceStyle->addRulesFromSheet(viewSourceStyleSheet, screenEval());154 }155 return defaultViewSourceStyle;156 }157 158 159 147 void CSSDefaultStyleSheets::ensureDefaultStyleSheetsForElement(Element* element, bool& changedDefaultStyle) 160 148 { -
trunk/Source/WebCore/css/CSSDefaultStyleSheets.h
r141844 r164254 35 35 static RuleSet* defaultQuirksStyle; 36 36 static RuleSet* defaultPrintStyle; 37 static RuleSet* defaultViewSourceStyle;38 37 39 38 static StyleSheetContents* simpleDefaultStyleSheet; … … 50 49 static void loadSimpleDefaultStyle(); 51 50 static void initDefaultStyle(Element*); 52 static RuleSet* viewSourceStyle();53 51 }; 54 52 -
trunk/Source/WebCore/css/DocumentRuleSets.cpp
r163378 r164254 84 84 } 85 85 86 void DocumentRuleSets::appendAuthorStyleSheets(unsigned firstNew, const Vector<RefPtr<CSSStyleSheet>>& styleSheets, MediaQueryEvaluator* medium, InspectorCSSOMWrappers& inspectorCSSOMWrappers, bool isViewSource,StyleResolver* resolver)86 void DocumentRuleSets::appendAuthorStyleSheets(unsigned firstNew, const Vector<RefPtr<CSSStyleSheet>>& styleSheets, MediaQueryEvaluator* medium, InspectorCSSOMWrappers& inspectorCSSOMWrappers, StyleResolver* resolver) 87 87 { 88 88 // This handles sheets added to the end of the stylesheet list only. In other cases the style resolver … … 98 98 } 99 99 m_authorStyle->shrinkToFit(); 100 collectFeatures( isViewSource);100 collectFeatures(); 101 101 } 102 102 103 void DocumentRuleSets::collectFeatures( bool isViewSource)103 void DocumentRuleSets::collectFeatures() 104 104 { 105 105 m_features.clear(); … … 111 111 if (m_authorStyle) 112 112 m_features.add(m_authorStyle->features()); 113 if (isViewSource)114 m_features.add(CSSDefaultStyleSheets::viewSourceStyle()->features());115 116 113 if (m_userStyle) 117 114 m_features.add(m_userStyle->features()); -
trunk/Source/WebCore/css/DocumentRuleSets.h
r163378 r164254 52 52 void initUserStyle(DocumentStyleSheetCollection&, const MediaQueryEvaluator&, StyleResolver&); 53 53 void resetAuthorStyle(); 54 void appendAuthorStyleSheets(unsigned firstNew, const Vector<RefPtr<CSSStyleSheet>>&, MediaQueryEvaluator*, InspectorCSSOMWrappers&, bool isViewSource,StyleResolver*);54 void appendAuthorStyleSheets(unsigned firstNew, const Vector<RefPtr<CSSStyleSheet>>&, MediaQueryEvaluator*, InspectorCSSOMWrappers&, StyleResolver*); 55 55 56 void collectFeatures( bool isViewSource);56 void collectFeatures(); 57 57 58 58 private: -
trunk/Source/WebCore/css/ElementRuleCollector.cpp
r164251 r164254 258 258 if (m_element.document().inQuirksMode()) 259 259 matchUARules(CSSDefaultStyleSheets::defaultQuirksStyle); 260 261 // 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.262 if (m_element.document().isViewSource())263 matchUARules(CSSDefaultStyleSheets::viewSourceStyle());264 260 } 265 261 -
trunk/Source/WebCore/css/StyleResolver.cpp
r164224 r164254 305 305 void StyleResolver::appendAuthorStyleSheets(unsigned firstNew, const Vector<RefPtr<CSSStyleSheet>>& styleSheets) 306 306 { 307 m_ruleSets.appendAuthorStyleSheets(firstNew, styleSheets, m_medium.get(), m_inspectorCSSOMWrappers, document().isViewSource(),this);307 m_ruleSets.appendAuthorStyleSheets(firstNew, styleSheets, m_medium.get(), m_inspectorCSSOMWrappers, this); 308 308 if (auto renderView = document().renderView()) 309 309 renderView->style().font().update(fontSelector()); … … 792 792 CSSDefaultStyleSheets::ensureDefaultStyleSheetsForElement(element, needsCollection); 793 793 if (needsCollection) 794 m_ruleSets.collectFeatures( document().isViewSource());794 m_ruleSets.collectFeatures(); 795 795 796 796 ElementRuleCollector collector(*element, state.style(), m_ruleSets, m_selectorFilter); -
trunk/Source/WebCore/dom/DOMImplementation.cpp
r163440 r164254 36 36 #include "FTPDirectoryDocument.h" 37 37 #include "HTMLDocument.h" 38 #include "HTMLViewSourceDocument.h"39 38 #include "Image.h" 40 39 #include "ImageDocument.h" … … 301 300 } 302 301 303 PassRefPtr<Document> DOMImplementation::createDocument(const String& type, Frame* frame, const URL& url, bool inViewSourceMode) 304 { 305 if (inViewSourceMode) 306 return HTMLViewSourceDocument::create(frame, url, type); 307 302 PassRefPtr<Document> DOMImplementation::createDocument(const String& type, Frame* frame, const URL& url) 303 { 308 304 // Plugins cannot take HTML and XHTML from us, and we don't even need to initialize the plugin database for those. 309 305 if (type == "text/html") -
trunk/Source/WebCore/dom/DOMImplementation.h
r162691 r164254 65 65 66 66 // Other methods (not part of DOM) 67 static PassRefPtr<Document> createDocument(const String& MIMEType, Frame*, const URL& , bool inViewSourceMode);67 static PassRefPtr<Document> createDocument(const String& MIMEType, Frame*, const URL&); 68 68 69 69 static bool isXMLMIMEType(const String& MIMEType); -
trunk/Source/WebCore/dom/Document.cpp
r164251 r164254 459 459 , m_isSynthesized(constructionFlags & Synthesized) 460 460 , m_isNonRenderedPlaceholder(constructionFlags & NonRenderedPlaceholder) 461 , m_isViewSource(false)462 461 , m_sawElementsInKnownNamespaces(false) 463 462 , m_isSrcdocDocument(false) … … 1917 1916 marginBottom = style->marginBottom().isAuto() ? marginBottom : intValueForLength(style->marginBottom(), width, view); 1918 1917 marginLeft = style->marginLeft().isAuto() ? marginLeft : intValueForLength(style->marginLeft(), width, view); 1919 }1920 1921 void Document::setIsViewSource(bool isViewSource)1922 {1923 m_isViewSource = isViewSource;1924 if (!m_isViewSource)1925 return;1926 1927 setSecurityOrigin(SecurityOrigin::createUnique());1928 1918 } 1929 1919 -
trunk/Source/WebCore/dom/Document.h
r164248 r164254 517 517 StyleResolver* styleResolverIfExists() const { return m_styleResolver.get(); } 518 518 519 bool isViewSource() const { return m_isViewSource; }520 void setIsViewSource(bool);521 522 519 bool sawElementsInKnownNamespaces() const { return m_sawElementsInKnownNamespaces; } 523 520 … … 1538 1535 bool m_isNonRenderedPlaceholder; 1539 1536 1540 bool m_isViewSource;1541 1537 bool m_sawElementsInKnownNamespaces; 1542 1538 bool m_isSrcdocDocument; -
trunk/Source/WebCore/html/HTMLAttributeNames.in
r163483 r164254 342 342 valuetype 343 343 version 344 viewsource345 344 vlink 346 345 vspace -
trunk/Source/WebCore/html/HTMLFrameElementBase.cpp
r162272 r164254 50 50 , m_marginWidth(-1) 51 51 , m_marginHeight(-1) 52 , m_viewSource(false)53 52 { 54 53 setHasCustomStyleResolveCallbacks(); … … 88 87 89 88 parentFrame->loader().subframeLoader().requestFrame(*this, m_URL, m_frameName, lockHistory, lockBackForwardList); 90 if (contentFrame())91 contentFrame()->setInViewSourceMode(viewSourceMode());92 89 } 93 90 -
trunk/Source/WebCore/html/HTMLFrameElementBase.h
r164131 r164254 64 64 virtual bool isFrameElementBase() const override { return true; } 65 65 66 bool viewSourceMode() const { return m_viewSource; }67 68 66 void setNameAndOpenURL(); 69 67 void openURL(bool lockHistory = true, bool lockBackForwardList = true); … … 76 74 int m_marginWidth; 77 75 int m_marginHeight; 78 79 bool m_viewSource;80 76 }; 81 77 -
trunk/Source/WebCore/html/parser/HTMLToken.h
r162275 r164254 115 115 } 116 116 117 /* Range and offset methods exposed for HTMLSourceTracker and HTMLViewSourceParser*/117 /* Range and offset methods exposed for HTMLSourceTracker */ 118 118 int startIndex() const { return m_range.start; } 119 119 int endIndex() const { return m_range.end; } -
trunk/Source/WebCore/inspector/InspectorOverlayPage.css
r157199 r164254 57 57 58 58 .tag-name { 59 /* Keep this in sync with view-source.css (.webkit-html-tag-name) */59 /* Keep this in sync with XMLViewer.css (.tag) */ 60 60 color: rgb(136, 18, 128); 61 61 } 62 62 63 63 .node-id { 64 /* Keep this in sync with view-source.css (.webkit-html-attribute-value) */64 /* Keep this in sync with XMLViewer.css (.attribute-value) */ 65 65 color: rgb(26, 26, 166); 66 66 } 67 67 68 68 .class-name { 69 /* Keep this in sync with view-source.css (.webkit-html-attribute-name) */69 /* Keep this in sync with XMLViewer.css (.attribute-name) */ 70 70 color: rgb(153, 69, 0); 71 71 } -
trunk/Source/WebCore/loader/DocumentWriter.cpp
r163466 r164254 113 113 if (!m_frame->loader().client().hasHTMLView()) 114 114 return Document::createNonRenderedPlaceholder(m_frame, url); 115 return DOMImplementation::createDocument(m_mimeType, m_frame, url , m_frame->inViewSourceMode());115 return DOMImplementation::createDocument(m_mimeType, m_frame, url); 116 116 } 117 117 -
trunk/Source/WebCore/loader/FrameLoader.cpp
r163983 r164254 664 664 if (!m_documentLoader) 665 665 return; 666 if (m_frame.document()->isViewSource())667 return;668 666 669 667 double delay; -
trunk/Source/WebCore/page/Frame.cpp
r163712 r164254 177 177 , m_orientation(0) 178 178 #endif 179 , m_inViewSourceMode(false)180 179 , m_activeDOMObjectsAndAnimationsSuspendedCount(0) 181 180 { -
trunk/Source/WebCore/page/Frame.h
r163920 r164254 182 182 FloatSize resizePageRectsKeepingRatio(const FloatSize& originalSize, const FloatSize& expectedSize); 183 183 184 bool inViewSourceMode() const;185 void setInViewSourceMode(bool = true);186 187 184 void setDocument(PassRefPtr<Document>); 188 185 … … 339 336 #endif 340 337 341 bool m_inViewSourceMode;342 343 338 #if USE(TILED_BACKING_STORE) 344 339 // FIXME: The tiled backing store belongs in FrameView, not Frame. … … 413 408 } 414 409 415 inline bool Frame::inViewSourceMode() const416 {417 return m_inViewSourceMode;418 }419 420 inline void Frame::setInViewSourceMode(bool mode)421 {422 m_inViewSourceMode = mode;423 }424 425 410 inline FrameTree& Frame::tree() const 426 411 { -
trunk/Source/WebCore/xml/DOMParser.cpp
r156550 r164254 37 37 } 38 38 39 RefPtr<Document> doc = DOMImplementation::createDocument(contentType, 0, URL() , false);39 RefPtr<Document> doc = DOMImplementation::createDocument(contentType, 0, URL()); 40 40 doc->setContent(str); 41 41 return doc.release(); -
trunk/Source/WebCore/xml/XMLViewer.css
r162269 r164254 60 60 61 61 .tag { 62 /* Keep this in sync with inspector.css (. webkit-html-tag) */62 /* Keep this in sync with inspector.css (.tag-name) */ 63 63 color: rgb(136, 18, 128); 64 64 } -
trunk/Source/WebCore/xml/XSLTProcessor.cpp
r157002 r164254 80 80 transformTextStringToXHTMLDocumentString(documentSource); 81 81 } else 82 result = DOMImplementation::createDocument(sourceMIMEType, frame, sourceIsDocument ? ownerDocument->url() : URL() , false);82 result = DOMImplementation::createDocument(sourceMIMEType, frame, sourceIsDocument ? ownerDocument->url() : URL()); 83 83 84 84 // Before parsing, we need to save & detach the old document and get the new document -
trunk/Source/WebKit/mac/ChangeLog
r164245 r164254 1 2014-02-17 Anders Carlsson <andersca@apple.com> 2 3 Remove view source code 4 https://bugs.webkit.org/show_bug.cgi?id=127233 5 6 Reviewed by Antti Koivisto. 7 8 * WebView/WebView.mm: 9 * WebView/WebViewPrivate.h: 10 1 11 2014-02-17 Sergio Correia <sergio.correia@openbossa.org> 2 12 -
trunk/Source/WebKit/mac/WebView/WebView.mm
r164152 r164254 3332 3332 #endif // !PLATFORM(IOS) 3333 3333 3334 - (void)_setInViewSourceMode:(BOOL)flag3335 {3336 if (Frame* mainFrame = [self _mainCoreFrame])3337 mainFrame->setInViewSourceMode(flag);3338 }3339 3340 - (BOOL)_inViewSourceMode3341 {3342 Frame* mainFrame = [self _mainCoreFrame];3343 return mainFrame && mainFrame->inViewSourceMode();3344 }3345 3346 3334 - (void)_setUseFastImageScalingMode:(BOOL)flag 3347 3335 { -
trunk/Source/WebKit/mac/WebView/WebViewPrivate.h
r162504 r164254 698 698 699 699 /*! 700 @method _setInViewSourceMode:701 @abstract Used to place a WebView into a special source-viewing mode.702 */703 - (void)_setInViewSourceMode:(BOOL)flag;704 705 /*!706 @method _inViewSourceMode;707 @abstract Whether or not the WebView is in source-view mode for HTML.708 */709 - (BOOL)_inViewSourceMode;710 711 /*!712 700 @method _attachScriptDebuggerToAllFrames 713 701 @abstract Attaches a script debugger to all frames belonging to the receiver. -
trunk/Source/WebKit/win/ChangeLog
r164245 r164254 1 2014-02-17 Anders Carlsson <andersca@apple.com> 2 3 Remove view source code 4 https://bugs.webkit.org/show_bug.cgi?id=127233 5 6 Reviewed by Antti Koivisto. 7 8 * WebFrame.cpp: 9 (WebFrame::inViewSourceMode): 10 (WebFrame::setInViewSourceMode): 11 * WebView.cpp: 12 (WebView::setInViewSourceMode): 13 (WebView::inViewSourceMode): 14 1 15 2014-02-17 Sergio Correia <sergio.correia@openbossa.org> 2 16 -
trunk/Source/WebKit/win/WebFrame.cpp
r163903 r164254 1114 1114 HRESULT WebFrame::inViewSourceMode(BOOL* flag) 1115 1115 { 1116 if (!flag) { 1117 ASSERT_NOT_REACHED(); 1118 return E_POINTER; 1119 } 1120 1121 *flag = FALSE; 1122 1123 Frame* coreFrame = core(this); 1124 if (!coreFrame) 1125 return E_FAIL; 1126 1127 *flag = coreFrame->inViewSourceMode() ? TRUE : FALSE; 1128 return S_OK; 1116 return E_NOTIMPL; 1129 1117 } 1130 1118 1131 1119 HRESULT WebFrame::setInViewSourceMode(BOOL flag) 1132 1120 { 1133 Frame* coreFrame = core(this); 1134 if (!coreFrame) 1135 return E_FAIL; 1136 1137 coreFrame->setInViewSourceMode(!!flag); 1138 return S_OK; 1121 return E_NOTIMPL; 1139 1122 } 1140 1123 -
trunk/Source/WebKit/win/WebView.cpp
r164141 r164254 5115 5115 /* [in] */ BOOL flag) 5116 5116 { 5117 if (!m_mainFrame) 5118 return E_FAIL; 5119 5120 return m_mainFrame->setInViewSourceMode(flag); 5117 return E_NOTIMPL; 5121 5118 } 5122 5119 … … 5124 5121 /* [retval][out] */ BOOL* flag) 5125 5122 { 5126 if (!m_mainFrame) 5127 return E_FAIL; 5128 5129 return m_mainFrame->inViewSourceMode(flag); 5123 return E_NOTIMPL; 5130 5124 } 5131 5125 -
trunk/Source/WebKit2/ChangeLog
r164245 r164254 1 2014-02-17 Anders Carlsson <andersca@apple.com> 2 3 Remove view source code 4 https://bugs.webkit.org/show_bug.cgi?id=127233 5 6 Reviewed by Antti Koivisto. 7 8 * UIProcess/WebPageProxy.cpp: 9 (WebKit::WebPageProxy::WebPageProxy): 10 * UIProcess/WebPageProxy.h: 11 * WebProcess/WebPage/WebPage.cpp: 12 * WebProcess/WebPage/WebPage.h: 13 * WebProcess/WebPage/WebPage.messages.in: 14 1 15 2014-02-17 Sergio Correia <sergio.correia@openbossa.org> 2 16 -
trunk/Source/WebKit2/UIProcess/WebPageProxy.cpp
r164181 r164254 325 325 , m_rubberBandsAtBottom(true) 326 326 , m_backgroundExtendsBeyondPage(false) 327 , m_mainFrameInViewSourceMode(false)328 327 , m_shouldRecordNavigationSnapshots(false) 329 328 , m_pageCount(0) … … 4454 4453 #endif // PLATFORM(GTK) 4455 4454 4456 void WebPageProxy::setMainFrameInViewSourceMode(bool mainFrameInViewSourceMode)4457 {4458 if (m_mainFrameInViewSourceMode == mainFrameInViewSourceMode)4459 return;4460 4461 m_mainFrameInViewSourceMode = mainFrameInViewSourceMode;4462 4463 if (isValid())4464 m_process->send(Messages::WebPage::SetMainFrameInViewSourceMode(mainFrameInViewSourceMode), m_pageID);4465 }4466 4467 4455 void WebPageProxy::didSaveToPageCache() 4468 4456 { -
trunk/Source/WebKit2/UIProcess/WebPageProxy.h
r164230 r164254 862 862 void setAutoSizingShouldExpandToViewHeight(bool); 863 863 864 bool mainFrameInViewSourceMode() const { return m_mainFrameInViewSourceMode; }865 void setMainFrameInViewSourceMode(bool);866 867 864 void didReceiveAuthenticationChallengeProxy(uint64_t frameID, PassRefPtr<AuthenticationChallengeProxy>); 868 865 … … 1396 1393 bool m_backgroundExtendsBeyondPage; 1397 1394 1398 bool m_mainFrameInViewSourceMode;1399 1400 1395 bool m_shouldRecordNavigationSnapshots; 1401 1396 -
trunk/Source/WebKit2/WebProcess/WebPage/WebPage.cpp
r164192 r164254 3842 3842 } 3843 3843 3844 void WebPage::setMainFrameInViewSourceMode(bool inViewSourceMode)3845 {3846 m_mainFrame->coreFrame()->setInViewSourceMode(inViewSourceMode);3847 }3848 3849 3844 void WebPage::setMinimumLayoutSize(const IntSize& minimumLayoutSize) 3850 3845 { -
trunk/Source/WebKit2/WebProcess/WebPage/WebPage.h
r164192 r164254 888 888 bool canHandleUserEvents() const; 889 889 890 void setMainFrameInViewSourceMode(bool);891 892 890 static bool platformCanHandleRequest(const WebCore::ResourceRequest&); 893 891 -
trunk/Source/WebKit2/WebProcess/WebPage/WebPage.messages.in
r164192 r164254 322 322 SetAcceleratedCompositingWindowId(int64_t id) 323 323 #endif 324 325 SetMainFrameInViewSourceMode(bool inViewSourceMode) 326 324 327 325 SetScrollPinningBehavior(uint32_t pinning) 328 326 }
Note: See TracChangeset
for help on using the changeset viewer.