<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[170710] trunk/Source</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://trac.webkit.org/projects/webkit/changeset/170710">170710</a></dd>
<dt>Author</dt> <dd>mitz@apple.com</dd>
<dt>Date</dt> <dd>2014-07-02 10:33:32 -0700 (Wed, 02 Jul 2014)</dd>
</dl>

<h3>Log Message</h3>
<pre>Remove some code only needed for versions of Safari that are no longer supported
https://bugs.webkit.org/show_bug.cgi?id=134537

Reviewed by Anders Carlsson.

Source/WebCore:
* bindings/objc/DOMHTML.mm:
(-[DOMHTMLInputElement _rectOnScreen]): Deleted.
(-[DOMHTMLInputElement _replaceCharactersInRange:withString:selectingFromIndex:]): Deleted.
(-[DOMHTMLInputElement _selectedRange]): Deleted.
* bindings/objc/DOMPrivate.h:
* editing/EditorCommand.cpp:
(WebCore::createCommandMap):

Source/WebKit/mac:
* History/WebHistoryItem.mm:
* Misc/WebKitVersionChecks.h:
* WebCoreSupport/WebSecurityOrigin.mm:
(-[WebSecurityOrigin domain]): Deleted.
* WebInspector/WebInspector.mm:
(-[WebInspector showTimeline:]): Deleted.
(+[WebInspector webInspector]): Deleted.
(-[WebInspector setWebFrame:]): Deleted.
(-[WebInspector window]): Deleted.
(-[WebInspector showWindow:]): Deleted.
* WebView/WebFrame.mm:
(-[WebFrame reload]):
* WebView/WebPDFView.mm:
(-[WebPDFView menuForEvent:]):
(-[WebPDFView _anyPDFTagsFoundInMenu:]): Deleted.
* WebView/WebView.mm:
(-[WebView _initWithFrame:frameName:groupName:]):
(-[WebView _preferencesChanged:]):
(-[WebView initWithFrame:frameName:groupName:]):
(-[WebView _initWithFrame:frameName:groupName:usesDocumentViews:]): Deleted.
(+[WebView _setAlwaysUseATSU:]): Deleted.
(-[WebView _needsUnrestrictedGetMatchedCSSRules]): Deleted.
* WebView/WebViewPrivate.h:

