Remove view source code
authorandersca@apple.com <andersca@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 17 Feb 2014 23:53:29 +0000 (23:53 +0000)
committerandersca@apple.com <andersca@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 17 Feb 2014 23:53:29 +0000 (23:53 +0000)
https://bugs.webkit.org/show_bug.cgi?id=127233

Reviewed by Antti Koivisto.

Source/WebCore:

* CMakeLists.txt:
* DerivedSources.make:
* GNUmakefile.am:
* GNUmakefile.list.am:
* WebCore.vcxproj/WebCore.vcxproj:
* WebCore.vcxproj/WebCore.vcxproj.filters:
* WebCore.xcodeproj/project.pbxproj:
* bindings/js/ScriptController.cpp:
(WebCore::ScriptController::canExecuteScripts):
* css/CSSDefaultStyleSheets.cpp:
* css/CSSDefaultStyleSheets.h:
* css/DocumentRuleSets.cpp:
(WebCore::DocumentRuleSets::appendAuthorStyleSheets):
(WebCore::DocumentRuleSets::collectFeatures):
* css/DocumentRuleSets.h:
* css/ElementRuleCollector.cpp:
(WebCore::ElementRuleCollector::matchUARules):
* css/StyleResolver.cpp:
(WebCore::StyleResolver::appendAuthorStyleSheets):
(WebCore::StyleResolver::styleForElement):
* css/view-source.css: Removed.
* dom/DOMImplementation.cpp:
(WebCore::DOMImplementation::createDocument):
* dom/DOMImplementation.h:
* dom/Document.cpp:
(WebCore::Document::Document):
* dom/Document.h:
* html/HTMLAttributeNames.in:
* html/HTMLFrameElementBase.cpp:
(WebCore::HTMLFrameElementBase::HTMLFrameElementBase):
(WebCore::HTMLFrameElementBase::openURL):
* html/HTMLFrameElementBase.h:
* html/HTMLViewSourceDocument.cpp: Removed.
* html/HTMLViewSourceDocument.h: Removed.
* html/parser/HTMLToken.h:
* html/parser/HTMLViewSourceParser.cpp: Removed.
* html/parser/HTMLViewSourceParser.h: Removed.
* html/parser/TextViewSourceParser.cpp: Removed.
* html/parser/TextViewSourceParser.h: Removed.
* inspector/InspectorOverlayPage.css:
(.tag-name):
(.node-id):
(.class-name):
* loader/DocumentWriter.cpp:
(WebCore::DocumentWriter::createDocument):
* loader/FrameLoader.cpp:
(WebCore::FrameLoader::receivedFirstData):
* page/Frame.cpp:
(WebCore::Frame::Frame):
* page/Frame.h:
* xml/DOMParser.cpp:
(WebCore::DOMParser::parseFromString):
* xml/XMLViewer.css:
(.tag):
* xml/XSLTProcessor.cpp:
(WebCore::XSLTProcessor::createDocumentFromSource):

Source/WebKit/mac:

* WebView/WebView.mm:
* WebView/WebViewPrivate.h:

Source/WebKit/win:

* WebFrame.cpp:
(WebFrame::inViewSourceMode):
(WebFrame::setInViewSourceMode):
* WebView.cpp:
(WebView::setInViewSourceMode):
(WebView::inViewSourceMode):

Source/WebKit2:

* UIProcess/WebPageProxy.cpp:
(WebKit::WebPageProxy::WebPageProxy):
* UIProcess/WebPageProxy.h:
* WebProcess/WebPage/WebPage.cpp:
* WebProcess/WebPage/WebPage.h:
* WebProcess/WebPage/WebPage.messages.in:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@164254 268f45cc-cd09-0410-ab3c-d52691b4dbfc

50 files changed:
Source/WebCore/CMakeLists.txt
Source/WebCore/ChangeLog
Source/WebCore/DerivedSources.make
Source/WebCore/GNUmakefile.am
Source/WebCore/GNUmakefile.list.am
Source/WebCore/WebCore.vcxproj/WebCore.vcxproj
Source/WebCore/WebCore.vcxproj/WebCore.vcxproj.filters
Source/WebCore/WebCore.xcodeproj/project.pbxproj
Source/WebCore/bindings/js/ScriptController.cpp
Source/WebCore/css/CSSDefaultStyleSheets.cpp
Source/WebCore/css/CSSDefaultStyleSheets.h
Source/WebCore/css/DocumentRuleSets.cpp
Source/WebCore/css/DocumentRuleSets.h
Source/WebCore/css/ElementRuleCollector.cpp
Source/WebCore/css/StyleResolver.cpp
Source/WebCore/css/view-source.css [deleted file]
Source/WebCore/dom/DOMImplementation.cpp
Source/WebCore/dom/DOMImplementation.h
Source/WebCore/dom/Document.cpp
Source/WebCore/dom/Document.h
Source/WebCore/html/HTMLAttributeNames.in
Source/WebCore/html/HTMLFrameElementBase.cpp
Source/WebCore/html/HTMLFrameElementBase.h
Source/WebCore/html/HTMLViewSourceDocument.cpp [deleted file]
Source/WebCore/html/HTMLViewSourceDocument.h [deleted file]
Source/WebCore/html/parser/HTMLToken.h
Source/WebCore/html/parser/HTMLViewSourceParser.cpp [deleted file]
Source/WebCore/html/parser/HTMLViewSourceParser.h [deleted file]
Source/WebCore/html/parser/TextViewSourceParser.cpp [deleted file]
Source/WebCore/html/parser/TextViewSourceParser.h [deleted file]
Source/WebCore/inspector/InspectorOverlayPage.css
Source/WebCore/loader/DocumentWriter.cpp
Source/WebCore/loader/FrameLoader.cpp
Source/WebCore/page/Frame.cpp
Source/WebCore/page/Frame.h
Source/WebCore/xml/DOMParser.cpp
Source/WebCore/xml/XMLViewer.css
Source/WebCore/xml/XSLTProcessor.cpp
Source/WebKit/mac/ChangeLog
Source/WebKit/mac/WebView/WebView.mm
Source/WebKit/mac/WebView/WebViewPrivate.h
Source/WebKit/win/ChangeLog
Source/WebKit/win/WebFrame.cpp
Source/WebKit/win/WebView.cpp
Source/WebKit2/ChangeLog
Source/WebKit2/UIProcess/WebPageProxy.cpp
Source/WebKit2/UIProcess/WebPageProxy.h
Source/WebKit2/WebProcess/WebPage/WebPage.cpp
Source/WebKit2/WebProcess/WebPage/WebPage.h
Source/WebKit2/WebProcess/WebPage/WebPage.messages.in

