Changeset 164254 in webkit


Ignore:
Timestamp:
Feb 17, 2014 3:53:29 PM (10 years ago)
Author:
andersca@apple.com
Message:

Remove view source code
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:
Location:
trunk/Source
Files:
7 deleted
43 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/CMakeLists.txt

    r164131 r164254  
    14501450    html/HTMLUListElement.cpp
    14511451    html/HTMLVideoElement.cpp
    1452     html/HTMLViewSourceDocument.cpp
    14531452    html/HiddenInputType.cpp
    14541453    html/ImageData.cpp
     
    15491548    html/parser/HTMLTokenizer.cpp
    15501549    html/parser/HTMLTreeBuilder.cpp
    1551     html/parser/HTMLViewSourceParser.cpp
    15521550    html/parser/TextDocumentParser.cpp
    1553     html/parser/TextViewSourceParser.cpp
    15541551    html/parser/XSSAuditor.cpp
    15551552    html/parser/XSSAuditorDelegate.cpp
     
    25692566    ${WEBCORE_DIR}/css/quirks.css
    25702567    ${WEBCORE_DIR}/css/svg.css
    2571     ${WEBCORE_DIR}/css/view-source.css
    25722568)
    25732569
  • trunk/Source/WebCore/ChangeLog

    r164252 r164254  
     12014-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
    1652014-02-17  Simon Fraser  <simon.fraser@apple.com>
    266
  • trunk/Source/WebCore/DerivedSources.make

    r164131 r164254  
    847847# user agent style sheets
    848848
    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.css
     849USER_AGENT_STYLE_SHEETS = $(WebCore)/css/html.css $(WebCore)/css/quirks.css $(WebCore)/css/themeWin.css $(WebCore)/css/themeWinQuirks.css $(WebCore)/css/plugIns.css
    850850USER_AGENT_STYLE_SHEETS := $(USER_AGENT_STYLE_SHEETS) $(WebCore)/css/svg.css
    851851
  • trunk/Source/WebCore/GNUmakefile.am

    r164239 r164254  
    276276        $(WebCore)/css/mathml.css \
    277277        $(WebCore)/css/quirks.css \
    278         $(WebCore)/css/view-source.css \
    279278        $(WebCore)/css/svg.css \
    280279        $(WebCore)/css/mediaControls.css \
     
    702701        Source/WebCore/css/SVGCSSPropertyNames.in \
    703702        Source/WebCore/css/SVGCSSValueKeywords.in \
    704         Source/WebCore/css/view-source.css \
    705703        Source/WebCore/css/WebKitFontFamilyNames.in \
    706704        Source/WebCore/dom/EventNames.in \
  • trunk/Source/WebCore/GNUmakefile.list.am

    r164131 r164254  
    35273527        Source/WebCore/html/HTMLVideoElement.cpp \
    35283528        Source/WebCore/html/HTMLVideoElement.h \
    3529         Source/WebCore/html/HTMLViewSourceDocument.cpp \
    3530         Source/WebCore/html/HTMLViewSourceDocument.h \
    35313529        Source/WebCore/html/HiddenInputType.cpp \
    35323530        Source/WebCore/html/HiddenInputType.h \
     
    36023600        Source/WebCore/html/parser/HTMLTreeBuilder.cpp \
    36033601        Source/WebCore/html/parser/HTMLTreeBuilder.h \
    3604         Source/WebCore/html/parser/HTMLViewSourceParser.cpp \
    3605         Source/WebCore/html/parser/HTMLViewSourceParser.h \
    36063602        Source/WebCore/html/parser/InputStreamPreprocessor.h \
    36073603        Source/WebCore/html/parser/NestingLevelIncrementer.h \
    36083604        Source/WebCore/html/parser/TextDocumentParser.cpp \
    36093605        Source/WebCore/html/parser/TextDocumentParser.h \
    3610         Source/WebCore/html/parser/TextViewSourceParser.cpp \
    3611         Source/WebCore/html/parser/TextViewSourceParser.h \
    36123606        Source/WebCore/html/parser/XSSAuditor.cpp \
    36133607        Source/WebCore/html/parser/XSSAuditor.h \
  • trunk/Source/WebCore/WebCore.vcxproj/WebCore.vcxproj

    r164131 r164254  
    1557915579      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Production|x64'">true</ExcludedFromBuild>
    1558015580    </ClCompile>
    15581     <ClCompile Include="..\html\HTMLViewSourceDocument.cpp" />
    1558215581    <ClCompile Include="..\html\ImageData.cpp" />
    1558315582    <ClCompile Include="..\html\ImageDocument.cpp" />
     
    1563115630    <ClCompile Include="..\html\parser\HTMLTokenizer.cpp" />
    1563215631    <ClCompile Include="..\html\parser\HTMLTreeBuilder.cpp" />
    15633     <ClCompile Include="..\html\parser\HTMLViewSourceParser.cpp" />
    1563415632    <ClCompile Include="..\html\parser\TextDocumentParser.cpp" />
    15635     <ClCompile Include="..\html\parser\TextViewSourceParser.cpp" />
    1563615633    <ClCompile Include="..\html\parser\XSSAuditor.cpp" />
    1563715634    <ClCompile Include="..\html\parser\XSSAuditorDelegate.cpp" />
     
    2032520322    <ClInclude Include="..\html\HTMLUListElement.h" />
    2032620323    <ClInclude Include="..\html\HTMLVideoElement.h" />
    20327     <ClInclude Include="..\html\HTMLViewSourceDocument.h" />
    2032820324    <ClInclude Include="..\html\ImageData.h" />
    2032920325    <ClInclude Include="..\html\ImageDocument.h" />
     
    2038620382    <ClInclude Include="..\html\parser\HTMLTokenizer.h" />
    2038720383    <ClInclude Include="..\html\parser\HTMLTreeBuilder.h" />
    20388     <ClInclude Include="..\html\parser\HTMLViewSourceParser.h" />
    2038920384    <ClInclude Include="..\html\parser\InputStreamPreprocessor.h" />
    2039020385    <ClInclude Include="..\html\parser\NestingLevelIncrementer.h" />
    2039120386    <ClInclude Include="..\html\parser\TextDocumentParser.h" />
    20392     <ClInclude Include="..\html\parser\TextViewSourceParser.h" />
    2039320387    <ClInclude Include="..\html\parser\XSSAuditor.h" />
    2039420388    <ClInclude Include="..\html\parser\XSSAuditorDelegate.h" />
     
    2084120835    <None Include="..\css\themeWin.css" />
    2084220836    <None Include="..\css\themeWinQuirks.css" />
    20843     <None Include="..\css\view-source.css" />
    2084420837    <None Include="..\Modules\mediacontrols\mediaControlsApple.css" />
    2084520838    <None Include="..\Modules\mediacontrols\mediaControlsApple.js" />
  • trunk/Source/WebCore/WebCore.vcxproj/WebCore.vcxproj.filters

    r164131 r164254  
    39643964      <Filter>html</Filter>
    39653965    </ClCompile>
    3966     <ClCompile Include="..\html\HTMLViewSourceDocument.cpp">
    3967       <Filter>html</Filter>
    3968     </ClCompile>
    39693966    <ClCompile Include="..\html\ImageData.cpp">
    39703967      <Filter>html</Filter>
     
    41204117      <Filter>html\parser</Filter>
    41214118    </ClCompile>
    4122     <ClCompile Include="..\html\parser\HTMLViewSourceParser.cpp">
    4123       <Filter>html\parser</Filter>
    4124     </ClCompile>
    41254119    <ClCompile Include="..\html\parser\TextDocumentParser.cpp">
    4126       <Filter>html\parser</Filter>
    4127     </ClCompile>
    4128     <ClCompile Include="..\html\parser\TextViewSourceParser.cpp">
    41294120      <Filter>html\parser</Filter>
    41304121    </ClCompile>
     
    1095910950      <Filter>html</Filter>
    1096010951    </ClInclude>
    10961     <ClInclude Include="..\html\HTMLViewSourceDocument.h">
    10962       <Filter>html</Filter>
    10963     </ClInclude>
    1096410952    <ClInclude Include="..\html\ImageData.h">
    1096510953      <Filter>html</Filter>
     
    1114211130      <Filter>html\parser</Filter>
    1114311131    </ClInclude>
    11144     <ClInclude Include="..\html\parser\HTMLViewSourceParser.h">
    11145       <Filter>html\parser</Filter>
    11146     </ClInclude>
    1114711132    <ClInclude Include="..\html\parser\InputStreamPreprocessor.h">
    1114811133      <Filter>html\parser</Filter>
     
    1115211137    </ClInclude>
    1115311138    <ClInclude Include="..\html\parser\TextDocumentParser.h">
    11154       <Filter>html\parser</Filter>
    11155     </ClInclude>
    11156     <ClInclude Include="..\html\parser\TextViewSourceParser.h">
    1115711139      <Filter>html\parser</Filter>
    1115811140    </ClInclude>
     
    1491214894    <None Include="WebCorePreBuild.cmd" />
    1491314895    <None Include="..\css\mathml.css">
    14914       <Filter>css</Filter>
    14915     </None>
    14916     <None Include="..\css\view-source.css">
    1491714896      <Filter>css</Filter>
    1491814897    </None>
  • trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj

    r164144 r164254  
    33643364                977B3877122883E900B81FF8 /* HTMLTokenizer.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 977B385E122883E900B81FF8 /* HTMLTokenizer.cpp */; };
    33653365                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 */; };
    33683366                977E2DCD12F0E28300C13379 /* HTMLSourceTracker.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 977E2DCB12F0E28300C13379 /* HTMLSourceTracker.cpp */; };
    33693367                977E2DCE12F0E28300C13379 /* HTMLSourceTracker.h in Headers */ = {isa = PBXBuildFile; fileRef = 977E2DCC12F0E28300C13379 /* HTMLSourceTracker.h */; };
     
    34593457                97BC84841236FD93000C6161 /* TextDocumentParser.h in Headers */ = {isa = PBXBuildFile; fileRef = 97BC84821236FD93000C6161 /* TextDocumentParser.h */; };
    34603458                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 */; };
    34633459                97BC84B312371180000C6161 /* TextDocument.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 97BC84B112371180000C6161 /* TextDocument.cpp */; };
    34643460                97BC84B412371180000C6161 /* TextDocument.h in Headers */ = {isa = PBXBuildFile; fileRef = 97BC84B212371180000C6161 /* TextDocument.h */; };
     
    51915187                BCCBAD400C18C14200CE890F /* JSHTMLCollection.cpp in Sources */ = {isa = PBXBuildFile; fileRef = BCCBAD3E0C18C14200CE890F /* JSHTMLCollection.cpp */; };
    51925188                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 */; };
    51955189                BCCFBAE80B5152ED0001F1D7 /* DocumentParser.h in Headers */ = {isa = PBXBuildFile; fileRef = BCCFBAE70B5152ED0001F1D7 /* DocumentParser.h */; settings = {ATTRIBUTES = (Private, ); }; };
    51965190                BCD0E0FA0E972C3500265DEA /* SecurityOrigin.cpp in Sources */ = {isa = PBXBuildFile; fileRef = BCD0E0F70E972C3500265DEA /* SecurityOrigin.cpp */; };
     
    1029810292                977B385E122883E900B81FF8 /* HTMLTokenizer.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = HTMLTokenizer.cpp; path = parser/HTMLTokenizer.cpp; sourceTree = "<group>"; };
    1029910293                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>"; };
    1030210294                977E2DCB12F0E28300C13379 /* HTMLSourceTracker.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = HTMLSourceTracker.cpp; path = parser/HTMLSourceTracker.cpp; sourceTree = "<group>"; };
    1030310295                977E2DCC12F0E28300C13379 /* HTMLSourceTracker.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = HTMLSourceTracker.h; path = parser/HTMLSourceTracker.h; sourceTree = "<group>"; };
     
    1040910401                97BC84821236FD93000C6161 /* TextDocumentParser.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = TextDocumentParser.h; path = parser/TextDocumentParser.h; sourceTree = "<group>"; };
    1041010402                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>"; };
    1041310403                97BC84B112371180000C6161 /* TextDocument.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = TextDocument.cpp; sourceTree = "<group>"; };
    1041410404                97BC84B212371180000C6161 /* TextDocument.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TextDocument.h; sourceTree = "<group>"; };
     
    1219312183                BC5EBA0E0E823E4700B25965 /* KeyframeList.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = KeyframeList.cpp; path = style/KeyframeList.cpp; sourceTree = "<group>"; };
    1219412184                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>"; };
    1219612185                BC6049CB0DB560C200204739 /* CSSCanvasValue.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CSSCanvasValue.h; sourceTree = "<group>"; };
    1219712186                BC604A420DB5634E00204739 /* CSSCanvasValue.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = CSSCanvasValue.cpp; sourceTree = "<group>"; };
     
    1238812377                BCCBAD3E0C18C14200CE890F /* JSHTMLCollection.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = JSHTMLCollection.cpp; sourceTree = "<group>"; };
    1238912378                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>"; };
    1239212379                BCCFBAE70B5152ED0001F1D7 /* DocumentParser.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = DocumentParser.h; sourceTree = "<group>"; };
    1239312380                BCD0E0F70E972C3500265DEA /* SecurityOrigin.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = SecurityOrigin.cpp; sourceTree = "<group>"; };
     
    1735517342                                E44613990CD6331000FADA75 /* HTMLVideoElement.h */,
    1735617343                                E446139A0CD6331000FADA75 /* HTMLVideoElement.idl */,
    17357                                 BCCD74E40A4C8DDF005FDA6D /* HTMLViewSourceDocument.cpp */,
    17358                                 BCCD74DB0A4C8D35005FDA6D /* HTMLViewSourceDocument.h */,
    1735917344                                A77979130D6B9D0C003851B9 /* ImageData.cpp */,
    1736017345                                A77979140D6B9D0C003851B9 /* ImageData.h */,
     
    1782017805                                977B37211228721700B81FF8 /* HTMLTreeBuilder.cpp */,
    1782117806                                977B37221228721700B81FF8 /* HTMLTreeBuilder.h */,
    17822                                 977B3860122883E900B81FF8 /* HTMLViewSourceParser.cpp */,
    17823                                 977B3861122883E900B81FF8 /* HTMLViewSourceParser.h */,
    1782417807                                A8805AF116C96AEA000E9D98 /* InputStreamPreprocessor.h */,
    1782517808                                8A309C9E123950BE00CB9204 /* NestingLevelIncrementer.h */,
    1782617809                                97BC84811236FD93000C6161 /* TextDocumentParser.cpp */,
    1782717810                                97BC84821236FD93000C6161 /* TextDocumentParser.h */,
    17828                                 97BC84A212370DC7000C6161 /* TextViewSourceParser.cpp */,
    17829                                 97BC84A312370DC8000C6161 /* TextViewSourceParser.h */,
    1783017811                                977E2E0B12F0FC9C00C13379 /* XSSAuditor.cpp */,
    1783117812                                977E2E0C12F0FC9C00C13379 /* XSSAuditor.h */,
     
    2153421515                                FB484F4A171F821E00040755 /* TransformFunctions.cpp */,
    2153521516                                FB484F4B171F821E00040755 /* TransformFunctions.h */,
    21536                                 BC5EC1760A507E3E006007F5 /* view-source.css */,
    2153721517                                3FFFF9AB159D9B060020BBD5 /* ViewportStyleResolver.cpp */,
    2153821518                                3FFFF9AC159D9B060020BBD5 /* ViewportStyleResolver.h */,
     
    2385923839                                E44613AB0CD6331000FADA75 /* HTMLVideoElement.h in Headers */,
    2386023840                                07277E4D17D018CC0015534D /* JSMediaStream.h in Headers */,
    23861                                 BCCD74DC0A4C8D35005FDA6D /* HTMLViewSourceDocument.h in Headers */,
    23862                                 977B387A122883E900B81FF8 /* HTMLViewSourceParser.h in Headers */,
    2386323841                                514C76710CE923A1007EF3CD /* HTTPHeaderMap.h in Headers */,
    2386423842                                073AB4B817F92ECF006E0D6F /* JSCapabilityRange.h in Headers */,
     
    2565725635                                B1AD4E7413A12A4600846B27 /* TextTrackLoader.h in Headers */,
    2565825636                                498770F11242C535002226BA /* Texture.h in Headers */,
    25659                                 97BC84A512370DC8000C6161 /* TextViewSourceParser.h in Headers */,
    2566025637                                BCE658FF0EA9248A007E4533 /* Theme.h in Headers */,
    2566125638                                BCE659E60EA92FB2007E4533 /* ThemeMac.h in Headers */,
     
    2720427181                                E44613AA0CD6331000FADA75 /* HTMLVideoElement.cpp in Sources */,
    2720527182                                E125F8381822F1EB00D84CD9 /* CryptoAlgorithmHMACMac.cpp in Sources */,
    27206                                 BCCD74E50A4C8DDF005FDA6D /* HTMLViewSourceDocument.cpp in Sources */,
    27207                                 977B3879122883E900B81FF8 /* HTMLViewSourceParser.cpp in Sources */,
    2720827183                                E1C266D818317AB4003F8B33 /* CryptoAlgorithmRSASSA_PKCS1_v1_5Mac.cpp in Sources */,
    2720927184                                A584FE2F1864CB8400843B10 /* WebInjectedScriptManager.cpp in Sources */,
     
    2889228867                                CD1E7347167BC78E009A885D /* TextTrackRepresentation.cpp in Sources */,
    2889328868                                498770F01242C535002226BA /* Texture.cpp in Sources */,
    28894                                 97BC84A412370DC8000C6161 /* TextViewSourceParser.cpp in Sources */,
    2889528869                                BCE65D320EAD1211007E4533 /* Theme.cpp in Sources */,
    2889628870                                E4C3B1FC0F0E4170009693F6 /* TileCache.mm in Sources */,
  • trunk/Source/WebCore/bindings/js/ScriptController.cpp

    r163725 r164254  
    487487    }
    488488
    489     if (m_frame.document() && m_frame.document()->isViewSource()) {
    490         ASSERT(m_frame.document()->securityOrigin()->isUnique());
    491         return true;
    492     }
    493 
    494489    if (!m_frame.page())
    495490        return false;
  • trunk/Source/WebCore/css/CSSDefaultStyleSheets.cpp

    r163440 r164254  
    4848RuleSet* CSSDefaultStyleSheets::defaultQuirksStyle;
    4949RuleSet* CSSDefaultStyleSheets::defaultPrintStyle;
    50 RuleSet* CSSDefaultStyleSheets::defaultViewSourceStyle;
    5150
    5251StyleSheetContents* CSSDefaultStyleSheets::simpleDefaultStyleSheet;
     
    146145}
    147146
    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 
    159147void CSSDefaultStyleSheets::ensureDefaultStyleSheetsForElement(Element* element, bool& changedDefaultStyle)
    160148{
  • trunk/Source/WebCore/css/CSSDefaultStyleSheets.h

    r141844 r164254  
    3535    static RuleSet* defaultQuirksStyle;
    3636    static RuleSet* defaultPrintStyle;
    37     static RuleSet* defaultViewSourceStyle;
    3837
    3938    static StyleSheetContents* simpleDefaultStyleSheet;
     
    5049    static void loadSimpleDefaultStyle();
    5150    static void initDefaultStyle(Element*);
    52     static RuleSet* viewSourceStyle();
    5351};
    5452
  • trunk/Source/WebCore/css/DocumentRuleSets.cpp

    r163378 r164254  
    8484}
    8585
    86 void DocumentRuleSets::appendAuthorStyleSheets(unsigned firstNew, const Vector<RefPtr<CSSStyleSheet>>& styleSheets, MediaQueryEvaluator* medium, InspectorCSSOMWrappers& inspectorCSSOMWrappers, bool isViewSource, StyleResolver* resolver)
     86void DocumentRuleSets::appendAuthorStyleSheets(unsigned firstNew, const Vector<RefPtr<CSSStyleSheet>>& styleSheets, MediaQueryEvaluator* medium, InspectorCSSOMWrappers& inspectorCSSOMWrappers, StyleResolver* resolver)
    8787{
    8888    // This handles sheets added to the end of the stylesheet list only. In other cases the style resolver
     
    9898    }
    9999    m_authorStyle->shrinkToFit();
    100     collectFeatures(isViewSource);
     100    collectFeatures();
    101101}
    102102
    103 void DocumentRuleSets::collectFeatures(bool isViewSource)
     103void DocumentRuleSets::collectFeatures()
    104104{
    105105    m_features.clear();
     
    111111    if (m_authorStyle)
    112112        m_features.add(m_authorStyle->features());
    113     if (isViewSource)
    114         m_features.add(CSSDefaultStyleSheets::viewSourceStyle()->features());
    115 
    116113    if (m_userStyle)
    117114        m_features.add(m_userStyle->features());
  • trunk/Source/WebCore/css/DocumentRuleSets.h

    r163378 r164254  
    5252    void initUserStyle(DocumentStyleSheetCollection&, const MediaQueryEvaluator&, StyleResolver&);
    5353    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*);
    5555
    56     void collectFeatures(bool isViewSource);
     56    void collectFeatures();
    5757
    5858private:
  • trunk/Source/WebCore/css/ElementRuleCollector.cpp

    r164251 r164254  
    258258    if (m_element.document().inQuirksMode())
    259259        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());
    264260}
    265261
  • trunk/Source/WebCore/css/StyleResolver.cpp

    r164224 r164254  
    305305void StyleResolver::appendAuthorStyleSheets(unsigned firstNew, const Vector<RefPtr<CSSStyleSheet>>& styleSheets)
    306306{
    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);
    308308    if (auto renderView = document().renderView())
    309309        renderView->style().font().update(fontSelector());
     
    792792    CSSDefaultStyleSheets::ensureDefaultStyleSheetsForElement(element, needsCollection);
    793793    if (needsCollection)
    794         m_ruleSets.collectFeatures(document().isViewSource());
     794        m_ruleSets.collectFeatures();
    795795
    796796    ElementRuleCollector collector(*element, state.style(), m_ruleSets, m_selectorFilter);
  • trunk/Source/WebCore/dom/DOMImplementation.cpp

    r163440 r164254  
    3636#include "FTPDirectoryDocument.h"
    3737#include "HTMLDocument.h"
    38 #include "HTMLViewSourceDocument.h"
    3938#include "Image.h"
    4039#include "ImageDocument.h"
     
    301300}
    302301
    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 
     302PassRefPtr<Document> DOMImplementation::createDocument(const String& type, Frame* frame, const URL& url)
     303{
    308304    // Plugins cannot take HTML and XHTML from us, and we don't even need to initialize the plugin database for those.
    309305    if (type == "text/html")
  • trunk/Source/WebCore/dom/DOMImplementation.h

    r162691 r164254  
    6565
    6666    // 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&);
    6868
    6969    static bool isXMLMIMEType(const String& MIMEType);
  • trunk/Source/WebCore/dom/Document.cpp

    r164251 r164254  
    459459    , m_isSynthesized(constructionFlags & Synthesized)
    460460    , m_isNonRenderedPlaceholder(constructionFlags & NonRenderedPlaceholder)
    461     , m_isViewSource(false)
    462461    , m_sawElementsInKnownNamespaces(false)
    463462    , m_isSrcdocDocument(false)
     
    19171916    marginBottom = style->marginBottom().isAuto() ? marginBottom : intValueForLength(style->marginBottom(), width, view);
    19181917    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());
    19281918}
    19291919
  • trunk/Source/WebCore/dom/Document.h

    r164248 r164254  
    517517    StyleResolver* styleResolverIfExists() const { return m_styleResolver.get(); }
    518518
    519     bool isViewSource() const { return m_isViewSource; }
    520     void setIsViewSource(bool);
    521 
    522519    bool sawElementsInKnownNamespaces() const { return m_sawElementsInKnownNamespaces; }
    523520
     
    15381535    bool m_isNonRenderedPlaceholder;
    15391536
    1540     bool m_isViewSource;
    15411537    bool m_sawElementsInKnownNamespaces;
    15421538    bool m_isSrcdocDocument;
  • trunk/Source/WebCore/html/HTMLAttributeNames.in

    r163483 r164254  
    342342valuetype
    343343version
    344 viewsource
    345344vlink
    346345vspace
  • trunk/Source/WebCore/html/HTMLFrameElementBase.cpp

    r162272 r164254  
    5050    , m_marginWidth(-1)
    5151    , m_marginHeight(-1)
    52     , m_viewSource(false)
    5352{
    5453    setHasCustomStyleResolveCallbacks();
     
    8887
    8988    parentFrame->loader().subframeLoader().requestFrame(*this, m_URL, m_frameName, lockHistory, lockBackForwardList);
    90     if (contentFrame())
    91         contentFrame()->setInViewSourceMode(viewSourceMode());
    9289}
    9390
  • trunk/Source/WebCore/html/HTMLFrameElementBase.h

    r164131 r164254  
    6464    virtual bool isFrameElementBase() const override { return true; }
    6565
    66     bool viewSourceMode() const { return m_viewSource; }
    67 
    6866    void setNameAndOpenURL();
    6967    void openURL(bool lockHistory = true, bool lockBackForwardList = true);
     
    7674    int m_marginWidth;
    7775    int m_marginHeight;
    78 
    79     bool m_viewSource;
    8076};
    8177
  • trunk/Source/WebCore/html/parser/HTMLToken.h

    r162275 r164254  
    115115    }
    116116
    117     /* Range and offset methods exposed for HTMLSourceTracker and HTMLViewSourceParser */
     117    /* Range and offset methods exposed for HTMLSourceTracker */
    118118    int startIndex() const { return m_range.start; }
    119119    int endIndex() const { return m_range.end; }
  • trunk/Source/WebCore/inspector/InspectorOverlayPage.css

    r157199 r164254  
    5757
    5858.tag-name {
    59     /* Keep this in sync with view-source.css (.webkit-html-tag-name) */
     59    /* Keep this in sync with XMLViewer.css (.tag) */
    6060    color: rgb(136, 18, 128);
    6161}
    6262
    6363.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) */
    6565    color: rgb(26, 26, 166);
    6666}
    6767
    6868.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) */
    7070    color: rgb(153, 69, 0);
    7171}
  • trunk/Source/WebCore/loader/DocumentWriter.cpp

    r163466 r164254  
    113113    if (!m_frame->loader().client().hasHTMLView())
    114114        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);
    116116}
    117117
  • trunk/Source/WebCore/loader/FrameLoader.cpp

    r163983 r164254  
    664664    if (!m_documentLoader)
    665665        return;
    666     if (m_frame.document()->isViewSource())
    667         return;
    668666
    669667    double delay;
  • trunk/Source/WebCore/page/Frame.cpp

    r163712 r164254  
    177177    , m_orientation(0)
    178178#endif
    179     , m_inViewSourceMode(false)
    180179    , m_activeDOMObjectsAndAnimationsSuspendedCount(0)
    181180{
  • trunk/Source/WebCore/page/Frame.h

    r163920 r164254  
    182182        FloatSize resizePageRectsKeepingRatio(const FloatSize& originalSize, const FloatSize& expectedSize);
    183183
    184         bool inViewSourceMode() const;
    185         void setInViewSourceMode(bool = true);
    186 
    187184        void setDocument(PassRefPtr<Document>);
    188185
     
    339336#endif
    340337
    341         bool m_inViewSourceMode;
    342 
    343338#if USE(TILED_BACKING_STORE)
    344339    // FIXME: The tiled backing store belongs in FrameView, not Frame.
     
    413408    }
    414409
    415     inline bool Frame::inViewSourceMode() const
    416     {
    417         return m_inViewSourceMode;
    418     }
    419 
    420     inline void Frame::setInViewSourceMode(bool mode)
    421     {
    422         m_inViewSourceMode = mode;
    423     }
    424 
    425410    inline FrameTree& Frame::tree() const
    426411    {
  • trunk/Source/WebCore/xml/DOMParser.cpp

    r156550 r164254  
    3737    }
    3838
    39     RefPtr<Document> doc = DOMImplementation::createDocument(contentType, 0, URL(), false);
     39    RefPtr<Document> doc = DOMImplementation::createDocument(contentType, 0, URL());
    4040    doc->setContent(str);
    4141    return doc.release();
  • trunk/Source/WebCore/xml/XMLViewer.css

    r162269 r164254  
    6060
    6161.tag {
    62     /* Keep this in sync with inspector.css (.webkit-html-tag) */
     62    /* Keep this in sync with inspector.css (.tag-name) */
    6363    color: rgb(136, 18, 128);
    6464}
  • trunk/Source/WebCore/xml/XSLTProcessor.cpp

    r157002 r164254  
    8080        transformTextStringToXHTMLDocumentString(documentSource);
    8181    } else
    82         result = DOMImplementation::createDocument(sourceMIMEType, frame, sourceIsDocument ? ownerDocument->url() : URL(), false);
     82        result = DOMImplementation::createDocument(sourceMIMEType, frame, sourceIsDocument ? ownerDocument->url() : URL());
    8383
    8484    // Before parsing, we need to save & detach the old document and get the new document
  • trunk/Source/WebKit/mac/ChangeLog

    r164245 r164254  
     12014-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
    1112014-02-17  Sergio Correia  <sergio.correia@openbossa.org>
    212
  • trunk/Source/WebKit/mac/WebView/WebView.mm

    r164152 r164254  
    33323332#endif // !PLATFORM(IOS)
    33333333
    3334 - (void)_setInViewSourceMode:(BOOL)flag
    3335 {
    3336     if (Frame* mainFrame = [self _mainCoreFrame])
    3337         mainFrame->setInViewSourceMode(flag);
    3338 }
    3339 
    3340 - (BOOL)_inViewSourceMode
    3341 {
    3342     Frame* mainFrame = [self _mainCoreFrame];
    3343     return mainFrame && mainFrame->inViewSourceMode();
    3344 }
    3345 
    33463334- (void)_setUseFastImageScalingMode:(BOOL)flag
    33473335{
  • trunk/Source/WebKit/mac/WebView/WebViewPrivate.h

    r162504 r164254  
    698698
    699699/*!
    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 /*!
    712700    @method _attachScriptDebuggerToAllFrames
    713701    @abstract Attaches a script debugger to all frames belonging to the receiver.
  • trunk/Source/WebKit/win/ChangeLog

    r164245 r164254  
     12014-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
    1152014-02-17  Sergio Correia  <sergio.correia@openbossa.org>
    216
  • trunk/Source/WebKit/win/WebFrame.cpp

    r163903 r164254  
    11141114HRESULT WebFrame::inViewSourceMode(BOOL* flag)
    11151115{
    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;
    11291117}
    11301118
    11311119HRESULT WebFrame::setInViewSourceMode(BOOL flag)
    11321120{
    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;
    11391122}
    11401123
  • trunk/Source/WebKit/win/WebView.cpp

    r164141 r164254  
    51155115        /* [in] */ BOOL flag)
    51165116{
    5117     if (!m_mainFrame)
    5118         return E_FAIL;
    5119 
    5120     return m_mainFrame->setInViewSourceMode(flag);
     5117    return E_NOTIMPL;
    51215118}
    51225119   
     
    51245121        /* [retval][out] */ BOOL* flag)
    51255122{
    5126     if (!m_mainFrame)
    5127         return E_FAIL;
    5128 
    5129     return m_mainFrame->inViewSourceMode(flag);
     5123    return E_NOTIMPL;
    51305124}
    51315125
  • trunk/Source/WebKit2/ChangeLog

    r164245 r164254  
     12014-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
    1152014-02-17  Sergio Correia  <sergio.correia@openbossa.org>
    216
  • trunk/Source/WebKit2/UIProcess/WebPageProxy.cpp

    r164181 r164254  
    325325    , m_rubberBandsAtBottom(true)
    326326    , m_backgroundExtendsBeyondPage(false)
    327     , m_mainFrameInViewSourceMode(false)
    328327    , m_shouldRecordNavigationSnapshots(false)
    329328    , m_pageCount(0)
     
    44544453#endif // PLATFORM(GTK)
    44554454
    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 
    44674455void WebPageProxy::didSaveToPageCache()
    44684456{
  • trunk/Source/WebKit2/UIProcess/WebPageProxy.h

    r164230 r164254  
    862862    void setAutoSizingShouldExpandToViewHeight(bool);
    863863
    864     bool mainFrameInViewSourceMode() const { return m_mainFrameInViewSourceMode; }
    865     void setMainFrameInViewSourceMode(bool);
    866 
    867864    void didReceiveAuthenticationChallengeProxy(uint64_t frameID, PassRefPtr<AuthenticationChallengeProxy>);
    868865
     
    13961393    bool m_backgroundExtendsBeyondPage;
    13971394
    1398     bool m_mainFrameInViewSourceMode;
    1399 
    14001395    bool m_shouldRecordNavigationSnapshots;
    14011396
  • trunk/Source/WebKit2/WebProcess/WebPage/WebPage.cpp

    r164192 r164254  
    38423842}
    38433843
    3844 void WebPage::setMainFrameInViewSourceMode(bool inViewSourceMode)
    3845 {
    3846     m_mainFrame->coreFrame()->setInViewSourceMode(inViewSourceMode);
    3847 }
    3848 
    38493844void WebPage::setMinimumLayoutSize(const IntSize& minimumLayoutSize)
    38503845{
  • trunk/Source/WebKit2/WebProcess/WebPage/WebPage.h

    r164192 r164254  
    888888    bool canHandleUserEvents() const;
    889889
    890     void setMainFrameInViewSourceMode(bool);
    891 
    892890    static bool platformCanHandleRequest(const WebCore::ResourceRequest&);
    893891
  • trunk/Source/WebKit2/WebProcess/WebPage/WebPage.messages.in

    r164192 r164254  
    322322    SetAcceleratedCompositingWindowId(int64_t id)
    323323#endif
    324 
    325     SetMainFrameInViewSourceMode(bool inViewSourceMode)
    326    
     324 
    327325    SetScrollPinningBehavior(uint32_t pinning)
    328326}
Note: See TracChangeset for help on using the changeset viewer.