Source/WTF:
* wtf/Assertions.cpp:
* wtf/Assertions.h:</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkSourceWTFChangeLog">trunk/Source/WTF/ChangeLog</a></li>
<li><a href="#trunkSourceWTFwtfAssertionscpp">trunk/Source/WTF/wtf/Assertions.cpp</a></li>
<li><a href="#trunkSourceWTFwtfAssertionsh">trunk/Source/WTF/wtf/Assertions.h</a></li>
<li><a href="#trunkSourceWebCoreChangeLog">trunk/Source/WebCore/ChangeLog</a></li>
<li><a href="#trunkSourceWebCorebindingsobjcDOMHTMLmm">trunk/Source/WebCore/bindings/objc/DOMHTML.mm</a></li>
<li><a href="#trunkSourceWebCorebindingsobjcDOMPrivateh">trunk/Source/WebCore/bindings/objc/DOMPrivate.h</a></li>
<li><a href="#trunkSourceWebCoreeditingEditorCommandcpp">trunk/Source/WebCore/editing/EditorCommand.cpp</a></li>
<li><a href="#trunkSourceWebKitmacChangeLog">trunk/Source/WebKit/mac/ChangeLog</a></li>
<li><a href="#trunkSourceWebKitmacHistoryWebHistoryItemmm">trunk/Source/WebKit/mac/History/WebHistoryItem.mm</a></li>
<li><a href="#trunkSourceWebKitmacMiscWebKitVersionChecksh">trunk/Source/WebKit/mac/Misc/WebKitVersionChecks.h</a></li>
<li><a href="#trunkSourceWebKitmacWebCoreSupportWebSecurityOriginmm">trunk/Source/WebKit/mac/WebCoreSupport/WebSecurityOrigin.mm</a></li>
<li><a href="#trunkSourceWebKitmacWebInspectorWebInspectormm">trunk/Source/WebKit/mac/WebInspector/WebInspector.mm</a></li>
<li><a href="#trunkSourceWebKitmacWebViewWebFramemm">trunk/Source/WebKit/mac/WebView/WebFrame.mm</a></li>
<li><a href="#trunkSourceWebKitmacWebViewWebPDFViewmm">trunk/Source/WebKit/mac/WebView/WebPDFView.mm</a></li>
<li><a href="#trunkSourceWebKitmacWebViewWebViewmm">trunk/Source/WebKit/mac/WebView/WebView.mm</a></li>
<li><a href="#trunkSourceWebKitmacWebViewWebViewPrivateh">trunk/Source/WebKit/mac/WebView/WebViewPrivate.h</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkSourceWTFChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WTF/ChangeLog (170709 => 170710)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WTF/ChangeLog        2014-07-02 16:02:55 UTC (rev 170709)
+++ trunk/Source/WTF/ChangeLog        2014-07-02 17:33:32 UTC (rev 170710)
</span><span class="lines">@@ -1,3 +1,13 @@
</span><ins>+2014-07-02  Dan Bernstein  &lt;mitz@apple.com&gt;
+
+        Remove some code only needed for versions of Safari that are no longer supported
+        https://bugs.webkit.org/show_bug.cgi?id=134537
+
+        Reviewed by Anders Carlsson.
+
+        * wtf/Assertions.cpp:
+        * wtf/Assertions.h:
+
</ins><span class="cx"> 2014-07-01  Alex Christensen  &lt;achristensen@webkit.org&gt;
</span><span class="cx"> 
</span><span class="cx">         Reduce dynamic memory allocation in css jit.
</span></span></pre></div>
<a id="trunkSourceWTFwtfAssertionscpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WTF/wtf/Assertions.cpp (170709 => 170710)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WTF/wtf/Assertions.cpp        2014-07-02 16:02:55 UTC (rev 170709)
+++ trunk/Source/WTF/wtf/Assertions.cpp        2014-07-02 17:33:32 UTC (rev 170710)
</span><span class="lines">@@ -320,10 +320,6 @@
</span><span class="cx">     globalHook = function;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-void WTFInvokeCrashHook()
-{
-}
-
</del><span class="cx"> void WTFCrash()
</span><span class="cx"> {
</span><span class="cx">     if (globalHook)
</span></span></pre></div>
<a id="trunkSourceWTFwtfAssertionsh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WTF/wtf/Assertions.h (170709 => 170710)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WTF/wtf/Assertions.h        2014-07-02 16:02:55 UTC (rev 170709)
+++ trunk/Source/WTF/wtf/Assertions.h        2014-07-02 17:33:32 UTC (rev 170710)
</span><span class="lines">@@ -145,8 +145,6 @@
</span><span class="cx"> WTF_EXPORT_PRIVATE void WTFSetCrashHook(WTFCrashHookFunction);
</span><span class="cx"> WTF_EXPORT_PRIVATE void WTFInstallReportBacktraceOnCrashHook();
</span><span class="cx"> 
</span><del>-// Exist for binary compatibility with older Safari. Do not use.
-WTF_EXPORT_PRIVATE void WTFInvokeCrashHook();
</del><span class="cx"> #ifdef __cplusplus
</span><span class="cx"> }
</span><span class="cx"> #endif
</span></span></pre></div>
<a id="trunkSourceWebCoreChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/ChangeLog (170709 => 170710)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/ChangeLog        2014-07-02 16:02:55 UTC (rev 170709)
+++ trunk/Source/WebCore/ChangeLog        2014-07-02 17:33:32 UTC (rev 170710)
</span><span class="lines">@@ -1,3 +1,18 @@
</span><ins>+2014-07-02  Dan Bernstein  &lt;mitz@apple.com&gt;
+
+        Remove some code only needed for versions of Safari that are no longer supported
+        https://bugs.webkit.org/show_bug.cgi?id=134537
+
+        Reviewed by Anders Carlsson.
+
+        * bindings/objc/DOMHTML.mm:
+        (-[DOMHTMLInputElement _rectOnScreen]): Deleted.
+        (-[DOMHTMLInputElement _replaceCharactersInRange:withString:selectingFromIndex:]): Deleted.
+        (-[DOMHTMLInputElement _selectedRange]): Deleted.
+        * bindings/objc/DOMPrivate.h:
+        * editing/EditorCommand.cpp:
+        (WebCore::createCommandMap):
+
</ins><span class="cx"> 2014-07-02  Carlos Garcia Campos  &lt;cgarcia@igalia.com&gt;
</span><span class="cx"> 
</span><span class="cx">         [GStreamer] MediaPlayerPrivateGStreamer.cpp fails to build when VIDEO_TRACK is enabled and using GSTREAMER_MPEGTS
</span></span></pre></div>
<a id="trunkSourceWebCorebindingsobjcDOMHTMLmm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/bindings/objc/DOMHTML.mm (170709 => 170710)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/bindings/objc/DOMHTML.mm        2014-07-02 16:02:55 UTC (rev 170709)
+++ trunk/Source/WebCore/bindings/objc/DOMHTML.mm        2014-07-02 17:33:32 UTC (rev 170710)
</span><span class="lines">@@ -175,7 +175,6 @@
</span><span class="cx"> 
</span><span class="cx"> @end
</span><span class="cx"> 
</span><del>-
</del><span class="cx"> @implementation DOMHTMLInputElement (FormAutoFillTransition)
</span><span class="cx"> 
</span><span class="cx"> - (BOOL)_isTextField
</span><span class="lines">@@ -183,46 +182,7 @@
</span><span class="cx">     return core(self)-&gt;isTextField();
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-#if !PLATFORM(IOS)
-- (NSRect)_rectOnScreen
-{
-    // Returns bounding rect of text field, in screen coordinates.
-    NSRect result = [self boundingBox];
-    if (!core(self)-&gt;document().view())
-        return result;
-
-    NSView* view = core(self)-&gt;document().view()-&gt;documentView();
-    result = [view convertRect:result toView:nil];
-#pragma clang diagnostic push
-#pragma clang diagnostic ignored &quot;-Wdeprecated-declarations&quot;
-    result.origin = [[view window] convertBaseToScreen:result.origin];
-#pragma clang diagnostic pop
-    return result;
-}
-#endif
-
-- (void)_replaceCharactersInRange:(NSRange)targetRange withString:(NSString *)replacementString selectingFromIndex:(int)index
-{
-    WebCore::HTMLInputElement* inputElement = core(self);
-    if (inputElement) {
-        WTF::String newValue = inputElement-&gt;value();
-        newValue.replace(targetRange.location, targetRange.length, replacementString);
-        inputElement-&gt;setValue(newValue);
-        inputElement-&gt;setSelectionRange(index, newValue.length());
-    }
-}
-
-- (NSRange)_selectedRange
-{
-    WebCore::HTMLInputElement* inputElement = core(self);
-    if (inputElement) {
-        int start = inputElement-&gt;selectionStart();
-        int end = inputElement-&gt;selectionEnd();
-        return NSMakeRange(start, end - start); 
-    }
-    return NSMakeRange(NSNotFound, 0);
-}
-
</del><ins>+#if PLATFORM(IOS)
</ins><span class="cx"> - (BOOL)_isAutofilled
</span><span class="cx"> {
</span><span class="cx">     return core(self)-&gt;isAutofilled();
</span><span class="lines">@@ -235,6 +195,7 @@
</span><span class="cx">     // changes the background color.
</span><span class="cx">     core(self)-&gt;setAutofilled(filled);
</span><span class="cx"> }
</span><ins>+#endif // PLATFORM(IOS)
</ins><span class="cx"> 
</span><span class="cx"> @end
</span><span class="cx"> 
</span><span class="lines">@@ -258,6 +219,8 @@
</span><span class="cx"> 
</span><span class="cx"> @end
</span><span class="cx"> 
</span><ins>+#if PLATFORM(IOS)
+
</ins><span class="cx"> @implementation DOMHTMLInputElement (FormPromptAdditions)
</span><span class="cx"> 
</span><span class="cx"> - (BOOL)_isEdited
</span><span class="lines">@@ -276,7 +239,6 @@
</span><span class="cx"> 
</span><span class="cx"> @end
</span><span class="cx"> 
</span><del>-#if PLATFORM(IOS)
</del><span class="cx"> @implementation DOMHTMLInputElement (AutocapitalizeAdditions)
</span><span class="cx"> 
</span><span class="cx"> - (WebAutocapitalizeType)_autocapitalizeType
</span></span></pre></div>
<a id="trunkSourceWebCorebindingsobjcDOMPrivateh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/bindings/objc/DOMPrivate.h (170709 => 170710)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/bindings/objc/DOMPrivate.h        2014-07-02 16:02:55 UTC (rev 170709)
+++ trunk/Source/WebCore/bindings/objc/DOMPrivate.h        2014-07-02 17:33:32 UTC (rev 170710)
</span><span class="lines">@@ -100,16 +100,14 @@
</span><span class="cx"> // Each one should eventually be replaced by public DOM API, and when that happens Safari will switch to implementations 
</span><span class="cx"> // using that public API, and these will be deleted.
</span><span class="cx"> @interface DOMHTMLInputElement (FormAutoFillTransition)
</span><del>-- (BOOL)_isAutofilled;
</del><span class="cx"> - (BOOL)_isTextField;
</span><del>-#if !TARGET_OS_IPHONE
-- (NSRect)_rectOnScreen; // bounding box of the text field, in screen coordinates
-#endif
-- (void)_replaceCharactersInRange:(NSRange)targetRange withString:(NSString *)replacementString selectingFromIndex:(int)index;
-- (NSRange)_selectedRange;
</del><ins>+#if TARGET_OS_IPHONE
+- (BOOL)_isAutofilled;
</ins><span class="cx"> - (void)_setAutofilled:(BOOL)filled;
</span><ins>+#endif
</ins><span class="cx"> @end
</span><span class="cx"> 
</span><ins>+#if TARGET_OS_IPHONE
</ins><span class="cx"> // These changes are necessary to detect whether a form input was modified by a user
</span><span class="cx"> // or javascript
</span><span class="cx"> @interface DOMHTMLInputElement (FormPromptAdditions)
</span><span class="lines">@@ -119,6 +117,7 @@
</span><span class="cx"> @interface DOMHTMLTextAreaElement (FormPromptAdditions)
</span><span class="cx"> - (BOOL)_isEdited;
</span><span class="cx"> @end
</span><ins>+#endif // TARGET_OS_IPHONE
</ins><span class="cx"> 
</span><span class="cx"> // All the methods in this category are used by Safari forms autofill and should not be used for any other purpose.
</span><span class="cx"> // They are stopgap measures until we finish transitioning form controls to not use NSView. Each one should become
</span></span></pre></div>
<a id="trunkSourceWebCoreeditingEditorCommandcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/editing/EditorCommand.cpp (170709 => 170710)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/editing/EditorCommand.cpp        2014-07-02 16:02:55 UTC (rev 170709)
+++ trunk/Source/WebCore/editing/EditorCommand.cpp        2014-07-02 17:33:32 UTC (rev 170710)
</span><span class="lines">@@ -1491,7 +1491,6 @@
</span><span class="cx">         { &quot;AlignLeft&quot;, { executeJustifyLeft, supportedFromMenuOrKeyBinding, enabledInRichlyEditableText, stateNone, valueNull, notTextInsertion, doNotAllowExecutionWhenDisabled } },
</span><span class="cx">         { &quot;AlignRight&quot;, { executeJustifyRight, supportedFromMenuOrKeyBinding, enabledInRichlyEditableText, stateNone, valueNull, notTextInsertion, doNotAllowExecutionWhenDisabled } },
</span><span class="cx">         { &quot;BackColor&quot;, { executeBackColor, supported, enabledInRichlyEditableText, stateNone, valueBackColor, notTextInsertion, doNotAllowExecutionWhenDisabled } },
</span><del>-        { &quot;BackwardDelete&quot;, { executeDeleteBackward, supportedFromMenuOrKeyBinding, enabledInEditableText, stateNone, valueNull, notTextInsertion, doNotAllowExecutionWhenDisabled } }, // FIXME: remove BackwardDelete when Safari for Windows stops using it.
</del><span class="cx">         { &quot;Bold&quot;, { executeToggleBold, supported, enabledInRichlyEditableText, stateBold, valueNull, notTextInsertion, doNotAllowExecutionWhenDisabled } },
</span><span class="cx">         { &quot;Copy&quot;, { executeCopy, supportedCopyCut, enabledCopy, stateNone, valueNull, notTextInsertion, allowExecutionWhenDisabled } },
</span><span class="cx">         { &quot;CreateLink&quot;, { executeCreateLink, supported, enabledInRichlyEditableText, stateNone, valueNull, notTextInsertion, doNotAllowExecutionWhenDisabled } },
</span></span></pre></div>
<a id="trunkSourceWebKitmacChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit/mac/ChangeLog (170709 => 170710)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/mac/ChangeLog        2014-07-02 16:02:55 UTC (rev 170709)
+++ trunk/Source/WebKit/mac/ChangeLog        2014-07-02 17:33:32 UTC (rev 170710)
</span><span class="lines">@@ -1,3 +1,34 @@
</span><ins>+2014-07-02  Dan Bernstein  &lt;mitz@apple.com&gt;
+
+        Remove some code only needed for versions of Safari that are no longer supported
+        https://bugs.webkit.org/show_bug.cgi?id=134537
+
+        Reviewed by Anders Carlsson.
+
+        * History/WebHistoryItem.mm:
+        * Misc/WebKitVersionChecks.h:
+        * WebCoreSupport/WebSecurityOrigin.mm:
+        (-[WebSecurityOrigin domain]): Deleted.
+        * WebInspector/WebInspector.mm:
+        (-[WebInspector showTimeline:]): Deleted.
+        (+[WebInspector webInspector]): Deleted.
+        (-[WebInspector setWebFrame:]): Deleted.
+        (-[WebInspector window]): Deleted.
+        (-[WebInspector showWindow:]): Deleted.
+        * WebView/WebFrame.mm:
+        (-[WebFrame reload]):
+        * WebView/WebPDFView.mm:
+        (-[WebPDFView menuForEvent:]):
+        (-[WebPDFView _anyPDFTagsFoundInMenu:]): Deleted.
+        * WebView/WebView.mm:
+        (-[WebView _initWithFrame:frameName:groupName:]):
+        (-[WebView _preferencesChanged:]):
+        (-[WebView initWithFrame:frameName:groupName:]):
+        (-[WebView _initWithFrame:frameName:groupName:usesDocumentViews:]): Deleted.
+        (+[WebView _setAlwaysUseATSU:]): Deleted.
+        (-[WebView _needsUnrestrictedGetMatchedCSSRules]): Deleted.
+        * WebView/WebViewPrivate.h:
+
</ins><span class="cx"> 2014-07-01  Dan Bernstein  &lt;mitz@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         Remove WebChromeClient code that was only needed for Safari versions earlier than 3.1
</span></span></pre></div>
<a id="trunkSourceWebKitmacHistoryWebHistoryItemmm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit/mac/History/WebHistoryItem.mm (170709 => 170710)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/mac/History/WebHistoryItem.mm        2014-07-02 16:02:55 UTC (rev 170709)
+++ trunk/Source/WebKit/mac/History/WebHistoryItem.mm        2014-07-02 17:33:32 UTC (rev 170710)
</span><span class="lines">@@ -547,11 +547,6 @@
</span><span class="cx">     return result;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-- (void)setAlwaysAttemptToUsePageCache:(BOOL)flag
-{
-    // Safari 2.0 uses this for SnapBack, so we stub it out to avoid a crash.
-}
-
</del><span class="cx"> - (NSURL *)URL
</span><span class="cx"> {
</span><span class="cx">     ASSERT_MAIN_THREAD();
</span></span></pre></div>
<a id="trunkSourceWebKitmacMiscWebKitVersionChecksh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit/mac/Misc/WebKitVersionChecks.h (170709 => 170710)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/mac/Misc/WebKitVersionChecks.h        2014-07-02 16:02:55 UTC (rev 170709)
+++ trunk/Source/WebKit/mac/Misc/WebKitVersionChecks.h        2014-07-02 17:33:32 UTC (rev 170710)
</span><span class="lines">@@ -49,14 +49,12 @@
</span><span class="cx"> #define WEBKIT_FIRST_VERSION_WITH_IE_COMPATIBLE_KEYBOARD_EVENT_DISPATCH 0x020D0100 // 525.1.0
</span><span class="cx"> #define WEBKIT_FIRST_VERSION_WITH_LOADING_DURING_COMMON_RUNLOOP_MODES 0x020E0000 // 526.0.0
</span><span class="cx"> #define WEBKIT_FIRST_VERSION_WITH_MORE_STRICT_LOCAL_RESOURCE_SECURITY_RESTRICTION 0x02100200 // 528.2.0
</span><del>-#define WEBKIT_FIRST_VERSION_WITH_RELOAD_FROM_ORIGIN 0x02100700 // 528.7.0
</del><span class="cx"> #define WEBKIT_FIRST_VERSION_WITHOUT_WEBVIEW_INIT_THREAD_WORKAROUND 0x02100700 // 528.7.0
</span><span class="cx"> #define WEBKIT_FIRST_VERSION_WITH_ROUND_TWO_MAIN_THREAD_EXCEPTIONS 0x02120400 // 530.4.0
</span><span class="cx"> #define WEBKIT_FIRST_VERSION_WITHOUT_BUMPERCAR_BACK_FORWARD_QUIRK 0x02120700 // 530.7.0
</span><span class="cx"> #define WEBKIT_FIRST_VERSION_WITHOUT_CONTENT_SNIFFING_FOR_FILE_URLS 0x02120A00 // 530.10.0
</span><span class="cx"> #define WEBKIT_FIRST_VERSION_WITHOUT_LINK_ELEMENT_TEXT_CSS_QUIRK 0x02130200 // 531.2.0
</span><span class="cx"> #define WEBKIT_FIRST_VERSION_WITH_HTML5_PARSER 0x02160900 // 534.9.0
</span><del>-#define WEBKIT_FIRST_VERSION_WITH_GET_MATCHED_CSS_RULES_RESTRICTIONS 0x02160B00 // 534.11.0
</del><span class="cx"> #define WEBKIT_FIRST_VERSION_WITH_CSS_ATTRIBUTE_SETTERS_IGNORING_PRIORITY 0x02170D00 // 535.13.0
</span><span class="cx"> #define WEBKIT_FIRST_VERSION_WITHOUT_LEGACY_BACKGROUNDSIZE_SHORTHAND_BEHAVIOR 0x02190100 // 537.1.0
</span><span class="cx"> #else
</span></span></pre></div>
<a id="trunkSourceWebKitmacWebCoreSupportWebSecurityOriginmm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit/mac/WebCoreSupport/WebSecurityOrigin.mm (170709 => 170710)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/mac/WebCoreSupport/WebSecurityOrigin.mm        2014-07-02 16:02:55 UTC (rev 170709)
+++ trunk/Source/WebKit/mac/WebCoreSupport/WebSecurityOrigin.mm        2014-07-02 17:33:32 UTC (rev 170710)
</span><span class="lines">@@ -78,12 +78,6 @@
</span><span class="cx">     return reinterpret_cast&lt;SecurityOrigin*&gt;(_private)-&gt;toString();
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-// Deprecated. Use host instead. This needs to stay here until we ship a new Safari.
-- (NSString *)domain
-{
-    return [self host];
-}
-
</del><span class="cx"> - (unsigned short)port
</span><span class="cx"> {
</span><span class="cx">     return reinterpret_cast&lt;SecurityOrigin*&gt;(_private)-&gt;port();
</span></span></pre></div>
<a id="trunkSourceWebKitmacWebInspectorWebInspectormm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit/mac/WebInspector/WebInspector.mm (170709 => 170710)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/mac/WebInspector/WebInspector.mm        2014-07-02 16:02:55 UTC (rev 170709)
+++ trunk/Source/WebKit/mac/WebInspector/WebInspector.mm        2014-07-02 17:33:32 UTC (rev 170710)
</span><span class="lines">@@ -80,11 +80,6 @@
</span><span class="cx">     [_frontend showConsole];
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-- (void)showTimeline:(id)sender
-{
-    // Not used anymore. Remove when a release of Safari non-longer calls this.
-}
-
</del><span class="cx"> - (BOOL)isDebuggingJavaScript
</span><span class="cx"> {
</span><span class="cx">     return _frontend &amp;&amp; [_frontend isDebuggingEnabled];
</span><span class="lines">@@ -199,55 +194,3 @@
</span><span class="cx">     _frontend = 0;
</span><span class="cx"> }
</span><span class="cx"> @end
</span><del>-
-@implementation WebInspector (Obsolete)
-+ (WebInspector *)webInspector
-{
-    // Safari 3.0 calls this method
-    static BOOL logged = NO;
-    if (!logged) {
-        NSLog(@&quot;+[WebInspector webInspector]: this method is obsolete.&quot;);
-        logged = YES;
-    }
-
-    return [[[WebInspector alloc] init] autorelease];
-}
-
-- (void)setWebFrame:(WebFrame *)frame
-{
-    // Safari 3.0 calls this method
-    static BOOL logged = NO;
-    if (!logged) {
-        NSLog(@&quot;-[WebInspector setWebFrame:]: this method is obsolete.&quot;);
-        logged = YES;
-    }
-
-    _webView = [frame webView];
-}
-
-#if !PLATFORM(IOS)
-- (NSWindow *)window
-{
-    // Shiira calls this internal method, return nil since we can't easily return the window
-    static BOOL logged = NO;
-    if (!logged) {
-        NSLog(@&quot;-[WebInspector window]: this method is obsolete and now returns nil.&quot;);
-        logged = YES;
-    }
-
-    return nil;
-}
-#endif
-
-- (void)showWindow:(id)sender
-{
-    // Safari 3.0 calls this method
-    static BOOL logged = NO;
-    if (!logged) {
-        NSLog(@&quot;-[WebInspector showWindow:]: this method is obsolete.&quot;);
-        logged = YES;
-    }
-
-    [self showWindow];
-}
-@end
</del></span></pre></div>
<a id="trunkSourceWebKitmacWebViewWebFramemm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit/mac/WebView/WebFrame.mm (170709 => 170710)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/mac/WebView/WebFrame.mm        2014-07-02 16:02:55 UTC (rev 170709)
+++ trunk/Source/WebKit/mac/WebView/WebFrame.mm        2014-07-02 17:33:32 UTC (rev 170710)
</span><span class="lines">@@ -2587,12 +2587,7 @@
</span><span class="cx"> 
</span><span class="cx"> - (void)reload
</span><span class="cx"> {
</span><del>-#if !PLATFORM(IOS)
-    if (!WebKitLinkedOnOrAfter(WEBKIT_FIRST_VERSION_WITH_RELOAD_FROM_ORIGIN) &amp;&amp; applicationIsSafari())
-        _private-&gt;coreFrame-&gt;loader().reload(GetCurrentKeyModifiers() &amp; shiftKey);
-    else
-#endif
-        _private-&gt;coreFrame-&gt;loader().reload(false);
</del><ins>+    _private-&gt;coreFrame-&gt;loader().reload(false);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> - (void)reloadFromOrigin
</span></span></pre></div>
<a id="trunkSourceWebKitmacWebViewWebPDFViewmm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit/mac/WebView/WebPDFView.mm (170709 => 170710)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/mac/WebView/WebPDFView.mm        2014-07-02 16:02:55 UTC (rev 170709)
+++ trunk/Source/WebKit/mac/WebView/WebPDFView.mm        2014-07-02 17:33:32 UTC (rev 170710)
</span><span class="lines">@@ -94,7 +94,6 @@
</span><span class="cx"> @interface WebPDFView (FileInternal)
</span><span class="cx"> + (Class)_PDFPreviewViewClass;
</span><span class="cx"> + (Class)_PDFViewClass;
</span><del>-- (BOOL)_anyPDFTagsFoundInMenu:(NSMenu *)menu;
</del><span class="cx"> - (void)_applyPDFDefaults;
</span><span class="cx"> - (BOOL)_canLookUpInDictionary;
</span><span class="cx"> - (NSClipView *)_clipViewForPDFDocumentView;
</span><span class="lines">@@ -450,33 +449,7 @@
</span><span class="cx">     // pass the items off to the WebKit context menu mechanism
</span><span class="cx">     WebView *webView = [[dataSource webFrame] webView];
</span><span class="cx">     ASSERT(webView);
</span><del>-    NSMenu *menu = [webView _menuForElement:[self elementAtPoint:[self convertPoint:[theEvent locationInWindow] fromView:nil]] defaultItems:items];
-    
-    // The delegate has now had the opportunity to add items to the standard PDF-related items, or to
-    // remove or modify some of the PDF-related items. In 10.4, the PDF context menu did not go through 
-    // the standard WebKit delegate path, and so the standard PDF-related items always appeared. For
-    // clients that create their own context menu by hand-picking specific items from the default list, such as
-    // Safari, none of the PDF-related items will appear until the client is rewritten to explicitly
-    // include these items. For backwards compatibility of tip-of-tree WebKit with the 10.4 version of Safari
-    // (the configuration that people building open source WebKit use), we'll use the entire set of PDFKit-supplied
-    // menu items. This backward-compatibility hack won't work with any non-Safari clients, but this seems OK since
-    // (1) the symptom is fairly minor, and (2) we suspect that non-Safari clients are probably using the entire
-    // set of default items, rather than manually choosing from them. We can remove this code entirely when we
-    // ship a version of Safari that includes the fix for radar 3796579.
-    if (![self _anyPDFTagsFoundInMenu:menu] &amp;&amp; applicationIsSafari()) {
-        [menu addItem:[NSMenuItem separatorItem]];
-        NSEnumerator *e = [items objectEnumerator];
-        NSMenuItem *menuItem;
-        while ((menuItem = [e nextObject]) != nil) {
-            // copy menuItem since a given menuItem can be in only one menu at a time, and we don't
-            // want to mess with the menu returned from PDFKit.
-            NSMenuItem *menuItemCopy = [menuItem copy];
-            [menu addItem:menuItemCopy];
-            [menuItemCopy release];
-        }
-    }
-    
-    return menu;
</del><ins>+    return [webView _menuForElement:[self elementAtPoint:[self convertPoint:[theEvent locationInWindow] fromView:nil]] defaultItems:items];
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> - (void)setNextKeyView:(NSView *)aView
</span><span class="lines">@@ -1115,30 +1088,6 @@
</span><span class="cx">     return PDFViewClass;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-- (BOOL)_anyPDFTagsFoundInMenu:(NSMenu *)menu
-{
-    NSEnumerator *e = [[menu itemArray] objectEnumerator];
-    NSMenuItem *item;
-    while ((item = [e nextObject]) != nil) {
-        switch ([item tag]) {
-            case WebMenuItemTagOpenWithDefaultApplication:
-            case WebMenuItemPDFActualSize:
-            case WebMenuItemPDFZoomIn:
-            case WebMenuItemPDFZoomOut:
-            case WebMenuItemPDFAutoSize:
-            case WebMenuItemPDFSinglePage:
-            case WebMenuItemPDFSinglePageScrolling:
-            case WebMenuItemPDFFacingPages:
-            case WebMenuItemPDFFacingPagesScrolling:
-            case WebMenuItemPDFContinuous:
-            case WebMenuItemPDFNextPage:
-            case WebMenuItemPDFPreviousPage:
-                return YES;
-        }
-    }
-    return NO;
-}
-
</del><span class="cx"> - (void)_applyPDFDefaults
</span><span class="cx"> {
</span><span class="cx">     // Set up default viewing params
</span></span></pre></div>
<a id="trunkSourceWebKitmacWebViewWebViewmm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit/mac/WebView/WebView.mm (170709 => 170710)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/mac/WebView/WebView.mm        2014-07-02 16:02:55 UTC (rev 170709)
+++ trunk/Source/WebKit/mac/WebView/WebView.mm        2014-07-02 17:33:32 UTC (rev 170710)
</span><span class="lines">@@ -1056,12 +1056,8 @@
</span><span class="cx"> #endif
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-- (id)_initWithFrame:(NSRect)f frameName:(NSString *)frameName groupName:(NSString *)groupName usesDocumentViews:(BOOL)usesDocumentViews
</del><ins>+- (id)_initWithFrame:(NSRect)f frameName:(NSString *)frameName groupName:(NSString *)groupName
</ins><span class="cx"> {
</span><del>-    // FIXME: Remove the usesDocumentViews parameter; it's only here for compatibility with WebKit nightly builds
-    // running against Safari 5 on Leopard.
-    ASSERT(usesDocumentViews);
-
</del><span class="cx">     self = [super initWithFrame:f];
</span><span class="cx">     if (!self)
</span><span class="cx">         return nil;
</span><span class="lines">@@ -1466,13 +1462,6 @@
</span><span class="cx">     return NO;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-#if !PLATFORM(IOS)
-+ (void)_setAlwaysUseATSU:(BOOL)f
-{
-    [self _setAlwaysUsesComplexTextCodePath:f];
-}
-#endif
-
</del><span class="cx"> + (void)_setAlwaysUsesComplexTextCodePath:(BOOL)f
</span><span class="cx"> {
</span><span class="cx">     Font::setCodePath(f ? Font::Complex : Font::Auto);
</span><span class="lines">@@ -2136,17 +2125,6 @@
</span><span class="cx"> #endif
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-- (BOOL)_needsUnrestrictedGetMatchedCSSRules
-{
-#if !PLATFORM(IOS)
-    static bool needsUnrestrictedGetMatchedCSSRules = !WebKitLinkedOnOrAfter(WEBKIT_FIRST_VERSION_WITH_GET_MATCHED_CSS_RULES_RESTRICTIONS) &amp;&amp; applicationIsSafari();
-    return needsUnrestrictedGetMatchedCSSRules;
-#else
-    // FIXME: &lt;rdar://problem/8963684&gt; Implement linked-on-or-after check for needsUnrestrictedGetMatchedCSSRules
-    return NO;
-#endif
-}
-
</del><span class="cx"> - (void)_preferencesChangedNotification:(NSNotification *)notification
</span><span class="cx"> {
</span><span class="cx"> #if PLATFORM(IOS)
</span><span class="lines">@@ -2291,7 +2269,6 @@
</span><span class="cx">     settings.setAsynchronousSpellCheckingEnabled([preferences asynchronousSpellCheckingEnabled]);
</span><span class="cx">     settings.setHyperlinkAuditingEnabled([preferences hyperlinkAuditingEnabled]);
</span><span class="cx">     settings.setUsePreHTML5ParserQuirks([self _needsPreHTML5ParserQuirks]);
</span><del>-    settings.setCrossOriginCheckInGetMatchedCSSRulesDisabled([self _needsUnrestrictedGetMatchedCSSRules]);
</del><span class="cx">     settings.setInteractiveFormValidationEnabled([self interactiveFormValidationEnabled]);
</span><span class="cx">     settings.setValidationMessageTimerMagnification([self validationMessageTimerMagnification]);
</span><span class="cx"> 
</span><span class="lines">@@ -5013,7 +4990,7 @@
</span><span class="cx"> #endif
</span><span class="cx"> 
</span><span class="cx">     WebCoreThreadViolationCheckRoundTwo();
</span><del>-    return [self _initWithFrame:f frameName:frameName groupName:groupName usesDocumentViews:YES];
</del><ins>+    return [self _initWithFrame:f frameName:frameName groupName:groupName];
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> #if !PLATFORM(IOS)
</span></span></pre></div>
<a id="trunkSourceWebKitmacWebViewWebViewPrivateh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit/mac/WebView/WebViewPrivate.h (170709 => 170710)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/mac/WebView/WebViewPrivate.h        2014-07-02 16:02:55 UTC (rev 170709)
+++ trunk/Source/WebKit/mac/WebView/WebViewPrivate.h        2014-07-02 17:33:32 UTC (rev 170710)
</span><span class="lines">@@ -509,10 +509,6 @@
</span><span class="cx"> + (NSString *)_decodeData:(NSData *)data;
</span><span class="cx"> 
</span><span class="cx"> + (void)_setAlwaysUsesComplexTextCodePath:(BOOL)f;
</span><del>-#if !TARGET_OS_IPHONE
-// This is the old name of the above method. Needed for Safari versions that call it.
-+ (void)_setAlwaysUseATSU:(BOOL)f;
-#endif
</del><span class="cx"> 
</span><span class="cx"> + (void)_setAllowsRoundingHacks:(BOOL)allowsRoundingHacks;
</span><span class="cx"> + (BOOL)_allowsRoundingHacks;
</span></span></pre>
</div>
</div>

</body>
</html>