index 5fb3c6a..77b2c25 100644 (file)
@@ -1449,7 +1449,6 @@ set(WebCore_SOURCES
     html/HTMLTrackElement.cpp
     html/HTMLUListElement.cpp
     html/HTMLVideoElement.cpp
-    html/HTMLViewSourceDocument.cpp
     html/HiddenInputType.cpp
     html/ImageData.cpp
     html/ImageDocument.cpp
@@ -1548,9 +1547,7 @@ set(WebCore_SOURCES
     html/parser/HTMLSourceTracker.cpp
     html/parser/HTMLTokenizer.cpp
     html/parser/HTMLTreeBuilder.cpp
-    html/parser/HTMLViewSourceParser.cpp
     html/parser/TextDocumentParser.cpp
-    html/parser/TextViewSourceParser.cpp
     html/parser/XSSAuditor.cpp
     html/parser/XSSAuditorDelegate.cpp
 
@@ -2568,7 +2565,6 @@ set(WebCore_USER_AGENT_STYLE_SHEETS
     ${WEBCORE_DIR}/css/plugIns.css
     ${WEBCORE_DIR}/css/quirks.css
     ${WEBCORE_DIR}/css/svg.css
-    ${WEBCORE_DIR}/css/view-source.css
 )
 
 set(WebCore_PLUG_INS_RESOURCES
index 6a47dc9..9f40209 100644 (file)
@@ -1,3 +1,67 @@
+2014-02-17  Anders Carlsson  <andersca@apple.com>
+
+        Remove view source code
+        https://bugs.webkit.org/show_bug.cgi?id=127233
+
+        Reviewed by Antti Koivisto.
+
+        * CMakeLists.txt:
+        * DerivedSources.make:
+        * GNUmakefile.am:
+        * GNUmakefile.list.am:
+        * WebCore.vcxproj/WebCore.vcxproj:
+        * WebCore.vcxproj/WebCore.vcxproj.filters:
+        * WebCore.xcodeproj/project.pbxproj:
+        * bindings/js/ScriptController.cpp:
+        (WebCore::ScriptController::canExecuteScripts):
+        * css/CSSDefaultStyleSheets.cpp:
+        * css/CSSDefaultStyleSheets.h:
+        * css/DocumentRuleSets.cpp:
+        (WebCore::DocumentRuleSets::appendAuthorStyleSheets):
+        (WebCore::DocumentRuleSets::collectFeatures):
+        * css/DocumentRuleSets.h:
+        * css/ElementRuleCollector.cpp:
+        (WebCore::ElementRuleCollector::matchUARules):
+        * css/StyleResolver.cpp:
+        (WebCore::StyleResolver::appendAuthorStyleSheets):
+        (WebCore::StyleResolver::styleForElement):
+        * css/view-source.css: Removed.
+        * dom/DOMImplementation.cpp:
+        (WebCore::DOMImplementation::createDocument):
+        * dom/DOMImplementation.h:
+        * dom/Document.cpp:
+        (WebCore::Document::Document):
+        * dom/Document.h:
+        * html/HTMLAttributeNames.in:
+        * html/HTMLFrameElementBase.cpp:
+        (WebCore::HTMLFrameElementBase::HTMLFrameElementBase):
+        (WebCore::HTMLFrameElementBase::openURL):
+        * html/HTMLFrameElementBase.h:
+        * html/HTMLViewSourceDocument.cpp: Removed.
+        * html/HTMLViewSourceDocument.h: Removed.
+        * html/parser/HTMLToken.h:
+        * html/parser/HTMLViewSourceParser.cpp: Removed.
+        * html/parser/HTMLViewSourceParser.h: Removed.
+        * html/parser/TextViewSourceParser.cpp: Removed.
+        * html/parser/TextViewSourceParser.h: Removed.
+        * inspector/InspectorOverlayPage.css:
+        (.tag-name):
+        (.node-id):
+        (.class-name):
+        * loader/DocumentWriter.cpp:
+        (WebCore::DocumentWriter::createDocument):
+        * loader/FrameLoader.cpp:
+        (WebCore::FrameLoader::receivedFirstData):
+        * page/Frame.cpp:
+        (WebCore::Frame::Frame):
+        * page/Frame.h:
+        * xml/DOMParser.cpp:
+        (WebCore::DOMParser::parseFromString):
+        * xml/XMLViewer.css:
+        (.tag):
+        * xml/XSLTProcessor.cpp:
+        (WebCore::XSLTProcessor::createDocumentFromSource):
+
 2014-02-17  Simon Fraser  <simon.fraser@apple.com>
 
         box-shadows get truncated with a combination of transforms and clip: (affects Google Maps)
index d33f738..f7f4a8c 100644 (file)
@@ -846,7 +846,7 @@ XPathGrammar.cpp : xml/XPathGrammar.y $(PROJECT_FILE)
 
 # user agent style sheets
 
-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.css
+USER_AGENT_STYLE_SHEETS = $(WebCore)/css/html.css $(WebCore)/css/quirks.css $(WebCore)/css/themeWin.css $(WebCore)/css/themeWinQuirks.css $(WebCore)/css/plugIns.css
 USER_AGENT_STYLE_SHEETS := $(USER_AGENT_STYLE_SHEETS) $(WebCore)/css/svg.css
 
 ifeq ($(findstring ENABLE_MATHML,$(FEATURE_DEFINES)), ENABLE_MATHML)
index 3f44424..04caaef 100644 (file)
@@ -275,7 +275,6 @@ USER_AGENT_STYLE_SHEETS = \
        $(WebCore)/css/html.css \
        $(WebCore)/css/mathml.css \
        $(WebCore)/css/quirks.css \
-       $(WebCore)/css/view-source.css \
        $(WebCore)/css/svg.css \
        $(WebCore)/css/mediaControls.css \
        $(WebCore)/css/mediaControlsGtk.css \
@@ -701,7 +700,6 @@ EXTRA_DIST += \
        Source/WebCore/css/svg.css \
        Source/WebCore/css/SVGCSSPropertyNames.in \
        Source/WebCore/css/SVGCSSValueKeywords.in \
-       Source/WebCore/css/view-source.css \
        Source/WebCore/css/WebKitFontFamilyNames.in \
        Source/WebCore/dom/EventNames.in \
        Source/WebCore/dom/EventTargetFactory.in \
index d16f503..2f9f181 100644 (file)
@@ -3526,8 +3526,6 @@ webcore_sources += \
        Source/WebCore/html/HTMLUListElement.h \
        Source/WebCore/html/HTMLVideoElement.cpp \
        Source/WebCore/html/HTMLVideoElement.h \
-       Source/WebCore/html/HTMLViewSourceDocument.cpp \
-       Source/WebCore/html/HTMLViewSourceDocument.h \
        Source/WebCore/html/HiddenInputType.cpp \
        Source/WebCore/html/HiddenInputType.h \
        Source/WebCore/html/ImageData.cpp \
@@ -3601,14 +3599,10 @@ webcore_sources += \
        Source/WebCore/html/parser/HTMLTokenizer.h \
        Source/WebCore/html/parser/HTMLTreeBuilder.cpp \
        Source/WebCore/html/parser/HTMLTreeBuilder.h \
-       Source/WebCore/html/parser/HTMLViewSourceParser.cpp \
-       Source/WebCore/html/parser/HTMLViewSourceParser.h \
        Source/WebCore/html/parser/InputStreamPreprocessor.h \
        Source/WebCore/html/parser/NestingLevelIncrementer.h \
        Source/WebCore/html/parser/TextDocumentParser.cpp \
        Source/WebCore/html/parser/TextDocumentParser.h \
-       Source/WebCore/html/parser/TextViewSourceParser.cpp \
-       Source/WebCore/html/parser/TextViewSourceParser.h \
        Source/WebCore/html/parser/XSSAuditor.cpp \
        Source/WebCore/html/parser/XSSAuditor.h \
        Source/WebCore/html/parser/XSSAuditorDelegate.cpp \
index 18561f4..e1f950e 100644 (file)
       <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Production|Win32'">true</ExcludedFromBuild>
       <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Production|x64'">true</ExcludedFromBuild>
     </ClCompile>
-    <ClCompile Include="..\html\HTMLViewSourceDocument.cpp" />
     <ClCompile Include="..\html\ImageData.cpp" />
     <ClCompile Include="..\html\ImageDocument.cpp" />
     <ClCompile Include="..\html\ImageInputType.cpp" />
     <ClCompile Include="..\html\parser\HTMLSourceTracker.cpp" />
     <ClCompile Include="..\html\parser\HTMLTokenizer.cpp" />
     <ClCompile Include="..\html\parser\HTMLTreeBuilder.cpp" />
-    <ClCompile Include="..\html\parser\HTMLViewSourceParser.cpp" />
     <ClCompile Include="..\html\parser\TextDocumentParser.cpp" />
-    <ClCompile Include="..\html\parser\TextViewSourceParser.cpp" />
     <ClCompile Include="..\html\parser\XSSAuditor.cpp" />
     <ClCompile Include="..\html\parser\XSSAuditorDelegate.cpp" />
     <ClCompile Include="..\html\shadow\ContentDistributor.cpp" />
     <ClInclude Include="..\html\HTMLTrackElement.h" />
     <ClInclude Include="..\html\HTMLUListElement.h" />
     <ClInclude Include="..\html\HTMLVideoElement.h" />
-    <ClInclude Include="..\html\HTMLViewSourceDocument.h" />
     <ClInclude Include="..\html\ImageData.h" />
     <ClInclude Include="..\html\ImageDocument.h" />
     <ClInclude Include="..\html\ImageInputType.h" />
     <ClInclude Include="..\html\parser\HTMLToken.h" />
     <ClInclude Include="..\html\parser\HTMLTokenizer.h" />
     <ClInclude Include="..\html\parser\HTMLTreeBuilder.h" />
-    <ClInclude Include="..\html\parser\HTMLViewSourceParser.h" />
     <ClInclude Include="..\html\parser\InputStreamPreprocessor.h" />
     <ClInclude Include="..\html\parser\NestingLevelIncrementer.h" />
     <ClInclude Include="..\html\parser\TextDocumentParser.h" />
-    <ClInclude Include="..\html\parser\TextViewSourceParser.h" />
     <ClInclude Include="..\html\parser\XSSAuditor.h" />
     <ClInclude Include="..\html\parser\XSSAuditorDelegate.h" />
     <ClInclude Include="..\html\shadow\ContentDistributor.h" />
     <None Include="..\css\svg.css" />
     <None Include="..\css\themeWin.css" />
     <None Include="..\css\themeWinQuirks.css" />
-    <None Include="..\css\view-source.css" />
     <None Include="..\Modules\mediacontrols\mediaControlsApple.css" />
     <None Include="..\Modules\mediacontrols\mediaControlsApple.js" />
     <None Include="..\xml\XPathGrammar.y" />
index 12f3a45..b3a38a7 100644 (file)
     <ClCompile Include="..\html\HTMLVideoElement.cpp">
       <Filter>html</Filter>
     </ClCompile>
-    <ClCompile Include="..\html\HTMLViewSourceDocument.cpp">
-      <Filter>html</Filter>
-    </ClCompile>
     <ClCompile Include="..\html\ImageData.cpp">
       <Filter>html</Filter>
     </ClCompile>
     <ClCompile Include="..\html\parser\HTMLTreeBuilder.cpp">
       <Filter>html\parser</Filter>
     </ClCompile>
-    <ClCompile Include="..\html\parser\HTMLViewSourceParser.cpp">
-      <Filter>html\parser</Filter>
-    </ClCompile>
     <ClCompile Include="..\html\parser\TextDocumentParser.cpp">
       <Filter>html\parser</Filter>
     </ClCompile>
-    <ClCompile Include="..\html\parser\TextViewSourceParser.cpp">
-      <Filter>html\parser</Filter>
-    </ClCompile>
     <ClCompile Include="..\html\parser\XSSAuditor.cpp">
       <Filter>html\parser</Filter>
     </ClCompile>
     <ClInclude Include="..\html\HTMLVideoElement.h">
       <Filter>html</Filter>
     </ClInclude>
-    <ClInclude Include="..\html\HTMLViewSourceDocument.h">
-      <Filter>html</Filter>
-    </ClInclude>
     <ClInclude Include="..\html\ImageData.h">
       <Filter>html</Filter>
     </ClInclude>
     <ClInclude Include="..\html\parser\HTMLTreeBuilder.h">
       <Filter>html\parser</Filter>
     </ClInclude>
-    <ClInclude Include="..\html\parser\HTMLViewSourceParser.h">
-      <Filter>html\parser</Filter>
-    </ClInclude>
     <ClInclude Include="..\html\parser\InputStreamPreprocessor.h">
       <Filter>html\parser</Filter>
     </ClInclude>
     <ClInclude Include="..\html\parser\TextDocumentParser.h">
       <Filter>html\parser</Filter>
     </ClInclude>
-    <ClInclude Include="..\html\parser\TextViewSourceParser.h">
-      <Filter>html\parser</Filter>
-    </ClInclude>
     <ClInclude Include="..\html\parser\XSSAuditor.h">
       <Filter>html\parser</Filter>
     </ClInclude>
     <None Include="..\css\mathml.css">
       <Filter>css</Filter>
     </None>
-    <None Include="..\css\view-source.css">
-      <Filter>css</Filter>
-    </None>
     <None Include="..\css\svg.css">
       <Filter>css</Filter>
     </None>
index 50f5752..842eb88 100644 (file)
                977B3876122883E900B81FF8 /* HTMLScriptRunnerHost.h in Headers */ = {isa = PBXBuildFile; fileRef = 977B385D122883E900B81FF8 /* HTMLScriptRunnerHost.h */; };
                977B3877122883E900B81FF8 /* HTMLTokenizer.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 977B385E122883E900B81FF8 /* HTMLTokenizer.cpp */; };
                977B3878122883E900B81FF8 /* HTMLTokenizer.h in Headers */ = {isa = PBXBuildFile; fileRef = 977B385F122883E900B81FF8 /* HTMLTokenizer.h */; };
-               977B3879122883E900B81FF8 /* HTMLViewSourceParser.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 977B3860122883E900B81FF8 /* HTMLViewSourceParser.cpp */; };
-               977B387A122883E900B81FF8 /* HTMLViewSourceParser.h in Headers */ = {isa = PBXBuildFile; fileRef = 977B3861122883E900B81FF8 /* HTMLViewSourceParser.h */; };
                977E2DCD12F0E28300C13379 /* HTMLSourceTracker.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 977E2DCB12F0E28300C13379 /* HTMLSourceTracker.cpp */; };
                977E2DCE12F0E28300C13379 /* HTMLSourceTracker.h in Headers */ = {isa = PBXBuildFile; fileRef = 977E2DCC12F0E28300C13379 /* HTMLSourceTracker.h */; };
                977E2E0E12F0FC9C00C13379 /* XSSAuditor.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 977E2E0B12F0FC9C00C13379 /* XSSAuditor.cpp */; };
                97BC84831236FD93000C6161 /* TextDocumentParser.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 97BC84811236FD93000C6161 /* TextDocumentParser.cpp */; };
                97BC84841236FD93000C6161 /* TextDocumentParser.h in Headers */ = {isa = PBXBuildFile; fileRef = 97BC84821236FD93000C6161 /* TextDocumentParser.h */; };
                97BC849B12370A4B000C6161 /* HTMLInputStream.h in Headers */ = {isa = PBXBuildFile; fileRef = 97BC849A12370A4B000C6161 /* HTMLInputStream.h */; };
-               97BC84A412370DC8000C6161 /* TextViewSourceParser.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 97BC84A212370DC7000C6161 /* TextViewSourceParser.cpp */; };
-               97BC84A512370DC8000C6161 /* TextViewSourceParser.h in Headers */ = {isa = PBXBuildFile; fileRef = 97BC84A312370DC8000C6161 /* TextViewSourceParser.h */; };
                97BC84B312371180000C6161 /* TextDocument.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 97BC84B112371180000C6161 /* TextDocument.cpp */; };
                97BC84B412371180000C6161 /* TextDocument.h in Headers */ = {isa = PBXBuildFile; fileRef = 97BC84B212371180000C6161 /* TextDocument.h */; };
                97C078501165D5BE003A32EF /* SuffixTree.h in Headers */ = {isa = PBXBuildFile; fileRef = 97C0784F1165D5BE003A32EF /* SuffixTree.h */; };
                BCCBAD3B0C18BFF800CE890F /* JSHTMLCollectionCustom.cpp in Sources */ = {isa = PBXBuildFile; fileRef = BCCBAD3A0C18BFF800CE890F /* JSHTMLCollectionCustom.cpp */; };
                BCCBAD400C18C14200CE890F /* JSHTMLCollection.cpp in Sources */ = {isa = PBXBuildFile; fileRef = BCCBAD3E0C18C14200CE890F /* JSHTMLCollection.cpp */; };
                BCCBAD410C18C14200CE890F /* JSHTMLCollection.h in Headers */ = {isa = PBXBuildFile; fileRef = BCCBAD3F0C18C14200CE890F /* JSHTMLCollection.h */; };
-               BCCD74DC0A4C8D35005FDA6D /* HTMLViewSourceDocument.h in Headers */ = {isa = PBXBuildFile; fileRef = BCCD74DB0A4C8D35005FDA6D /* HTMLViewSourceDocument.h */; };
-               BCCD74E50A4C8DDF005FDA6D /* HTMLViewSourceDocument.cpp in Sources */ = {isa = PBXBuildFile; fileRef = BCCD74E40A4C8DDF005FDA6D /* HTMLViewSourceDocument.cpp */; };
                BCCFBAE80B5152ED0001F1D7 /* DocumentParser.h in Headers */ = {isa = PBXBuildFile; fileRef = BCCFBAE70B5152ED0001F1D7 /* DocumentParser.h */; settings = {ATTRIBUTES = (Private, ); }; };
                BCD0E0FA0E972C3500265DEA /* SecurityOrigin.cpp in Sources */ = {isa = PBXBuildFile; fileRef = BCD0E0F70E972C3500265DEA /* SecurityOrigin.cpp */; };
                BCD0E0FB0E972C3500265DEA /* SecurityOrigin.h in Headers */ = {isa = PBXBuildFile; fileRef = BCD0E0F80E972C3500265DEA /* SecurityOrigin.h */; settings = {ATTRIBUTES = (Private, ); }; };
                977B385D122883E900B81FF8 /* HTMLScriptRunnerHost.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = HTMLScriptRunnerHost.h; path = parser/HTMLScriptRunnerHost.h; sourceTree = "<group>"; };
                977B385E122883E900B81FF8 /* HTMLTokenizer.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = HTMLTokenizer.cpp; path = parser/HTMLTokenizer.cpp; sourceTree = "<group>"; };
                977B385F122883E900B81FF8 /* HTMLTokenizer.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = HTMLTokenizer.h; path = parser/HTMLTokenizer.h; sourceTree = "<group>"; };
-               977B3860122883E900B81FF8 /* HTMLViewSourceParser.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = HTMLViewSourceParser.cpp; path = parser/HTMLViewSourceParser.cpp; sourceTree = "<group>"; };
-               977B3861122883E900B81FF8 /* HTMLViewSourceParser.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = HTMLViewSourceParser.h; path = parser/HTMLViewSourceParser.h; sourceTree = "<group>"; };
                977E2DCB12F0E28300C13379 /* HTMLSourceTracker.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = HTMLSourceTracker.cpp; path = parser/HTMLSourceTracker.cpp; sourceTree = "<group>"; };
                977E2DCC12F0E28300C13379 /* HTMLSourceTracker.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = HTMLSourceTracker.h; path = parser/HTMLSourceTracker.h; sourceTree = "<group>"; };
                977E2E0B12F0FC9C00C13379 /* XSSAuditor.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = XSSAuditor.cpp; path = parser/XSSAuditor.cpp; sourceTree = "<group>"; };
                97BC84811236FD93000C6161 /* TextDocumentParser.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = TextDocumentParser.cpp; path = parser/TextDocumentParser.cpp; sourceTree = "<group>"; };
                97BC84821236FD93000C6161 /* TextDocumentParser.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = TextDocumentParser.h; path = parser/TextDocumentParser.h; sourceTree = "<group>"; };
                97BC849A12370A4B000C6161 /* HTMLInputStream.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = HTMLInputStream.h; path = parser/HTMLInputStream.h; sourceTree = "<group>"; };
-               97BC84A212370DC7000C6161 /* TextViewSourceParser.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = TextViewSourceParser.cpp; path = parser/TextViewSourceParser.cpp; sourceTree = "<group>"; };
-               97BC84A312370DC8000C6161 /* TextViewSourceParser.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = TextViewSourceParser.h; path = parser/TextViewSourceParser.h; sourceTree = "<group>"; };
                97BC84B112371180000C6161 /* TextDocument.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = TextDocument.cpp; sourceTree = "<group>"; };
                97BC84B212371180000C6161 /* TextDocument.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TextDocument.h; sourceTree = "<group>"; };
                97C0784F1165D5BE003A32EF /* SuffixTree.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SuffixTree.h; sourceTree = "<group>"; };
                BC5EB97F0E82072500B25965 /* ContentData.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = ContentData.h; path = style/ContentData.h; sourceTree = "<group>"; };
                BC5EBA0E0E823E4700B25965 /* KeyframeList.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = KeyframeList.cpp; path = style/KeyframeList.cpp; sourceTree = "<group>"; };
                BC5EBA0F0E823E4700B25965 /* KeyframeList.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = KeyframeList.h; path = style/KeyframeList.h; sourceTree = "<group>"; };
-               BC5EC1760A507E3E006007F5 /* view-source.css */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = text; path = "view-source.css"; sourceTree = "<group>"; };
                BC6049CB0DB560C200204739 /* CSSCanvasValue.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CSSCanvasValue.h; sourceTree = "<group>"; };
                BC604A420DB5634E00204739 /* CSSCanvasValue.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = CSSCanvasValue.cpp; sourceTree = "<group>"; };
                BC60901E0E91B8EC000C68B5 /* JSEventTargetCustom.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSEventTargetCustom.cpp; sourceTree = "<group>"; };
                BCCBAD3A0C18BFF800CE890F /* JSHTMLCollectionCustom.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSHTMLCollectionCustom.cpp; sourceTree = "<group>"; };
                BCCBAD3E0C18C14200CE890F /* JSHTMLCollection.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = JSHTMLCollection.cpp; sourceTree = "<group>"; };
                BCCBAD3F0C18C14200CE890F /* JSHTMLCollection.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = JSHTMLCollection.h; sourceTree = "<group>"; };
-               BCCD74DB0A4C8D35005FDA6D /* HTMLViewSourceDocument.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = HTMLViewSourceDocument.h; sourceTree = "<group>"; };
-               BCCD74E40A4C8DDF005FDA6D /* HTMLViewSourceDocument.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = HTMLViewSourceDocument.cpp; sourceTree = "<group>"; };
                BCCFBAE70B5152ED0001F1D7 /* DocumentParser.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = DocumentParser.h; sourceTree = "<group>"; };
                BCD0E0F70E972C3500265DEA /* SecurityOrigin.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = SecurityOrigin.cpp; sourceTree = "<group>"; };
                BCD0E0F80E972C3500265DEA /* SecurityOrigin.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SecurityOrigin.h; sourceTree = "<group>"; };
                                E44613980CD6331000FADA75 /* HTMLVideoElement.cpp */,
                                E44613990CD6331000FADA75 /* HTMLVideoElement.h */,
                                E446139A0CD6331000FADA75 /* HTMLVideoElement.idl */,
-                               BCCD74E40A4C8DDF005FDA6D /* HTMLViewSourceDocument.cpp */,
-                               BCCD74DB0A4C8D35005FDA6D /* HTMLViewSourceDocument.h */,
                                A77979130D6B9D0C003851B9 /* ImageData.cpp */,
                                A77979140D6B9D0C003851B9 /* ImageData.h */,
                                A77979150D6B9D0C003851B9 /* ImageData.idl */,
                                977B385F122883E900B81FF8 /* HTMLTokenizer.h */,
                                977B37211228721700B81FF8 /* HTMLTreeBuilder.cpp */,
                                977B37221228721700B81FF8 /* HTMLTreeBuilder.h */,
-                               977B3860122883E900B81FF8 /* HTMLViewSourceParser.cpp */,
-                               977B3861122883E900B81FF8 /* HTMLViewSourceParser.h */,
                                A8805AF116C96AEA000E9D98 /* InputStreamPreprocessor.h */,
                                8A309C9E123950BE00CB9204 /* NestingLevelIncrementer.h */,
                                97BC84811236FD93000C6161 /* TextDocumentParser.cpp */,
                                97BC84821236FD93000C6161 /* TextDocumentParser.h */,
-                               97BC84A212370DC7000C6161 /* TextViewSourceParser.cpp */,
-                               97BC84A312370DC8000C6161 /* TextViewSourceParser.h */,
                                977E2E0B12F0FC9C00C13379 /* XSSAuditor.cpp */,
                                977E2E0C12F0FC9C00C13379 /* XSSAuditor.h */,
                                977E2E0B12F0FC9C00C13380 /* XSSAuditorDelegate.cpp */,
                                B2227B040D00BFF10071B782 /* SVGCSSValueKeywords.in */,
                                FB484F4A171F821E00040755 /* TransformFunctions.cpp */,
                                FB484F4B171F821E00040755 /* TransformFunctions.h */,
-                               BC5EC1760A507E3E006007F5 /* view-source.css */,
                                3FFFF9AB159D9B060020BBD5 /* ViewportStyleResolver.cpp */,
                                3FFFF9AC159D9B060020BBD5 /* ViewportStyleResolver.h */,
                                3106036C14327D2E00ABF4BA /* WebKitCSSFilterValue.cpp */,
                                A8EA79F20A1916DF00A8EF5F /* HTMLUListElement.h in Headers */,
                                E44613AB0CD6331000FADA75 /* HTMLVideoElement.h in Headers */,
                                07277E4D17D018CC0015534D /* JSMediaStream.h in Headers */,
-                               BCCD74DC0A4C8D35005FDA6D /* HTMLViewSourceDocument.h in Headers */,
-                               977B387A122883E900B81FF8 /* HTMLViewSourceParser.h in Headers */,
                                514C76710CE923A1007EF3CD /* HTTPHeaderMap.h in Headers */,
                                073AB4B817F92ECF006E0D6F /* JSCapabilityRange.h in Headers */,
                                514C76730CE923A1007EF3CD /* HTTPParsers.h in Headers */,
                                076970871463AD8700F502CF /* TextTrackList.h in Headers */,
                                B1AD4E7413A12A4600846B27 /* TextTrackLoader.h in Headers */,
                                498770F11242C535002226BA /* Texture.h in Headers */,
-                               97BC84A512370DC8000C6161 /* TextViewSourceParser.h in Headers */,
                                BCE658FF0EA9248A007E4533 /* Theme.h in Headers */,
                                BCE659E60EA92FB2007E4533 /* ThemeMac.h in Headers */,
                                442AF7A9102CDDEA008FD4D3 /* QuickLook.h in Headers */,
                                A8EA79F30A1916DF00A8EF5F /* HTMLUListElement.cpp in Sources */,
                                E44613AA0CD6331000FADA75 /* HTMLVideoElement.cpp in Sources */,
                                E125F8381822F1EB00D84CD9 /* CryptoAlgorithmHMACMac.cpp in Sources */,
-                               BCCD74E50A4C8DDF005FDA6D /* HTMLViewSourceDocument.cpp in Sources */,
-                               977B3879122883E900B81FF8 /* HTMLViewSourceParser.cpp in Sources */,
                                E1C266D818317AB4003F8B33 /* CryptoAlgorithmRSASSA_PKCS1_v1_5Mac.cpp in Sources */,
                                A584FE2F1864CB8400843B10 /* WebInjectedScriptManager.cpp in Sources */,
                                0B8C56D40F28627F000502E1 /* HTTPHeaderMap.cpp in Sources */,
                                B1AD4E7313A12A4600846B27 /* TextTrackLoader.cpp in Sources */,
                                CD1E7347167BC78E009A885D /* TextTrackRepresentation.cpp in Sources */,
                                498770F01242C535002226BA /* Texture.cpp in Sources */,
-                               97BC84A412370DC8000C6161 /* TextViewSourceParser.cpp in Sources */,
                                BCE65D320EAD1211007E4533 /* Theme.cpp in Sources */,
                                E4C3B1FC0F0E4170009693F6 /* TileCache.mm in Sources */,
                                BCE659E90EA92FFA007E4533 /* ThemeMac.mm in Sources */,
index 22e26bf..7af4a1c 100644 (file)
@@ -486,11 +486,6 @@ bool ScriptController::canExecuteScripts(ReasonForCallingCanExecuteScripts reaso
         return false;
     }
 
-    if (m_frame.document() && m_frame.document()->isViewSource()) {
-        ASSERT(m_frame.document()->securityOrigin()->isUnique());
-        return true;
-    }
-
     if (!m_frame.page())
         return false;
 
index 3ef010b..0753864 100644 (file)
@@ -47,7 +47,6 @@ using namespace HTMLNames;
 RuleSet* CSSDefaultStyleSheets::defaultStyle;
 RuleSet* CSSDefaultStyleSheets::defaultQuirksStyle;
 RuleSet* CSSDefaultStyleSheets::defaultPrintStyle;
-RuleSet* CSSDefaultStyleSheets::defaultViewSourceStyle;
 
 StyleSheetContents* CSSDefaultStyleSheets::simpleDefaultStyleSheet;
 StyleSheetContents* CSSDefaultStyleSheets::defaultStyleSheet;
@@ -145,17 +144,6 @@ void CSSDefaultStyleSheets::loadSimpleDefaultStyle()
     // No need to initialize quirks sheet yet as there are no quirk rules for elements allowed in simple default style.
 }
 
-RuleSet* CSSDefaultStyleSheets::viewSourceStyle()
-{
-    if (!defaultViewSourceStyle) {
-        static StyleSheetContents* viewSourceStyleSheet = parseUASheet(sourceUserAgentStyleSheet, sizeof(sourceUserAgentStyleSheet));
-        defaultViewSourceStyle = std::make_unique<RuleSet>().release();
-        defaultViewSourceStyle->addRulesFromSheet(viewSourceStyleSheet, screenEval());
-    }
-    return defaultViewSourceStyle;
-}
-
-
 void CSSDefaultStyleSheets::ensureDefaultStyleSheetsForElement(Element* element, bool& changedDefaultStyle)
 {
     if (simpleDefaultStyleSheet && !elementCanUseSimpleDefaultStyle(element)) {
index ccdb196..cb137aa 100644 (file)
@@ -34,7 +34,6 @@ public:
     static RuleSet* defaultStyle;
     static RuleSet* defaultQuirksStyle;
     static RuleSet* defaultPrintStyle;
-    static RuleSet* defaultViewSourceStyle;
 
     static StyleSheetContents* simpleDefaultStyleSheet;
     static StyleSheetContents* defaultStyleSheet;
@@ -49,7 +48,6 @@ public:
     static void loadFullDefaultStyle();
     static void loadSimpleDefaultStyle();
     static void initDefaultStyle(Element*);
-    static RuleSet* viewSourceStyle();
 };
 
 } // namespace WebCore
index 43e299d..8fa272a 100644 (file)
@@ -83,7 +83,7 @@ void DocumentRuleSets::resetAuthorStyle()
     m_authorStyle->disableAutoShrinkToFit();
 }
 
-void DocumentRuleSets::appendAuthorStyleSheets(unsigned firstNew, const Vector<RefPtr<CSSStyleSheet>>& styleSheets, MediaQueryEvaluator* medium, InspectorCSSOMWrappers& inspectorCSSOMWrappers, bool isViewSource, StyleResolver* resolver)
+void DocumentRuleSets::appendAuthorStyleSheets(unsigned firstNew, const Vector<RefPtr<CSSStyleSheet>>& styleSheets, MediaQueryEvaluator* medium, InspectorCSSOMWrappers& inspectorCSSOMWrappers, StyleResolver* resolver)
 {
     // This handles sheets added to the end of the stylesheet list only. In other cases the style resolver
     // needs to be reconstructed. To handle insertions too the rule order numbers would need to be updated.
@@ -97,10 +97,10 @@ void DocumentRuleSets::appendAuthorStyleSheets(unsigned firstNew, const Vector<R
         inspectorCSSOMWrappers.collectFromStyleSheetIfNeeded(cssSheet);
     }
     m_authorStyle->shrinkToFit();
-    collectFeatures(isViewSource);
+    collectFeatures();
 }
 
-void DocumentRuleSets::collectFeatures(bool isViewSource)
+void DocumentRuleSets::collectFeatures()
 {
     m_features.clear();
     // Collect all ids and rules using sibling selectors (:first-child and similar)
@@ -110,9 +110,6 @@ void DocumentRuleSets::collectFeatures(bool isViewSource)
         m_features.add(CSSDefaultStyleSheets::defaultStyle->features());
     if (m_authorStyle)
         m_features.add(m_authorStyle->features());
-    if (isViewSource)
-        m_features.add(CSSDefaultStyleSheets::viewSourceStyle()->features());
-
     if (m_userStyle)
         m_features.add(m_userStyle->features());
 
index 288b8ca..c2ca49f 100644 (file)
@@ -51,9 +51,9 @@ public:
 
     void initUserStyle(DocumentStyleSheetCollection&, const MediaQueryEvaluator&, StyleResolver&);
     void resetAuthorStyle();
-    void appendAuthorStyleSheets(unsigned firstNew, const Vector<RefPtr<CSSStyleSheet>>&, MediaQueryEvaluator*, InspectorCSSOMWrappers&, bool isViewSource, StyleResolver*);
+    void appendAuthorStyleSheets(unsigned firstNew, const Vector<RefPtr<CSSStyleSheet>>&, MediaQueryEvaluator*, InspectorCSSOMWrappers&, StyleResolver*);
 
-    void collectFeatures(bool isViewSource);
+    void collectFeatures();
 
 private:
     void collectRulesFromUserStyleSheets(const Vector<RefPtr<CSSStyleSheet>>&, RuleSet& userStyle, const MediaQueryEvaluator&, StyleResolver&);
index 0d3e24f..26e3821 100644 (file)
@@ -257,10 +257,6 @@ void ElementRuleCollector::matchUARules()
     // In quirks mode, we match rules from the quirks user agent sheet.
     if (m_element.document().inQuirksMode())
         matchUARules(CSSDefaultStyleSheets::defaultQuirksStyle);
-
-    // 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.
-    if (m_element.document().isViewSource())
-        matchUARules(CSSDefaultStyleSheets::viewSourceStyle());
 }
 
 void ElementRuleCollector::matchUARules(RuleSet* rules)
index ec33e79..91d72dd 100644 (file)
@@ -304,7 +304,7 @@ StyleResolver::StyleResolver(Document& document, bool matchAuthorAndUserStyles)
 
 void StyleResolver::appendAuthorStyleSheets(unsigned firstNew, const Vector<RefPtr<CSSStyleSheet>>& styleSheets)
 {
-    m_ruleSets.appendAuthorStyleSheets(firstNew, styleSheets, m_medium.get(), m_inspectorCSSOMWrappers, document().isViewSource(), this);
+    m_ruleSets.appendAuthorStyleSheets(firstNew, styleSheets, m_medium.get(), m_inspectorCSSOMWrappers, this);
     if (auto renderView = document().renderView())
         renderView->style().font().update(fontSelector());
 
@@ -791,7 +791,7 @@ PassRef<RenderStyle> StyleResolver::styleForElement(Element* element, RenderStyl
     bool needsCollection = false;
     CSSDefaultStyleSheets::ensureDefaultStyleSheetsForElement(element, needsCollection);
     if (needsCollection)
-        m_ruleSets.collectFeatures(document().isViewSource());
+        m_ruleSets.collectFeatures();
 
     ElementRuleCollector collector(*element, state.style(), m_ruleSets, m_selectorFilter);
     collector.setRegionForStyling(regionForStyling);
diff --git a/Source/WebCore/css/view-source.css b/Source/WebCore/css/view-source.css
deleted file mode 100644 (file)
index 3825c5f..0000000
+++ /dev/null
@@ -1,162 +0,0 @@
-/*
- * Copyright (C) 2006 Apple Computer, Inc.  All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in the
- *    documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY
- * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL APPLE COMPUTER, INC. OR
- * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
- * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
- * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
- * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
- */
-
-body {
-    margin: 0
-}
-
-table {
-    width: 100%;
-    border-spacing: 0;
-    counter-reset: lines;
-    white-space: pre-wrap !important;
-    margin: 0;
-    word-break: break-word;
-    font-size: initial;
-    font-family: monospace;
-}
-
-td {
-    padding: 0 !important;
-    vertical-align: baseline
-}
-
-.webkit-line-gutter-backdrop, .webkit-line-number {
-    /* Keep this in sync with inspector.css (.webkit-line-gutter-backdrop) */
-    box-sizing: border-box;
-    padding: 0 4px !important;
-    width: 31px;
-    background-color: rgb(240, 240, 240);
-    border-right: 1px solid rgb(187, 187, 187) !important;
-    -webkit-user-select: none;
-}
-
-.webkit-line-gutter-backdrop {
-    /* Keep this in sync with inspector.css (.webkit-line-gutter-backdrop) */
-    position: absolute;
-    z-index: -1;
-    left: 0;
-    top: 0;
-    height: 100%
-}
-
-.webkit-line-number {
-    text-align: right;
-    color: rgb(128, 128, 128);
-    word-break: normal;
-    white-space: nowrap;
-    font-size: 9px;
-    font-family: Helvetica
-}
-
-.webkit-line-number::before {
-    content: counter(lines);
-    counter-increment: lines;
-    -webkit-user-select: none
-}
-
-tbody:last-child .webkit-line-content:empty:before {
-    content: " ";
-}
-
-.webkit-line-content {
-    padding: 0 5px !important;
-}
-
-.webkit-html-tag {
-    /* Keep this in sync with inspector.css (.webkit-html-tag) */
-    color: rgb(136, 18, 128);
-}
-
-.webkit-html-attribute-name {
-    /* Keep this in sync with inspector.css (.webkit-html-attribute-name) */
-    color: rgb(153, 69, 0);
-}
-
-.webkit-html-attribute-value {
-    /* Keep this in sync with inspector.css (.webkit-html-attribute-value) */
-    color: rgb(26, 26, 166);
-}
-
-.webkit-html-external-link, .webkit-html-resource-link {
-    /* Keep this in sync with inspector.css (.webkit-html-external-link, .webkit-html-resource-link) */
-    color: #00e;
-}
-
-.webkit-html-external-link {
-    /* Keep this in sync with inspector.css (.webkit-html-external-link) */
-    text-decoration: none;
-}
-
-.webkit-html-external-link:hover {
-    /* Keep this in sync with inspector.css (.webkit-html-external-link:hover) */
-    text-decoration: underline;
-}
-
-.webkit-html-comment {
-    /* Keep this in sync with inspector.css (.webkit-html-comment) */
-    color: rgb(35, 110, 37);
-}
-
-.webkit-html-doctype {
-    /* Keep this in sync with inspector.css (.webkit-html-doctype) */
-    color: rgb(192, 192, 192);
-}
-
-.webkit-html-entity {
-    rgb(136, 18, 128);
-}
-
-.webkit-html-message-bubble {
-    box-shadow: black 0px 2px 5px;
-    border-radius: 9px;
-    -webkit-border-fit: lines;
-    min-height: 13px;
-    font-size: 9px;
-    font-family: Lucida Grande, sans-serif;
-    font-weight: bold;
-    margin: 6px 25px;
-    padding: 0 7px 1px;
-}
-
-.webkit-html-warning-message {
-    background-color: rgb(100%, 62%, 42%);
-    border: 2px solid rgb(100%, 52%, 21%);
-}
-
-.webkit-html-error-message {
-    background-color: rgb(100%, 42%, 42%);
-    border: 2px solid rgb(100%, 31%, 31%);
-}
-
-.webkit-html-message-line {
-    padding-left: 23px;
-    text-indent: -20px;
-}
-
-.webkit-html-message-icon {
-    position: relative;
-    top: 2px;
-    margin: 0 4px;
-}
index 2dc8c28..b9ad3f3 100644 (file)
@@ -35,7 +35,6 @@
 #include "FrameLoaderClient.h"
 #include "FTPDirectoryDocument.h"
 #include "HTMLDocument.h"
-#include "HTMLViewSourceDocument.h"
 #include "Image.h"
 #include "ImageDocument.h"
 #include "MediaDocument.h"
@@ -300,11 +299,8 @@ PassRefPtr<HTMLDocument> DOMImplementation::createHTMLDocument(const String& tit
     return d.release();
 }
 
-PassRefPtr<Document> DOMImplementation::createDocument(const String& type, Frame* frame, const URL& url, bool inViewSourceMode)
+PassRefPtr<Document> DOMImplementation::createDocument(const String& type, Frame* frame, const URL& url)
 {
-    if (inViewSourceMode)
-        return HTMLViewSourceDocument::create(frame, url, type);
-
     // Plugins cannot take HTML and XHTML from us, and we don't even need to initialize the plugin database for those.
     if (type == "text/html")
         return HTMLDocument::create(frame, url);
index 748057a..0060007 100644 (file)
@@ -64,7 +64,7 @@ public:
     PassRefPtr<HTMLDocument> createHTMLDocument(const String& title);
 
     // Other methods (not part of DOM)
-    static PassRefPtr<Document> createDocument(const String& MIMEType, Frame*, const URL&, bool inViewSourceMode);
+    static PassRefPtr<Document> createDocument(const String& MIMEType, Frame*, const URL&);
 
     static bool isXMLMIMEType(const String& MIMEType);
     static bool isTextMIMEType(const String& MIMEType);
index c7a0bde..2eb16eb 100644 (file)
@@ -458,7 +458,6 @@ Document::Document(Frame* frame, const URL& url, unsigned documentClasses, unsig
     , m_documentClasses(documentClasses)
     , m_isSynthesized(constructionFlags & Synthesized)
     , m_isNonRenderedPlaceholder(constructionFlags & NonRenderedPlaceholder)
-    , m_isViewSource(false)
     , m_sawElementsInKnownNamespaces(false)
     , m_isSrcdocDocument(false)
     , m_eventQueue(*this)
@@ -1918,15 +1917,6 @@ void Document::pageSizeAndMarginsInPixels(int pageIndex, IntSize& pageSize, int&
     marginLeft = style->marginLeft().isAuto() ? marginLeft : intValueForLength(style->marginLeft(), width, view);
 }
 
-void Document::setIsViewSource(bool isViewSource)
-{
-    m_isViewSource = isViewSource;
-    if (!m_isViewSource)
-        return;
-
-    setSecurityOrigin(SecurityOrigin::createUnique());
-}
-
 void Document::createStyleResolver()
 {
     bool matchAuthorAndUserStyles = true;
index b4cc9db..3ac85c4 100644 (file)
@@ -516,9 +516,6 @@ public:
 
     StyleResolver* styleResolverIfExists() const { return m_styleResolver.get(); }
 
-    bool isViewSource() const { return m_isViewSource; }
-    void setIsViewSource(bool);
-
     bool sawElementsInKnownNamespaces() const { return m_sawElementsInKnownNamespaces; }
 
     StyleResolver& ensureStyleResolver()
@@ -1537,7 +1534,6 @@ private:
     bool m_isSynthesized;
     bool m_isNonRenderedPlaceholder;
 
-    bool m_isViewSource;
     bool m_sawElementsInKnownNamespaces;
     bool m_isSrcdocDocument;
 
index f37ce64..0472753 100644 (file)
@@ -341,7 +341,6 @@ valign
 value
 valuetype
 version
-viewsource
 vlink
 vspace
 webkitallowfullscreen
index bb813a5..fc81e8d 100644 (file)
@@ -49,7 +49,6 @@ HTMLFrameElementBase::HTMLFrameElementBase(const QualifiedName& tagName, Documen
     , m_scrolling(ScrollbarAuto)
     , m_marginWidth(-1)
     , m_marginHeight(-1)
-    , m_viewSource(false)
 {
     setHasCustomStyleResolveCallbacks();
 }
@@ -87,8 +86,6 @@ void HTMLFrameElementBase::openURL(bool lockHistory, bool lockBackForwardList)
         return;
 
     parentFrame->loader().subframeLoader().requestFrame(*this, m_URL, m_frameName, lockHistory, lockBackForwardList);
-    if (contentFrame())
-        contentFrame()->setInViewSourceMode(viewSourceMode());
 }
 
 void HTMLFrameElementBase::parseAttribute(const QualifiedName& name, const AtomicString& value)
index 623a0cf..c7c0a64 100644 (file)
@@ -63,8 +63,6 @@ private:
 
     virtual bool isFrameElementBase() const override { return true; }
 
-    bool viewSourceMode() const { return m_viewSource; }
-
     void setNameAndOpenURL();
     void openURL(bool lockHistory = true, bool lockBackForwardList = true);
 
@@ -75,8 +73,6 @@ private:
 
     int m_marginWidth;
     int m_marginHeight;
-
-    bool m_viewSource;
 };
 
 void isHTMLFrameElementBase(const HTMLFrameElementBase&); // Catch unnecessary runtime check of type known at compile time.
diff --git a/Source/WebCore/html/HTMLViewSourceDocument.cpp b/Source/WebCore/html/HTMLViewSourceDocument.cpp
deleted file mode 100644 (file)
index 5b705d9..0000000
+++ /dev/null
@@ -1,294 +0,0 @@
-/*
- * Copyright (C) 2006, 2008, 2009, 2010 Apple Inc. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in the
- *    documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY
- * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL APPLE COMPUTER, INC. OR
- * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
- * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
- * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
- * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#include "config.h"
-#include "HTMLViewSourceDocument.h"
-
-#include "DOMImplementation.h"
-#include "DocumentStyleSheetCollection.h"
-#include "HTMLAnchorElement.h"
-#include "HTMLBRElement.h"
-#include "HTMLBaseElement.h"
-#include "HTMLBodyElement.h"
-#include "HTMLDivElement.h"
-#include "HTMLHtmlElement.h"
-#include "HTMLTableCellElement.h"
-#include "HTMLTableElement.h"
-#include "HTMLTableRowElement.h"
-#include "HTMLTableSectionElement.h"
-#include "Text.h"
-#include "TextViewSourceParser.h"
-
-namespace WebCore {
-
-using namespace HTMLNames;
-
-HTMLViewSourceDocument::HTMLViewSourceDocument(Frame* frame, const URL& url, const String& mimeType)
-    : HTMLDocument(frame, url)
-    , m_type(mimeType)
-{
-    styleSheetCollection().setUsesBeforeAfterRulesOverride(true);
-    setIsViewSource(true);
-
-    setCompatibilityMode(QuirksMode);
-    lockCompatibilityMode();
-}
-
-PassRefPtr<DocumentParser> HTMLViewSourceDocument::createParser()
-{
-    if (m_type == "text/html" || m_type == "application/xhtml+xml" || m_type == "image/svg+xml" || DOMImplementation::isXMLMIMEType(m_type))
-        return HTMLViewSourceParser::create(*this);
-
-    return TextViewSourceParser::create(*this);
-}
-
-void HTMLViewSourceDocument::createContainingTable()
-{
-    RefPtr<HTMLHtmlElement> html = HTMLHtmlElement::create(*this);
-    parserAppendChild(html);
-    RefPtr<HTMLBodyElement> body = HTMLBodyElement::create(*this);
-    html->parserAppendChild(body);
-    // Create a line gutter div that can be used to make sure the gutter extends down the height of the whole
-    // document.
-    RefPtr<HTMLDivElement> div = HTMLDivElement::create(*this);
-    div->setAttribute(classAttr, "webkit-line-gutter-backdrop");
-    body->parserAppendChild(div);
-
-    RefPtr<HTMLTableElement> table = HTMLTableElement::create(*this);
-    body->parserAppendChild(table);
-    m_tbody = HTMLTableSectionElement::create(tbodyTag, *this);
-    table->parserAppendChild(m_tbody);
-    m_current = m_tbody;
-}
-
-void HTMLViewSourceDocument::addSource(const String& source, HTMLToken& token)
-{
-    if (!m_current)
-        createContainingTable();
-
-    switch (token.type()) {
-    case HTMLToken::Uninitialized:
-        ASSERT_NOT_REACHED();
-        break;
-    case HTMLToken::DOCTYPE:
-        processDoctypeToken(source, token);
-        break;
-    case HTMLToken::EndOfFile:
-        if (!m_tbody->hasChildNodes())
-            addLine(String());
-        break;
-    case HTMLToken::StartTag:
-    case HTMLToken::EndTag:
-        processTagToken(source, token);
-        break;
-    case HTMLToken::Comment:
-        processCommentToken(source, token);
-        break;
-    case HTMLToken::Character:
-        processCharacterToken(source, token);
-        break;
-    }
-}
-
-void HTMLViewSourceDocument::processDoctypeToken(const String& source, HTMLToken&)
-{
-    if (!m_current)
-        createContainingTable();
-    m_current = addSpanWithClassName("webkit-html-doctype");
-    addText(source, "webkit-html-doctype");
-    m_current = m_td;
-}
-
-void HTMLViewSourceDocument::processTagToken(const String& source, HTMLToken& token)
-{
-    m_current = addSpanWithClassName("webkit-html-tag");
-
-    AtomicString tagName(token.name());
-
-    unsigned index = 0;
-    HTMLToken::AttributeList::const_iterator iter = token.attributes().begin();
-    while (index < source.length()) {
-        if (iter == token.attributes().end()) {
-            // We want to show the remaining characters in the token.
-            index = addRange(source, index, source.length(), "");
-            ASSERT(index == source.length());
-            break;
-        }
-
-        AtomicString name(iter->name);
-        String value = StringImpl::create8BitIfPossible(iter->value);
-
-        index = addRange(source, index, iter->nameRange.start - token.startIndex(), "");
-        index = addRange(source, index, iter->nameRange.end - token.startIndex(), "webkit-html-attribute-name");
-
-        if (tagName == baseTag && name == hrefAttr)
-            m_current = addBase(value);
-
-        index = addRange(source, index, iter->valueRange.start - token.startIndex(), "");
-
-        bool isLink = name == srcAttr || name == hrefAttr;
-        index = addRange(source, index, iter->valueRange.end - token.startIndex(), "webkit-html-attribute-value", isLink, tagName == aTag, value);
-
-        ++iter;
-    }
-    m_current = m_td;
-}
-
-void HTMLViewSourceDocument::processCommentToken(const String& source, HTMLToken&)
-{
-    m_current = addSpanWithClassName("webkit-html-comment");
-    addText(source, "webkit-html-comment");
-    m_current = m_td;
-}
-
-void HTMLViewSourceDocument::processCharacterToken(const String& source, HTMLToken&)
-{
-    addText(source, "");
-}
-
-PassRefPtr<Element> HTMLViewSourceDocument::addSpanWithClassName(const AtomicString& className)
-{
-    if (m_current == m_tbody) {
-        addLine(className);
-        return m_current;
-    }
-
-    RefPtr<HTMLElement> span = HTMLElement::create(spanTag, *this);
-    span->setAttribute(classAttr, className);
-    m_current->parserAppendChild(span);
-    return span.release();
-}
-
-void HTMLViewSourceDocument::addLine(const AtomicString& className)
-{
-    // Create a table row.
-    RefPtr<HTMLTableRowElement> trow = HTMLTableRowElement::create(*this);
-    m_tbody->parserAppendChild(trow);
-
-    // Create a cell that will hold the line number (it is generated in the stylesheet using counters).
-    RefPtr<HTMLTableCellElement> td = HTMLTableCellElement::create(tdTag, *this);
-    td->setAttribute(classAttr, "webkit-line-number");
-    trow->parserAppendChild(td);
-
-    // Create a second cell for the line contents
-    td = HTMLTableCellElement::create(tdTag, *this);
-    td->setAttribute(classAttr, "webkit-line-content");
-    trow->parserAppendChild(td);
-    m_current = m_td = td;
-
-#ifdef DEBUG_LINE_NUMBERS
-    RefPtr<Text> lineNumberText = Text::create(*this, String::number(parser()->lineNumber() + 1) + " ");
-    td->addChild(lineNumberText);
-#endif
-
-    // Open up the needed spans.
-    if (!className.isEmpty()) {
-        if (className == "webkit-html-attribute-name" || className == "webkit-html-attribute-value")
-            m_current = addSpanWithClassName("webkit-html-tag");
-        m_current = addSpanWithClassName(className);
-    }
-}
-
-void HTMLViewSourceDocument::finishLine()
-{
-    if (!m_current->hasChildNodes()) {
-        RefPtr<HTMLBRElement> br = HTMLBRElement::create(*this);
-        m_current->parserAppendChild(br);
-    }
-    m_current = m_tbody;
-}
-
-void HTMLViewSourceDocument::addText(const String& text, const AtomicString& className)
-{
-    if (text.isEmpty())
-        return;
-
-    // Add in the content, splitting on newlines.
-    Vector<String> lines;
-    text.split('\n', true, lines);
-    unsigned size = lines.size();
-    for (unsigned i = 0; i < size; i++) {
-        String substring = lines[i];
-        if (m_current == m_tbody)
-            addLine(className);
-        if (substring.isEmpty()) {
-            if (i == size - 1)
-                break;
-            finishLine();
-            continue;
-        }
-        RefPtr<Text> text = Text::create(*this, substring);
-        m_current->parserAppendChild(text);
-        if (i < size - 1)
-            finishLine();
-    }
-}
-
-int HTMLViewSourceDocument::addRange(const String& source, int start, int end, const String& className, bool isLink, bool isAnchor, const String& link)
-{
-    ASSERT(start <= end);
-    if (start == end)
-        return start;
-
-    String text = source.substring(start, end - start);
-    if (!className.isEmpty()) {
-        if (isLink)
-            m_current = addLink(link, isAnchor);
-        else
-            m_current = addSpanWithClassName(className);
-    }
-    addText(text, className);
-    if (!className.isEmpty() && m_current != m_tbody)
-        m_current = toElement(m_current->parentNode());
-    return end;
-}
-
-PassRefPtr<Element> HTMLViewSourceDocument::addBase(const AtomicString& href)
-{
-    RefPtr<HTMLBaseElement> base = HTMLBaseElement::create(baseTag, *this);
-    base->setAttribute(hrefAttr, href);
-    m_current->parserAppendChild(base);
-    return base.release();
-}
-
-PassRefPtr<Element> HTMLViewSourceDocument::addLink(const AtomicString& url, bool isAnchor)
-{
-    if (m_current == m_tbody)
-        addLine("webkit-html-tag");
-
-    // Now create a link for the attribute value instead of a span.
-    RefPtr<HTMLAnchorElement> anchor = HTMLAnchorElement::create(*this);
-    const char* classValue;
-    if (isAnchor)
-        classValue = "webkit-html-attribute-value webkit-html-external-link";
-    else
-        classValue = "webkit-html-attribute-value webkit-html-resource-link";
-    anchor->setAttribute(classAttr, classValue);
-    anchor->setAttribute(targetAttr, "_blank");
-    anchor->setAttribute(hrefAttr, url);
-    m_current->parserAppendChild(anchor);
-    return anchor.release();
-}
-
-}
diff --git a/Source/WebCore/html/HTMLViewSourceDocument.h b/Source/WebCore/html/HTMLViewSourceDocument.h
deleted file mode 100644 (file)
index 5c592d2..0000000
+++ /dev/null
@@ -1,73 +0,0 @@
-/*
- * Copyright (C) 2006, 2008, 2009 Apple Inc. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in the
- *    documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY
- * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL APPLE COMPUTER, INC. OR
- * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
- * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
- * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
- * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
- */
-
-#ifndef HTMLViewSourceDocument_h
-#define HTMLViewSourceDocument_h
-
-#include "HTMLDocument.h"
-
-namespace WebCore {
-
-class HTMLTableCellElement;
-class HTMLTableSectionElement;
-class HTMLToken;
-
-class HTMLViewSourceDocument final : public HTMLDocument {
-public:
-    static PassRefPtr<HTMLViewSourceDocument> create(Frame* frame, const URL& url, const String& mimeType)
-    {
-        return adoptRef(new HTMLViewSourceDocument(frame, url, mimeType));
-    }
-
-    void addSource(const String&, HTMLToken&);
-
-private:
-    HTMLViewSourceDocument(Frame*, const URL&, const String& mimeType);
-
-    // Returns HTMLViewSourceParser or TextDocumentParser based on m_type.
-    virtual PassRefPtr<DocumentParser> createParser() override;
-
-    void processDoctypeToken(const String& source, HTMLToken&);
-    void processTagToken(const String& source, HTMLToken&);
-    void processCommentToken(const String& source, HTMLToken&);
-    void processCharacterToken(const String& source, HTMLToken&);
-
-    void createContainingTable();
-    PassRefPtr<Element> addSpanWithClassName(const AtomicString&);
-    void addLine(const AtomicString& className);
-    void finishLine();
-    void addText(const String& text, const AtomicString& className);
-    int addRange(const String& source, int start, int end, const String& className, bool isLink = false, bool isAnchor = false, const String& link = String());
-    PassRefPtr<Element> addLink(const AtomicString& url, bool isAnchor);
-    PassRefPtr<Element> addBase(const AtomicString& href);
-
-    String m_type;
-    RefPtr<Element> m_current;
-    RefPtr<HTMLTableSectionElement> m_tbody;
-    RefPtr<HTMLTableCellElement> m_td;
-};
-
-}
-
-#endif // HTMLViewSourceDocument_h
index 722ed90..1aeaa93 100644 (file)
@@ -114,7 +114,7 @@ public:
         m_type = EndOfFile;
     }
 
-    /* Range and offset methods exposed for HTMLSourceTracker and HTMLViewSourceParser */
+    /* Range and offset methods exposed for HTMLSourceTracker */
     int startIndex() const { return m_range.start; }
     int endIndex() const { return m_range.end; }
 
diff --git a/Source/WebCore/html/parser/HTMLViewSourceParser.cpp b/Source/WebCore/html/parser/HTMLViewSourceParser.cpp
deleted file mode 100644 (file)
index 35ccebe..0000000
+++ /dev/null
@@ -1,90 +0,0 @@
-/*
- * Copyright (C) 2010 Google, Inc. All Rights Reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in the
- *    documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY APPLE INC. ``AS IS'' AND ANY
- * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL APPLE INC. OR
- * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
- * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
- * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
- * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#include "config.h"
-#include "HTMLViewSourceParser.h"
-
-#include "HTMLDocumentParser.h"
-#include "HTMLNames.h"
-
-namespace WebCore {
-
-HTMLViewSourceParser::HTMLViewSourceParser(HTMLViewSourceDocument& document)
-    : DecodedDataDocumentParser(document)
-    , m_tokenizer(std::make_unique<HTMLTokenizer>(HTMLParserOptions(document)))
-{
-}
-
-HTMLViewSourceParser::~HTMLViewSourceParser()
-{
-}
-
-void HTMLViewSourceParser::insert(const SegmentedString&)
-{
-    ASSERT_NOT_REACHED();
-}
-
-void HTMLViewSourceParser::pumpTokenizer()
-{
-    while (true) {
-        m_sourceTracker.start(m_input.current(), m_tokenizer.get(), m_token);
-        if (!m_tokenizer->nextToken(m_input.current(), m_token))
-            break;
-        m_sourceTracker.end(m_input.current(), m_tokenizer.get(), m_token);
-
-        document()->addSource(sourceForToken(), m_token);
-        updateTokenizerState();
-        m_token.clear();
-    }
-}
-
-void HTMLViewSourceParser::append(PassRefPtr<StringImpl> input)
-{
-    m_input.appendToEnd(String(input));
-    pumpTokenizer();
-}
-
-String HTMLViewSourceParser::sourceForToken()
-{
-    return m_sourceTracker.sourceForToken(m_token);
-}
-
-void HTMLViewSourceParser::updateTokenizerState()
-{
-    // FIXME: The tokenizer should do this work for us.
-    if (m_token.type() != HTMLToken::StartTag)
-        return;
-    m_tokenizer->updateStateFor(AtomicString(m_token.name()));
-}
-
-void HTMLViewSourceParser::finish()
-{
-    if (!m_input.haveSeenEndOfFile())
-        m_input.markEndOfFile();
-    pumpTokenizer();
-    document()->finishedParsing();
-}
-
-}
diff --git a/Source/WebCore/html/parser/HTMLViewSourceParser.h b/Source/WebCore/html/parser/HTMLViewSourceParser.h
deleted file mode 100644 (file)
index c48adbe..0000000
+++ /dev/null
@@ -1,79 +0,0 @@
-/*
- * Copyright (C) 2010 Google, Inc. All Rights Reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in the
- *    documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY APPLE INC. ``AS IS'' AND ANY
- * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL APPLE INC. OR
- * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
- * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
- * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
- * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#ifndef HTMLViewSourceParser_h
-#define HTMLViewSourceParser_h
-
-#include "DecodedDataDocumentParser.h"
-#include "HTMLInputStream.h"
-#include "HTMLSourceTracker.h"
-#include "HTMLToken.h"
-#include "HTMLTokenizer.h"
-#include "HTMLViewSourceDocument.h"
-#include <wtf/PassOwnPtr.h>
-
-namespace WebCore {
-
-class HTMLTokenizer;
-class HTMLScriptRunner;
-class HTMLTreeBuilder;
-class HTMLPreloadScanner;
-class ScriptController;
-class ScriptSourceCode;
-
-class HTMLViewSourceParser : public DecodedDataDocumentParser {
-public:
-    static PassRefPtr<HTMLViewSourceParser> create(HTMLViewSourceDocument& document)
-    {
-        return adoptRef(new HTMLViewSourceParser(document));
-    }
-    virtual ~HTMLViewSourceParser();
-
-protected:
-    explicit HTMLViewSourceParser(HTMLViewSourceDocument&);
-
-    HTMLTokenizer* tokenizer() const { return m_tokenizer.get(); }
-
-private:
-    // DocumentParser
-    virtual void insert(const SegmentedString&) override;
-    virtual void append(PassRefPtr<StringImpl>) override;
-    virtual void finish() override;
-
-    HTMLViewSourceDocument* document() const { return static_cast<HTMLViewSourceDocument*>(DecodedDataDocumentParser::document()); }
-
-    void pumpTokenizer();
-    String sourceForToken();
-    void updateTokenizerState();
-
-    HTMLInputStream m_input;
-    HTMLToken m_token;
-    HTMLSourceTracker m_sourceTracker;
-    std::unique_ptr<HTMLTokenizer> m_tokenizer;
-};
-
-}
-
-#endif
diff --git a/Source/WebCore/html/parser/TextViewSourceParser.cpp b/Source/WebCore/html/parser/TextViewSourceParser.cpp
deleted file mode 100644 (file)
index 1f25721..0000000
+++ /dev/null
@@ -1,43 +0,0 @@
-/*
- * Copyright (C) 2010 Google, Inc. All Rights Reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in the
- *    documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY APPLE INC. ``AS IS'' AND ANY
- * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL APPLE INC. OR
- * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
- * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
- * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
- * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#include "config.h"
-#include "TextViewSourceParser.h"
-
-#include "HTMLTokenizer.h"
-
-namespace WebCore {
-
-TextViewSourceParser::TextViewSourceParser(HTMLViewSourceDocument& document)
-    : HTMLViewSourceParser(document)
-{
-    tokenizer()->setState(HTMLTokenizer::PLAINTEXTState);
-}
-
-TextViewSourceParser::~TextViewSourceParser()
-{
-}
-
-}
diff --git a/Source/WebCore/html/parser/TextViewSourceParser.h b/Source/WebCore/html/parser/TextViewSourceParser.h
deleted file mode 100644 (file)
index c80932c..0000000
+++ /dev/null
@@ -1,47 +0,0 @@
-/*
- * Copyright (C) 2010 Google, Inc. All Rights Reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in the
- *    documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY APPLE INC. ``AS IS'' AND ANY
- * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL APPLE INC. OR
- * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
- * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
- * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
- * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#ifndef TextViewSourceParser_h
-#define TextViewSourceParser_h
-
-#include "HTMLViewSourceParser.h"
-
-namespace WebCore {
-
-class TextViewSourceParser final : public HTMLViewSourceParser {
-public:
-    static PassRefPtr<TextViewSourceParser> create(HTMLViewSourceDocument& document)
-    {
-        return adoptRef(new TextViewSourceParser(document));
-    }
-    virtual ~TextViewSourceParser();
-
-private:
-    explicit TextViewSourceParser(HTMLViewSourceDocument&);
-};
-
-}
-
-#endif
index 619e356..ae62968 100644 (file)
@@ -56,17 +56,17 @@ body.platform-linux {
 }
 
 .tag-name {
-    /* Keep this in sync with view-source.css (.webkit-html-tag-name) */
+    /* Keep this in sync with XMLViewer.css (.tag) */
     color: rgb(136, 18, 128);
 }
 
 .node-id {
-    /* Keep this in sync with view-source.css (.webkit-html-attribute-value) */
+    /* Keep this in sync with XMLViewer.css (.attribute-value) */
     color: rgb(26, 26, 166);
 }
 
 .class-name {
-    /* Keep this in sync with view-source.css (.webkit-html-attribute-name) */
+    /* Keep this in sync with XMLViewer.css (.attribute-name) */
     color: rgb(153, 69, 0);
 }
 
index 9ccd324..273d3fe 100644 (file)
@@ -112,7 +112,7 @@ PassRefPtr<Document> DocumentWriter::createDocument(const URL& url)
 #endif
     if (!m_frame->loader().client().hasHTMLView())
         return Document::createNonRenderedPlaceholder(m_frame, url);
-    return DOMImplementation::createDocument(m_mimeType, m_frame, url, m_frame->inViewSourceMode());
+    return DOMImplementation::createDocument(m_mimeType, m_frame, url);
 }
 
 void DocumentWriter::begin(const URL& urlReference, bool dispatch, Document* ownerDocument)
index 3a05b5a..81830f0 100644 (file)
@@ -663,8 +663,6 @@ void FrameLoader::receivedFirstData()
 
     if (!m_documentLoader)
         return;
-    if (m_frame.document()->isViewSource())
-        return;
 
     double delay;
     String url;
index 38a6ca8..4935610 100644 (file)
@@ -176,7 +176,6 @@ Frame::Frame(Page& page, HTMLFrameOwnerElement* ownerElement, FrameLoaderClient&
 #if ENABLE(ORIENTATION_EVENTS)
     , m_orientation(0)
 #endif
-    , m_inViewSourceMode(false)
     , m_activeDOMObjectsAndAnimationsSuspendedCount(0)
 {
     AtomicString::init();
index 29944bc..7909cba 100644 (file)
@@ -181,9 +181,6 @@ namespace WebCore {
         bool shouldUsePrintingLayout() const;
         FloatSize resizePageRectsKeepingRatio(const FloatSize& originalSize, const FloatSize& expectedSize);
 
-        bool inViewSourceMode() const;
-        void setInViewSourceMode(bool = true);
-
         void setDocument(PassRefPtr<Document>);
 
         void setPageZoomFactor(float factor);
@@ -338,8 +335,6 @@ namespace WebCore {
         int m_orientation;
 #endif
 
-        bool m_inViewSourceMode;
-
 #if USE(TILED_BACKING_STORE)
     // FIXME: The tiled backing store belongs in FrameView, not Frame.
 
@@ -412,16 +407,6 @@ namespace WebCore {
         return m_ownerElement;
     }
 
-    inline bool Frame::inViewSourceMode() const
-    {
-        return m_inViewSourceMode;
-    }
-
-    inline void Frame::setInViewSourceMode(bool mode)
-    {
-        m_inViewSourceMode = mode;
-    }
-
     inline FrameTree& Frame::tree() const
     {
         return m_treeNode;
index 3e20d97..eb43672 100644 (file)
@@ -36,7 +36,7 @@ PassRefPtr<Document> DOMParser::parseFromString(const String& str, const String&
         return 0;
     }
 
-    RefPtr<Document> doc = DOMImplementation::createDocument(contentType, 0, URL(), false);
+    RefPtr<Document> doc = DOMImplementation::createDocument(contentType, 0, URL());
     doc->setContent(str);
     return doc.release();
 }
index 8514992..6b35890 100644 (file)
@@ -59,7 +59,7 @@ div.collapsible > div.hidden {
 }
 
 .tag {
-    /* Keep this in sync with inspector.css (.webkit-html-tag) */
+    /* Keep this in sync with inspector.css (.tag-name) */
     color: rgb(136, 18, 128);
 }
 
index cf0c15a..0e27619 100644 (file)
@@ -79,7 +79,7 @@ PassRefPtr<Document> XSLTProcessor::createDocumentFromSource(const String& sourc
         result = Document::create(frame, sourceIsDocument ? ownerDocument->url() : URL());
         transformTextStringToXHTMLDocumentString(documentSource);
     } else
-        result = DOMImplementation::createDocument(sourceMIMEType, frame, sourceIsDocument ? ownerDocument->url() : URL(), false);
+        result = DOMImplementation::createDocument(sourceMIMEType, frame, sourceIsDocument ? ownerDocument->url() : URL());
 
     // Before parsing, we need to save & detach the old document and get the new document
     // in place. We have to do this only if we're rendering the result document.
index 92884be..a63a088 100644 (file)
@@ -1,3 +1,13 @@
+2014-02-17  Anders Carlsson  <andersca@apple.com>
+
+        Remove view source code
+        https://bugs.webkit.org/show_bug.cgi?id=127233
+
+        Reviewed by Antti Koivisto.
+
+        * WebView/WebView.mm:
+        * WebView/WebViewPrivate.h:
+
 2014-02-17  Sergio Correia  <sergio.correia@openbossa.org>
 
         Replace uses of PassOwnPtr/OwnPtr with std::unique_ptr in WebCore/inspector
index 97b3e04..8a1c04b 100644 (file)
@@ -3331,18 +3331,6 @@ static inline IMP getMethod(id o, SEL s)
 }
 #endif // !PLATFORM(IOS)
 
-- (void)_setInViewSourceMode:(BOOL)flag
-{
-    if (Frame* mainFrame = [self _mainCoreFrame])
-        mainFrame->setInViewSourceMode(flag);
-}
-
-- (BOOL)_inViewSourceMode
-{
-    Frame* mainFrame = [self _mainCoreFrame];
-    return mainFrame && mainFrame->inViewSourceMode();
-}
-
 - (void)_setUseFastImageScalingMode:(BOOL)flag
 {
     if (_private->page && _private->page->inLowQualityImageInterpolationMode() != flag) {
index b13a041..ef7d22b 100644 (file)
@@ -697,18 +697,6 @@ Could be worth adding to the API.
 #endif /* TARGET_OS_IPHONE */
 
 /*!
-    @method _setInViewSourceMode:
-    @abstract Used to place a WebView into a special source-viewing mode.
-  */
-- (void)_setInViewSourceMode:(BOOL)flag;
-
-/*!
-    @method _inViewSourceMode;
-    @abstract Whether or not the WebView is in source-view mode for HTML.
-  */
-- (BOOL)_inViewSourceMode;
-
-/*!
     @method _attachScriptDebuggerToAllFrames
     @abstract Attaches a script debugger to all frames belonging to the receiver.
  */
index 130f088..8e98835 100644 (file)
@@ -1,3 +1,17 @@
+2014-02-17  Anders Carlsson  <andersca@apple.com>
+
+        Remove view source code
+        https://bugs.webkit.org/show_bug.cgi?id=127233
+
+        Reviewed by Antti Koivisto.
+
+        * WebFrame.cpp:
+        (WebFrame::inViewSourceMode):
+        (WebFrame::setInViewSourceMode):
+        * WebView.cpp:
+        (WebView::setInViewSourceMode):
+        (WebView::inViewSourceMode):
+
 2014-02-17  Sergio Correia  <sergio.correia@openbossa.org>
 
         Replace uses of PassOwnPtr/OwnPtr with std::unique_ptr in WebCore/inspector
index cece60e..ceab669 100644 (file)
@@ -1113,29 +1113,12 @@ void WebFrame::invalidate()
 
 HRESULT WebFrame::inViewSourceMode(BOOL* flag)
 {
-    if (!flag) {
-        ASSERT_NOT_REACHED();
-        return E_POINTER;
-    }
-
-    *flag = FALSE;
-
-    Frame* coreFrame = core(this);
-    if (!coreFrame)
-        return E_FAIL;
-
-    *flag = coreFrame->inViewSourceMode() ? TRUE : FALSE;
-    return S_OK;
+    return E_NOTIMPL;
 }
 
 HRESULT WebFrame::setInViewSourceMode(BOOL flag)
 {
-    Frame* coreFrame = core(this);
-    if (!coreFrame)
-        return E_FAIL;
-
-    coreFrame->setInViewSourceMode(!!flag);
-    return S_OK;
+    return E_NOTIMPL;
 }
 
 HRESULT WebFrame::elementWithName(BSTR name, IDOMElement* form, IDOMElement** element)
index 6aa7e6d..53ac7c9 100644 (file)
@@ -5114,19 +5114,13 @@ HRESULT STDMETHODCALLTYPE WebView::removeCustomDropTarget()
 HRESULT STDMETHODCALLTYPE WebView::setInViewSourceMode( 
         /* [in] */ BOOL flag)
 {
-    if (!m_mainFrame)
-        return E_FAIL;
-
-    return m_mainFrame->setInViewSourceMode(flag);
+    return E_NOTIMPL;
 }
     
 HRESULT STDMETHODCALLTYPE WebView::inViewSourceMode( 
         /* [retval][out] */ BOOL* flag)
 {
-    if (!m_mainFrame)
-        return E_FAIL;
-
-    return m_mainFrame->inViewSourceMode(flag);
+    return E_NOTIMPL;
 }
 
 HRESULT STDMETHODCALLTYPE WebView::viewWindow( 
index fd8fbd4..2069de5 100644 (file)
@@ -1,3 +1,17 @@
+2014-02-17  Anders Carlsson  <andersca@apple.com>
+
+        Remove view source code
+        https://bugs.webkit.org/show_bug.cgi?id=127233
+
+        Reviewed by Antti Koivisto.
+
+        * UIProcess/WebPageProxy.cpp:
+        (WebKit::WebPageProxy::WebPageProxy):
+        * UIProcess/WebPageProxy.h:
+        * WebProcess/WebPage/WebPage.cpp:
+        * WebProcess/WebPage/WebPage.h:
+        * WebProcess/WebPage/WebPage.messages.in:
+
 2014-02-17  Sergio Correia  <sergio.correia@openbossa.org>
 
         Replace uses of PassOwnPtr/OwnPtr with std::unique_ptr in WebCore/inspector
index 1202764..1eb8c46 100644 (file)
@@ -324,7 +324,6 @@ WebPageProxy::WebPageProxy(PageClient& pageClient, WebProcessProxy& process, uin
     , m_rubberBandsAtTop(true)
     , m_rubberBandsAtBottom(true)
     , m_backgroundExtendsBeyondPage(false)
-    , m_mainFrameInViewSourceMode(false)
     , m_shouldRecordNavigationSnapshots(false)
     , m_pageCount(0)
     , m_renderTreeSize(0)
@@ -4453,17 +4452,6 @@ void WebPageProxy::cancelComposition()
 }
 #endif // PLATFORM(GTK)
 
-void WebPageProxy::setMainFrameInViewSourceMode(bool mainFrameInViewSourceMode)
-{
-    if (m_mainFrameInViewSourceMode == mainFrameInViewSourceMode)
-        return;
-
-    m_mainFrameInViewSourceMode = mainFrameInViewSourceMode;
-
-    if (isValid())
-        m_process->send(Messages::WebPage::SetMainFrameInViewSourceMode(mainFrameInViewSourceMode), m_pageID);
-}
-
 void WebPageProxy::didSaveToPageCache()
 {
     m_process->didSaveToPageCache();
index b75341c..b574303 100644 (file)
@@ -861,9 +861,6 @@ public:
     bool autoSizingShouldExpandToViewHeight() const { return m_autoSizingShouldExpandToViewHeight; }
     void setAutoSizingShouldExpandToViewHeight(bool);
 
-    bool mainFrameInViewSourceMode() const { return m_mainFrameInViewSourceMode; }
-    void setMainFrameInViewSourceMode(bool);
-
     void didReceiveAuthenticationChallengeProxy(uint64_t frameID, PassRefPtr<AuthenticationChallengeProxy>);
 
     int64_t spellDocumentTag();
@@ -1395,8 +1392,6 @@ private:
 
     bool m_backgroundExtendsBeyondPage;
 
-    bool m_mainFrameInViewSourceMode;
-
     bool m_shouldRecordNavigationSnapshots;
 
     unsigned m_pageCount;
index d7bf1da..e599069 100644 (file)
@@ -3841,11 +3841,6 @@ void WebPage::didChangeSelection()
     send(Messages::WebPageProxy::EditorStateChanged(editorState()));
 }
 
-void WebPage::setMainFrameInViewSourceMode(bool inViewSourceMode)
-{
-    m_mainFrame->coreFrame()->setInViewSourceMode(inViewSourceMode);
-}
-
 void WebPage::setMinimumLayoutSize(const IntSize& minimumLayoutSize)
 {
     if (m_minimumLayoutSize == minimumLayoutSize)
index 440b8fd..a5cf4b0 100644 (file)
@@ -887,8 +887,6 @@ private:
 
     bool canHandleUserEvents() const;
 
-    void setMainFrameInViewSourceMode(bool);
-
     static bool platformCanHandleRequest(const WebCore::ResourceRequest&);
 
     static PluginView* focusedPluginViewForFrame(WebCore::Frame&);
index d29b79e..35b161e 100644 (file)
@@ -321,8 +321,6 @@ messages -> WebPage LegacyReceiver {
 #if PLATFORM(GTK) && USE(TEXTURE_MAPPER_GL)
     SetAcceleratedCompositingWindowId(int64_t id)
 #endif
-
-    SetMainFrameInViewSourceMode(bool inViewSourceMode)
-    
+  
     SetScrollPinningBehavior(uint32_t pinning)
 }