<!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>[184251] branches/safari-601.1.32-branch/Source/WebCore</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/184251">184251</a></dd>
<dt>Author</dt> <dd>dburkart@apple.com</dd>
<dt>Date</dt> <dd>2015-05-12 21:17:14 -0700 (Tue, 12 May 2015)</dd>
</dl>

<h3>Log Message</h3>
<pre>Merge <a href="http://trac.webkit.org/projects/webkit/changeset/184001">r184001</a>. rdar://problem/20862460</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#branchessafari601132branchSourceWebCoreChangeLog">branches/safari-601.1.32-branch/Source/WebCore/ChangeLog</a></li>
<li><a href="#branchessafari601132branchSourceWebCoredomDocumentcpp">branches/safari-601.1.32-branch/Source/WebCore/dom/Document.cpp</a></li>
<li><a href="#branchessafari601132branchSourceWebCorehtmlHTMLMediaElementcpp">branches/safari-601.1.32-branch/Source/WebCore/html/HTMLMediaElement.cpp</a></li>
<li><a href="#branchessafari601132branchSourceWebCorehtmlHTMLMediaElementh">branches/safari-601.1.32-branch/Source/WebCore/html/HTMLMediaElement.h</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="branchessafari601132branchSourceWebCoreChangeLog"></a>
<div class="modfile"><h4>Modified: branches/safari-601.1.32-branch/Source/WebCore/ChangeLog (184250 => 184251)</h4>
<pre class="diff"><span>
<span class="info">--- branches/safari-601.1.32-branch/Source/WebCore/ChangeLog        2015-05-13 04:17:10 UTC (rev 184250)
+++ branches/safari-601.1.32-branch/Source/WebCore/ChangeLog        2015-05-13 04:17:14 UTC (rev 184251)
</span><span class="lines">@@ -2,322 +2,316 @@
</span><span class="cx"> Dana Burkart  &lt;dburkart@apple.com
</span><span class="cx"> dburkart@apple.com&gt;
</span><span class="cx"> 
</span><del>-        Merge r183971. rdar://problem/20065572
</del><ins>+        Merge r184001. rdar://problem/20862460
</ins><span class="cx"> 
</span><del>-    2015-05-07  Dean Jackson  &lt;dino@apple.com&gt;
</del><ins>+    2015-05-08  Eric Carlson  &lt;eric.carlson@apple.com&gt;
</ins><span class="cx"> 
</span><del>-            [iOS] MediaControls: disappear while scrubbing
-            https://bugs.webkit.org/show_bug.cgi?id=144777
-            &lt;rdar://problem/20065572&gt;
</del><ins>+            [Mac] Playback target clients do not unregister on page reload
+            https://bugs.webkit.org/show_bug.cgi?id=144761
</ins><span class="cx"> 
</span><del>-            Reviewed by Eric Carlson.
</del><ins>+            Reviewed by Brady Eidson.
</ins><span class="cx"> 
</span><del>-            If we are scrubbing we shouldn't hide the controls.
</del><ins>+            * dom/Document.cpp:
+            (WebCore::Document::prepareForDestruction): Unregister all target picker clients.
</ins><span class="cx"> 
</span><del>-            * Modules/mediacontrols/mediaControlsApple.js:
-            (Controller.prototype.hideControls): Return early if we are scrubbing.
-            * Modules/mediacontrols/mediaControlsiOS.js:
-            (ControllerIOS.prototype): Add initial value for _potentiallyScrubbing and
-            rename from non-underscored value throughout the file.
-            (ControllerIOS.prototype.handleTimelineTouchEnd): When we finish scrubbing, reset
-            the timer to hide the controls.
</del><ins>+            * html/HTMLMediaElement.cpp:
+            (WebCore::HTMLMediaElement::registerWithDocument): Register for page cache callback.
+            (WebCore::HTMLMediaElement::unregisterWithDocument): Unregister for page cache callback.
+            (WebCore::HTMLMediaElement::documentWillSuspendForPageCache): New.
+            (WebCore::HTMLMediaElement::documentDidResumeFromPageCache): New.
</ins><span class="cx"> 
</span><span class="cx">     2015-05-12  Dana Burkart
</span><span class="cx">     Dana Burkart  &lt;dburkart@apple.com
</span><span class="cx">     dburkart@apple.com&gt;
</span><span class="cx"> 
</span><del>-            Merge r183970. rdar://problem/20769741
</del><ins>+            Merge r183971. rdar://problem/20065572
</ins><span class="cx"> 
</span><del>-        2015-05-07  Simon Fraser  &lt;simon.fraser@apple.com&gt;
</del><ins>+        2015-05-07  Dean Jackson  &lt;dino@apple.com&gt;
</ins><span class="cx"> 
</span><del>-                REGRESSION (r183300): Fixed elements flash when scrolling
-                https://bugs.webkit.org/show_bug.cgi?id=144778
-                rdar://problem/20769741
</del><ins>+                [iOS] MediaControls: disappear while scrubbing
+                https://bugs.webkit.org/show_bug.cgi?id=144777
+                &lt;rdar://problem/20065572&gt;
</ins><span class="cx"> 
</span><del>-                Reviewed by Dean Jackson.
</del><ins>+                Reviewed by Eric Carlson.
</ins><span class="cx"> 
</span><del>-                After r183300 we can detached layer backing store when outside the coverage region.
-                However, position:fixed layers are moved around by the ScrollingCoordinator behind
-                GraphicsLayer's back, so we can do layer flushes with stale information about layer
-                geometry.
</del><ins>+                If we are scrubbing we shouldn't hide the controls.
</ins><span class="cx"> 
</span><del>-                To avoid dropping backing store for layers in this situation, prevent backing
-                store detachment on layers registered with the ScrollingCoordinator as viewport-constrained
-                layers. Preventing detachment on a layer also prevents detachment on all descendant
-                layers.
</del><ins>+                * Modules/mediacontrols/mediaControlsApple.js:
+                (Controller.prototype.hideControls): Return early if we are scrubbing.
+                * Modules/mediacontrols/mediaControlsiOS.js:
+                (ControllerIOS.prototype): Add initial value for _potentiallyScrubbing and
+                rename from non-underscored value throughout the file.
+                (ControllerIOS.prototype.handleTimelineTouchEnd): When we finish scrubbing, reset
+                the timer to hide the controls.
</ins><span class="cx"> 
</span><del>-                * platform/graphics/GraphicsLayer.h:
-                (WebCore::GraphicsLayer::setAllowsBackingStoreDetachment):
-                (WebCore::GraphicsLayer::allowsBackingStoreDetachment):
-                * platform/graphics/ca/GraphicsLayerCA.cpp:
-                (WebCore::GraphicsLayerCA::GraphicsLayerCA):
-                (WebCore::GraphicsLayerCA::setVisibleAndCoverageRects): Set m_intersectsCoverageRect to true
-                if backing store detachment is prevented.
-                (WebCore::GraphicsLayerCA::recursiveCommitChanges): Set a bit in the CommitState to
-                communicate to descendants that detachment is prevented.
-                * platform/graphics/ca/GraphicsLayerCA.h:
-                (WebCore::GraphicsLayerCA::CommitState::CommitState): Deleted.
-                * rendering/RenderLayerBacking.cpp:
-                (WebCore::RenderLayerBacking::setIsScrollCoordinatedWithViewportConstrainedRole):
-                * rendering/RenderLayerBacking.h:
-                (WebCore::RenderLayerBacking::setScrollingNodeIDForRole): If registering with a non-zero
-                nodeID for the ViewportConstrained role, turn off backing store detachment.
-
</del><span class="cx">         2015-05-12  Dana Burkart
</span><span class="cx">         Dana Burkart  &lt;dburkart@apple.com
</span><span class="cx">         dburkart@apple.com&gt;
</span><span class="cx"> 
</span><del>-                Merge r183965. rdar://problem/20866590
</del><ins>+                Merge r183970. rdar://problem/20769741
</ins><span class="cx"> 
</span><del>-            2015-05-07  Dean Jackson  &lt;dino@apple.com&gt;
</del><ins>+            2015-05-07  Simon Fraser  &lt;simon.fraser@apple.com&gt;
</ins><span class="cx"> 
</span><del>-                    [iOS] While scrubbing and holding down, video continues to play
-                    https://bugs.webkit.org/show_bug.cgi?id=144776
-                    &lt;rdar://problem/20863757&gt;
</del><ins>+                    REGRESSION (r183300): Fixed elements flash when scrolling
+                    https://bugs.webkit.org/show_bug.cgi?id=144778
+                    rdar://problem/20769741
</ins><span class="cx"> 
</span><del>-                    Reviewed by Simon Fraser.
</del><ins>+                    Reviewed by Dean Jackson.
</ins><span class="cx"> 
</span><del>-                    When we are scrubbing a video, we should pause playback. As we
-                    let go of the scrubber playback can resume (but only if it was
-                    playing originally).
</del><ins>+                    After r183300 we can detached layer backing store when outside the coverage region.
+                    However, position:fixed layers are moved around by the ScrollingCoordinator behind
+                    GraphicsLayer's back, so we can do layer flushes with stale information about layer
+                    geometry.
</ins><span class="cx"> 
</span><del>-                    * Modules/mediacontrols/mediaControlsiOS.js:
-                    (ControllerIOS.prototype.createControls): Listen for touchstart on the scrubber.
-                    (ControllerIOS.prototype.handleTimelineInput): Call the prototype, but pause if necessary.
-                    (ControllerIOS.prototype.handleTimelineChange): Just moved this to be with the other timeline functions.
-                    (ControllerIOS.prototype.handleTimelineTouchStart): Add the listeners for end and cancel. Remember that we are
-                    potentially about to scrub.
-                    (ControllerIOS.prototype.handleTimelineTouchEnd): Remove the listeners.
</del><ins>+                    To avoid dropping backing store for layers in this situation, prevent backing
+                    store detachment on layers registered with the ScrollingCoordinator as viewport-constrained
+                    layers. Preventing detachment on a layer also prevents detachment on all descendant
+                    layers.
</ins><span class="cx"> 
</span><ins>+                    * platform/graphics/GraphicsLayer.h:
+                    (WebCore::GraphicsLayer::setAllowsBackingStoreDetachment):
+                    (WebCore::GraphicsLayer::allowsBackingStoreDetachment):
+                    * platform/graphics/ca/GraphicsLayerCA.cpp:
+                    (WebCore::GraphicsLayerCA::GraphicsLayerCA):
+                    (WebCore::GraphicsLayerCA::setVisibleAndCoverageRects): Set m_intersectsCoverageRect to true
+                    if backing store detachment is prevented.
+                    (WebCore::GraphicsLayerCA::recursiveCommitChanges): Set a bit in the CommitState to
+                    communicate to descendants that detachment is prevented.
+                    * platform/graphics/ca/GraphicsLayerCA.h:
+                    (WebCore::GraphicsLayerCA::CommitState::CommitState): Deleted.
+                    * rendering/RenderLayerBacking.cpp:
+                    (WebCore::RenderLayerBacking::setIsScrollCoordinatedWithViewportConstrainedRole):
+                    * rendering/RenderLayerBacking.h:
+                    (WebCore::RenderLayerBacking::setScrollingNodeIDForRole): If registering with a non-zero
+                    nodeID for the ViewportConstrained role, turn off backing store detachment.
+
</ins><span class="cx">             2015-05-12  Dana Burkart
</span><span class="cx">             Dana Burkart  &lt;dburkart@apple.com
</span><span class="cx">             dburkart@apple.com&gt;
</span><span class="cx"> 
</span><del>-                    Merge r183954. rdar://problem/20281886
</del><ins>+                    Merge r183965. rdar://problem/20866590
</ins><span class="cx"> 
</span><del>-                2015-05-07  Beth Dakin  &lt;bdakin@apple.com&gt;
</del><ins>+                2015-05-07  Dean Jackson  &lt;dino@apple.com&gt;
</ins><span class="cx"> 
</span><del>-                        New force-related DOM events should fire in WK1 views
-                        https://bugs.webkit.org/show_bug.cgi?id=144663
-                        -and corresponding-
-                        rdar://problem/20281886
</del><ins>+                        [iOS] While scrubbing and holding down, video continues to play
+                        https://bugs.webkit.org/show_bug.cgi?id=144776
+                        &lt;rdar://problem/20863757&gt;
</ins><span class="cx"> 
</span><del>-                        Reviewed by Sam Weinig.
</del><ins>+                        Reviewed by Simon Fraser.
</ins><span class="cx"> 
</span><del>-                        All of the WK1 mouse events need to take the correspondingPressureEvent.
-                        * page/EventHandler.h:
</del><ins>+                        When we are scrubbing a video, we should pause playback. As we
+                        let go of the scrubber playback can resume (but only if it was
+                        playing originally).
</ins><span class="cx"> 
</span><del>-                        Make correspondingPressureEvent a part of CurrentEventScope. This is needed to
-                        have accurate pressure information for all of the mouse events in subframes.
-                        * page/mac/EventHandlerMac.mm:
-                        (WebCore::correspondingPressureEventSlot):
-                        (WebCore::EventHandler::correspondingPressureEvent):
-                        (WebCore::CurrentEventScope::CurrentEventScope):
-                        (WebCore::CurrentEventScope::~CurrentEventScope):
</del><ins>+                        * Modules/mediacontrols/mediaControlsiOS.js:
+                        (ControllerIOS.prototype.createControls): Listen for touchstart on the scrubber.
+                        (ControllerIOS.prototype.handleTimelineInput): Call the prototype, but pause if necessary.
+                        (ControllerIOS.prototype.handleTimelineChange): Just moved this to be with the other timeline functions.
+                        (ControllerIOS.prototype.handleTimelineTouchStart): Add the listeners for end and cancel. Remember that we are
+                        potentially about to scrub.
+                        (ControllerIOS.prototype.handleTimelineTouchEnd): Remove the listeners.
</ins><span class="cx"> 
</span><del>-                        These events don’t have an associated pressure, so send nil for the
-                        correspondingPressureEvent.
-                        (WebCore::EventHandler::wheelEvent):
-                        (WebCore::EventHandler::keyEvent):
</del><ins>+                2015-05-12  Dana Burkart
+                Dana Burkart  &lt;dburkart@apple.com
+                dburkart@apple.com&gt;
</ins><span class="cx"> 
</span><del>-                        Pipe through correspondingPressureEvent.
-                        (WebCore::EventHandler::mouseDown):
-                        (WebCore::EventHandler::mouseDragged):
-                        (WebCore::EventHandler::mouseUp):
-                        (WebCore::EventHandler::mouseMoved):
</del><ins>+                        Merge r183954. rdar://problem/20281886
</ins><span class="cx"> 
</span><del>-                        New function to handle pressure change events.
-                        (WebCore::EventHandler::pressureChange):
</del><ins>+                    2015-05-07  Beth Dakin  &lt;bdakin@apple.com&gt;
</ins><span class="cx"> 
</span><del>-                        Pipe through correspondingPressureEvent.
-                        (WebCore::EventHandler::passMouseMovedEventToScrollbars):
-                        (WebCore::EventHandler::currentPlatformMouseEvent):
</del><ins>+                            New force-related DOM events should fire in WK1 views
+                            https://bugs.webkit.org/show_bug.cgi?id=144663
+                            -and corresponding-
+                            rdar://problem/20281886
</ins><span class="cx"> 
</span><del>-                        Take the correspondingPressureEvent in order to build a PlatformMouseEvent with
-                        the correct pressure information.
-                        * platform/mac/PlatformEventFactoryMac.h:
-                        * platform/mac/PlatformEventFactoryMac.mm:
-                        (WebCore::globalPointForEvent):
-                        (WebCore::pointForEvent):
-                        (WebCore::mouseButtonForEvent):
-                        (WebCore::PlatformMouseEventBuilder::PlatformMouseEventBuilder):
-                        (WebCore::PlatformEventFactory::createPlatformMouseEvent):
</del><ins>+                            Reviewed by Sam Weinig.
</ins><span class="cx"> 
</span><del>-                2015-05-12  Dana Burkart
-                Dana Burkart  &lt;dburkart@apple.com
-                dburkart@apple.com&gt;
</del><ins>+                            All of the WK1 mouse events need to take the correspondingPressureEvent.
+                            * page/EventHandler.h:
</ins><span class="cx"> 
</span><del>-                        Merge r183953. rdar://problem/19997548
</del><ins>+                            Make correspondingPressureEvent a part of CurrentEventScope. This is needed to
+                            have accurate pressure information for all of the mouse events in subframes.
+                            * page/mac/EventHandlerMac.mm:
+                            (WebCore::correspondingPressureEventSlot):
+                            (WebCore::EventHandler::correspondingPressureEvent):
+                            (WebCore::CurrentEventScope::CurrentEventScope):
+                            (WebCore::CurrentEventScope::~CurrentEventScope):
</ins><span class="cx"> 
</span><del>-                    2015-05-06  Roger Fong  &lt;roger_fong@apple.com&gt;
</del><ins>+                            These events don’t have an associated pressure, so send nil for the
+                            correspondingPressureEvent.
+                            (WebCore::EventHandler::wheelEvent):
+                            (WebCore::EventHandler::keyEvent):
</ins><span class="cx"> 
</span><del>-                            Media Controls: Scrubber should be independent of actual video time, causes scrubber to be jumpy.
-                            https://bugs.webkit.org/show_bug.cgi?id=144700.
-                            &lt;rdar://problem/19997548&gt;
</del><ins>+                            Pipe through correspondingPressureEvent.
+                            (WebCore::EventHandler::mouseDown):
+                            (WebCore::EventHandler::mouseDragged):
+                            (WebCore::EventHandler::mouseUp):
+                            (WebCore::EventHandler::mouseMoved):
</ins><span class="cx"> 
</span><del>-                            Reviewed by Jer Noble.
</del><ins>+                            New function to handle pressure change events.
+                            (WebCore::EventHandler::pressureChange):
</ins><span class="cx"> 
</span><del>-                            Update time and timeline during the timeline input event instead of the wrapper's mousemove.
-                            (Controller.prototype.handleWrapperMouseMove):
-                            (Controller.prototype.handleTimelineMouseMove):
-                            (Controller.prototype.drawTimelineBackground):
</del><ins>+                            Pipe through correspondingPressureEvent.
+                            (WebCore::EventHandler::passMouseMovedEventToScrollbars):
+                            (WebCore::EventHandler::currentPlatformMouseEvent):
</ins><span class="cx"> 
</span><del>-                            (Controller.prototype.updateControlsWhileScrubbing):
-                            Updates time and scrubber to reflect timeline user input.
</del><ins>+                            Take the correspondingPressureEvent in order to build a PlatformMouseEvent with
+                            the correct pressure information.
+                            * platform/mac/PlatformEventFactoryMac.h:
+                            * platform/mac/PlatformEventFactoryMac.mm:
+                            (WebCore::globalPointForEvent):
+                            (WebCore::pointForEvent):
+                            (WebCore::mouseButtonForEvent):
+                            (WebCore::PlatformMouseEventBuilder::PlatformMouseEventBuilder):
+                            (WebCore::PlatformEventFactory::createPlatformMouseEvent):
</ins><span class="cx"> 
</span><span class="cx">                     2015-05-12  Dana Burkart
</span><span class="cx">                     Dana Burkart  &lt;dburkart@apple.com
</span><span class="cx">                     dburkart@apple.com&gt;
</span><span class="cx"> 
</span><del>-                            Merge r183943. rdar://problem/19913748
</del><ins>+                            Merge r183953. rdar://problem/19997548
</ins><span class="cx"> 
</span><del>-                        2015-05-07  Simon Fraser  &lt;simon.fraser@apple.com&gt;
</del><ins>+                        2015-05-06  Roger Fong  &lt;roger_fong@apple.com&gt;
</ins><span class="cx"> 
</span><del>-                                Remove the WK1-only code path for independently composited iframes
-                                https://bugs.webkit.org/show_bug.cgi?id=144722
</del><ins>+                                Media Controls: Scrubber should be independent of actual video time, causes scrubber to be jumpy.
+                                https://bugs.webkit.org/show_bug.cgi?id=144700.
+                                &lt;rdar://problem/19997548&gt;
</ins><span class="cx"> 
</span><del>-                                Reviewed by Dean Jackson.
</del><ins>+                                Reviewed by Jer Noble.
</ins><span class="cx"> 
</span><del>-                                In WebKit1 on Mac, we allowed iframes to be composited independently of their
-                                parent document, relying on the fact that the frame's platform view can host
-                                a layer-backed view. However, this ran into bugs (rdar://problem/18862298),
-                                and triggers the assertion at the end of FrameView::updateLayoutAndStyleIfNeededRecursive(),
-                                because the compositing update after a layout can dirty style in notifyIFramesOfCompositingChange().
</del><ins>+                                Update time and timeline during the timeline input event instead of the wrapper's mousemove.
+                                (Controller.prototype.handleWrapperMouseMove):
+                                (Controller.prototype.handleTimelineMouseMove):
+                                (Controller.prototype.drawTimelineBackground):
</ins><span class="cx"> 
</span><del>-                                Removing the WK1-only code path solves these problems. It also eliminates the need
-                                to do compositing-specific frame overlap testing.
</del><ins>+                                (Controller.prototype.updateControlsWhileScrubbing):
+                                Updates time and scrubber to reflect timeline user input.
</ins><span class="cx"> 
</span><del>-                                * page/FrameView.cpp:
-                                (WebCore::FrameView::setIsOverlapped): No need to do compositing-related things here.
-                                Any iframe that gets composited will participate in the normal compositing overlap
-                                testing in its parent frame.
-                                (WebCore::FrameView::hasCompositedContentIncludingDescendants): Deleted.
-                                (WebCore::FrameView::hasCompositingAncestor): Deleted.
-                                * page/FrameView.h:
-                                * rendering/RenderLayerCompositor.cpp: Replace ownerElement() checks in this file
-                                with an isMainFrameCompositor() for readability. Some 0-&gt;nullptr.
-                                (WebCore::RenderLayerCompositor::cacheAcceleratedCompositingFlags):
-                                (WebCore::RenderLayerCompositor::chromeClient):
-                                (WebCore::RenderLayerCompositor::enclosingCompositorFlushingLayers):
-                                (WebCore::RenderLayerCompositor::updateCompositingLayers):
-                                (WebCore::RenderLayerCompositor::appendDocumentOverlayLayers):
-                                (WebCore::RenderLayerCompositor::updateBacking):
-                                (WebCore::RenderLayerCompositor::layerTreeAsText):
-                                (WebCore::RenderLayerCompositor::frameContentsCompositor):
-                                (WebCore::RenderLayerCompositor::setIsInWindow):
-                                (WebCore::RenderLayerCompositor::requiresCompositingForScrollableFrame):
-                                (WebCore::RenderLayerCompositor::requiresCompositingForFrame): frameRenderer.requiresAcceleratedCompositing()
-                                already bails on no content RenderView, so the shouldPropagateCompositingToEnclosingFrame() check does
-                                nothing and is removed.
-                                (WebCore::RenderLayerCompositor::isAsyncScrollableStickyLayer):
-                                (WebCore::RenderLayerCompositor::requiresScrollLayer):
-                                (WebCore::RenderLayerCompositor::documentUsesTiledBacking):
-                                (WebCore::RenderLayerCompositor::isMainFrameCompositor):
-                                (WebCore::RenderLayerCompositor::shouldCompositeOverflowControls):
-                                (WebCore::RenderLayerCompositor::requiresOverhangAreasLayer):
-                                (WebCore::RenderLayerCompositor::requiresContentShadowLayer):
-                                (WebCore::RenderLayerCompositor::updateLayerForTopOverhangArea):
-                                (WebCore::RenderLayerCompositor::updateLayerForBottomOverhangArea):
-                                (WebCore::RenderLayerCompositor::updateLayerForHeader):
-                                (WebCore::RenderLayerCompositor::updateLayerForFooter):
-                                (WebCore::RenderLayerCompositor::ensureRootLayer): Main frame attaches via ChromeClient,
-                                all other frames attach via parent frame.
-                                (WebCore::RenderLayerCompositor::notifyIFramesOfCompositingChange): This call to
-                                scheduleSetNeedsStyleRecalc(SyntheticStyleChange) was the source of dirtying style after
-                                layout, but is no longer needed so remove it.
-                                (WebCore::RenderLayerCompositor::registerAllViewportConstrainedLayers):
-                                (WebCore::RenderLayerCompositor::unregisterAllViewportConstrainedLayers):
-                                (WebCore::RenderLayerCompositor::scrollingCoordinator):
-                                (WebCore::RenderLayerCompositor::graphicsLayerFactory):
-                                (WebCore::RenderLayerCompositor::allowsIndependentlyCompositedFrames): Deleted.
-                                (WebCore::RenderLayerCompositor::shouldPropagateCompositingToEnclosingFrame): Deleted.
-                                (WebCore::RenderLayerCompositor::mainFrameBackingIsTiled): Deleted. This was mis-named;
-                                it really asks whether the document uses tiled backing, but does not check for main frame.
-                                * rendering/RenderLayerCompositor.h:
-                                * rendering/RenderWidget.cpp:
-                                (WebCore::RenderWidget::paintContents): No need to do frame overlap testing for
-                                compositing now.
-
</del><span class="cx">                         2015-05-12  Dana Burkart
</span><span class="cx">                         Dana Burkart  &lt;dburkart@apple.com
</span><span class="cx">                         dburkart@apple.com&gt;
</span><span class="cx"> 
</span><del>-                                Merge r183927. rdar://problem/20854785
</del><ins>+                                Merge r183943. rdar://problem/19913748
</ins><span class="cx"> 
</span><del>-                            2015-05-07  Eric Carlson  &lt;eric.carlson@apple.com&gt;
</del><ins>+                            2015-05-07  Simon Fraser  &lt;simon.fraser@apple.com&gt;
</ins><span class="cx"> 
</span><del>-                                    [Mac] Playback target isn't set on new element
-                                    https://bugs.webkit.org/show_bug.cgi?id=144724
</del><ins>+                                    Remove the WK1-only code path for independently composited iframes
+                                    https://bugs.webkit.org/show_bug.cgi?id=144722
</ins><span class="cx"> 
</span><del>-                                    Reviewed by Jer Noble.
</del><ins>+                                    Reviewed by Dean Jackson.
</ins><span class="cx"> 
</span><del>-                                    * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.h:
-                                    * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm:
-                                    (WebCore::MediaPlayerPrivateAVFoundationObjC::createAVPlayer): Call setShouldPlayToPlaybackTarget
-                                    if necessary.
-                                    (WebCore::MediaPlayerPrivateAVFoundationObjC::setShouldPlayToPlaybackTarget): Remember
-                                    the setting in case we don't have an AVPlayer yet.
</del><ins>+                                    In WebKit1 on Mac, we allowed iframes to be composited independently of their
+                                    parent document, relying on the fact that the frame's platform view can host
+                                    a layer-backed view. However, this ran into bugs (rdar://problem/18862298),
+                                    and triggers the assertion at the end of FrameView::updateLayoutAndStyleIfNeededRecursive(),
+                                    because the compositing update after a layout can dirty style in notifyIFramesOfCompositingChange().
</ins><span class="cx"> 
</span><ins>+                                    Removing the WK1-only code path solves these problems. It also eliminates the need
+                                    to do compositing-specific frame overlap testing.
+
+                                    * page/FrameView.cpp:
+                                    (WebCore::FrameView::setIsOverlapped): No need to do compositing-related things here.
+                                    Any iframe that gets composited will participate in the normal compositing overlap
+                                    testing in its parent frame.
+                                    (WebCore::FrameView::hasCompositedContentIncludingDescendants): Deleted.
+                                    (WebCore::FrameView::hasCompositingAncestor): Deleted.
+                                    * page/FrameView.h:
+                                    * rendering/RenderLayerCompositor.cpp: Replace ownerElement() checks in this file
+                                    with an isMainFrameCompositor() for readability. Some 0-&gt;nullptr.
+                                    (WebCore::RenderLayerCompositor::cacheAcceleratedCompositingFlags):
+                                    (WebCore::RenderLayerCompositor::chromeClient):
+                                    (WebCore::RenderLayerCompositor::enclosingCompositorFlushingLayers):
+                                    (WebCore::RenderLayerCompositor::updateCompositingLayers):
+                                    (WebCore::RenderLayerCompositor::appendDocumentOverlayLayers):
+                                    (WebCore::RenderLayerCompositor::updateBacking):
+                                    (WebCore::RenderLayerCompositor::layerTreeAsText):
+                                    (WebCore::RenderLayerCompositor::frameContentsCompositor):
+                                    (WebCore::RenderLayerCompositor::setIsInWindow):
+                                    (WebCore::RenderLayerCompositor::requiresCompositingForScrollableFrame):
+                                    (WebCore::RenderLayerCompositor::requiresCompositingForFrame): frameRenderer.requiresAcceleratedCompositing()
+                                    already bails on no content RenderView, so the shouldPropagateCompositingToEnclosingFrame() check does
+                                    nothing and is removed.
+                                    (WebCore::RenderLayerCompositor::isAsyncScrollableStickyLayer):
+                                    (WebCore::RenderLayerCompositor::requiresScrollLayer):
+                                    (WebCore::RenderLayerCompositor::documentUsesTiledBacking):
+                                    (WebCore::RenderLayerCompositor::isMainFrameCompositor):
+                                    (WebCore::RenderLayerCompositor::shouldCompositeOverflowControls):
+                                    (WebCore::RenderLayerCompositor::requiresOverhangAreasLayer):
+                                    (WebCore::RenderLayerCompositor::requiresContentShadowLayer):
+                                    (WebCore::RenderLayerCompositor::updateLayerForTopOverhangArea):
+                                    (WebCore::RenderLayerCompositor::updateLayerForBottomOverhangArea):
+                                    (WebCore::RenderLayerCompositor::updateLayerForHeader):
+                                    (WebCore::RenderLayerCompositor::updateLayerForFooter):
+                                    (WebCore::RenderLayerCompositor::ensureRootLayer): Main frame attaches via ChromeClient,
+                                    all other frames attach via parent frame.
+                                    (WebCore::RenderLayerCompositor::notifyIFramesOfCompositingChange): This call to
+                                    scheduleSetNeedsStyleRecalc(SyntheticStyleChange) was the source of dirtying style after
+                                    layout, but is no longer needed so remove it.
+                                    (WebCore::RenderLayerCompositor::registerAllViewportConstrainedLayers):
+                                    (WebCore::RenderLayerCompositor::unregisterAllViewportConstrainedLayers):
+                                    (WebCore::RenderLayerCompositor::scrollingCoordinator):
+                                    (WebCore::RenderLayerCompositor::graphicsLayerFactory):
+                                    (WebCore::RenderLayerCompositor::allowsIndependentlyCompositedFrames): Deleted.
+                                    (WebCore::RenderLayerCompositor::shouldPropagateCompositingToEnclosingFrame): Deleted.
+                                    (WebCore::RenderLayerCompositor::mainFrameBackingIsTiled): Deleted. This was mis-named;
+                                    it really asks whether the document uses tiled backing, but does not check for main frame.
+                                    * rendering/RenderLayerCompositor.h:
+                                    * rendering/RenderWidget.cpp:
+                                    (WebCore::RenderWidget::paintContents): No need to do frame overlap testing for
+                                    compositing now.
+
</ins><span class="cx">                             2015-05-12  Dana Burkart
</span><span class="cx">                             Dana Burkart  &lt;dburkart@apple.com
</span><span class="cx">                             dburkart@apple.com&gt;
</span><span class="cx"> 
</span><del>-                                    Merge r183909. rdar://problem/18894598
</del><ins>+                                    Merge r183927. rdar://problem/20854785
</ins><span class="cx"> 
</span><del>-                                2015-05-06  Daniel Bates  &lt;dabates@apple.com&gt;
</del><ins>+                                2015-05-07  Eric Carlson  &lt;eric.carlson@apple.com&gt;
</ins><span class="cx"> 
</span><del>-                                        [iOS][WK2] Pause/resume database thread when UIProcess enters/leaves the background
-                                        https://bugs.webkit.org/show_bug.cgi?id=144657
-                                        &lt;rdar://problem/18894598&gt;
</del><ins>+                                        [Mac] Playback target isn't set on new element
+                                        https://bugs.webkit.org/show_bug.cgi?id=144724
</ins><span class="cx"> 
</span><del>-                                        Reviewed by Andy Estes.
</del><ins>+                                        Reviewed by Jer Noble.
</ins><span class="cx"> 
</span><del>-                                        Export WebCore functionality to pause and resume the database thread so that we can
-                                        make use of this functionality from WebKit2.
</del><ins>+                                        * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.h:
+                                        * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm:
+                                        (WebCore::MediaPlayerPrivateAVFoundationObjC::createAVPlayer): Call setShouldPlayToPlaybackTarget
+                                        if necessary.
+                                        (WebCore::MediaPlayerPrivateAVFoundationObjC::setShouldPlayToPlaybackTarget): Remember
+                                        the setting in case we don't have an AVPlayer yet.
</ins><span class="cx"> 
</span><del>-                                        * Modules/webdatabase/AbstractDatabaseServer.h:
-                                        * Modules/webdatabase/DatabaseManager.cpp:
-                                        (WebCore::DatabaseManager::setPauseAllDatabases): Added; turns around and calls DatabaseServer::setPauseAllDatabases().
-                                        * Modules/webdatabase/DatabaseManager.h:
-                                        * Modules/webdatabase/DatabaseServer.cpp:
-                                        (WebCore::DatabaseServer::setPauseAllDatabases): Added; turns around and calls
-                                        DatabaseTracker::tracker().setDatabasesPaused() to pause or resume the database thread.
-                                        For now, we guard this call with PLATFORM(IOS). We'll look to remove this guard once
-                                        we fix &lt;https://bugs.webkit.org/show_bug.cgi?id=144660&gt;.
-                                        * Modules/webdatabase/DatabaseServer.h:
-
</del><span class="cx">                                 2015-05-12  Dana Burkart
</span><del>-                                Dana Burkart  &lt;dburkart@apple.com&gt;
</del><ins>+                                Dana Burkart  &lt;dburkart@apple.com
+                                dburkart@apple.com&gt;
</ins><span class="cx"> 
</span><del>-                                        Merge r183942. rdar://problem/20049088
</del><ins>+                                        Merge r183909. rdar://problem/18894598
</ins><span class="cx"> 
</span><del>-                                    2015-05-06  Dean Jackson  &lt;dino@apple.com&gt;
</del><ins>+                                    2015-05-06  Daniel Bates  &lt;dabates@apple.com&gt;
</ins><span class="cx"> 
</span><del>-                                            Handle backdrop views that have to tile
-                                            https://bugs.webkit.org/show_bug.cgi?id=142317
-                                            &lt;rdar://problem/20049088&gt;
</del><ins>+                                            [iOS][WK2] Pause/resume database thread when UIProcess enters/leaves the background
+                                            https://bugs.webkit.org/show_bug.cgi?id=144657
+                                            &lt;rdar://problem/18894598&gt;
</ins><span class="cx"> 
</span><del>-                                            Reviewed by Simon Fraser.
</del><ins>+                                            Reviewed by Andy Estes.
</ins><span class="cx"> 
</span><del>-                                            Take 2 - this was rolled out because Mavericks was crashing.
</del><ins>+                                            Export WebCore functionality to pause and resume the database thread so that we can
+                                            make use of this functionality from WebKit2.
</ins><span class="cx"> 
</span><del>-                                            Make sure backdrop layers don't tile. If they are big
-                                            enough, we'll leave it to the platform compositor to handle.
</del><ins>+                                            * Modules/webdatabase/AbstractDatabaseServer.h:
+                                            * Modules/webdatabase/DatabaseManager.cpp:
+                                            (WebCore::DatabaseManager::setPauseAllDatabases): Added; turns around and calls DatabaseServer::setPauseAllDatabases().
+                                            * Modules/webdatabase/DatabaseManager.h:
+                                            * Modules/webdatabase/DatabaseServer.cpp:
+                                            (WebCore::DatabaseServer::setPauseAllDatabases): Added; turns around and calls
+                                            DatabaseTracker::tracker().setDatabasesPaused() to pause or resume the database thread.
+                                            For now, we guard this call with PLATFORM(IOS). We'll look to remove this guard once
+                                            we fix &lt;https://bugs.webkit.org/show_bug.cgi?id=144660&gt;.
+                                            * Modules/webdatabase/DatabaseServer.h:
</ins><span class="cx"> 
</span><del>-                                            This also fixes a bug where if a layer changed from a backdrop
-                                            type to a tiled type, it would still retain its custom appearance
-                                            and we'd try to add children to the wrong layer.
-
-                                            Test: compositing/media-controls-bar-appearance-big.html
-
-                                            * platform/graphics/ca/GraphicsLayerCA.cpp:
-                                            (WebCore::GraphicsLayerCA::commitLayerChangesBeforeSublayers): Check if
-                                            a layer needs a backdrop before checking if it needs to tile.
-
</del><span class="cx">                                     2015-05-12  Dana Burkart
</span><span class="cx">                                     Dana Burkart  &lt;dburkart@apple.com&gt;
</span><span class="cx"> 
</span><del>-                                            Merge r183894. rdar://problem/20049088
</del><ins>+                                            Merge r183942. rdar://problem/20049088
</ins><span class="cx"> 
</span><span class="cx">                                         2015-05-06  Dean Jackson  &lt;dino@apple.com&gt;
</span><span class="cx"> 
</span><span class="lines">@@ -327,6 +321,8 @@
</span><span class="cx"> 
</span><span class="cx">                                                 Reviewed by Simon Fraser.
</span><span class="cx"> 
</span><ins>+                                                Take 2 - this was rolled out because Mavericks was crashing.
+
</ins><span class="cx">                                                 Make sure backdrop layers don't tile. If they are big
</span><span class="cx">                                                 enough, we'll leave it to the platform compositor to handle.
</span><span class="cx"> 
</span><span class="lines">@@ -340,6 +336,32 @@
</span><span class="cx">                                                 (WebCore::GraphicsLayerCA::commitLayerChangesBeforeSublayers): Check if
</span><span class="cx">                                                 a layer needs a backdrop before checking if it needs to tile.
</span><span class="cx"> 
</span><ins>+                                        2015-05-12  Dana Burkart
+                                        Dana Burkart  &lt;dburkart@apple.com&gt;
+
+                                                Merge r183894. rdar://problem/20049088
+
+                                            2015-05-06  Dean Jackson  &lt;dino@apple.com&gt;
+
+                                                    Handle backdrop views that have to tile
+                                                    https://bugs.webkit.org/show_bug.cgi?id=142317
+                                                    &lt;rdar://problem/20049088&gt;
+
+                                                    Reviewed by Simon Fraser.
+
+                                                    Make sure backdrop layers don't tile. If they are big
+                                                    enough, we'll leave it to the platform compositor to handle.
+
+                                                    This also fixes a bug where if a layer changed from a backdrop
+                                                    type to a tiled type, it would still retain its custom appearance
+                                                    and we'd try to add children to the wrong layer.
+
+                                                    Test: compositing/media-controls-bar-appearance-big.html
+
+                                                    * platform/graphics/ca/GraphicsLayerCA.cpp:
+                                                    (WebCore::GraphicsLayerCA::commitLayerChangesBeforeSublayers): Check if
+                                                    a layer needs a backdrop before checking if it needs to tile.
+
</ins><span class="cx"> 2015-05-06  Brent Fulgham  &lt;bfulgham@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         Scroll-snap points do not handle margins and padding propertly
</span></span></pre></div>
<a id="branchessafari601132branchSourceWebCoredomDocumentcpp"></a>
<div class="modfile"><h4>Modified: branches/safari-601.1.32-branch/Source/WebCore/dom/Document.cpp (184250 => 184251)</h4>
<pre class="diff"><span>
<span class="info">--- branches/safari-601.1.32-branch/Source/WebCore/dom/Document.cpp        2015-05-13 04:17:10 UTC (rev 184250)
+++ branches/safari-601.1.32-branch/Source/WebCore/dom/Document.cpp        2015-05-13 04:17:14 UTC (rev 184251)
</span><span class="lines">@@ -2244,6 +2244,15 @@
</span><span class="cx">     if (m_mediaQueryMatcher)
</span><span class="cx">         m_mediaQueryMatcher-&gt;documentDestroyed();
</span><span class="cx"> 
</span><ins>+#if ENABLE(WIRELESS_PLAYBACK_TARGET)
+    if (!m_clientToIDMap.isEmpty() &amp;&amp; page()) {
+        Vector&lt;WebCore::MediaPlaybackTargetClient*&gt; clients;
+        copyKeysToVector(m_clientToIDMap, clients);
+        for (auto client : clients)
+            removePlaybackTargetPickerClient(*client);
+    }
+#endif
+
</ins><span class="cx">     disconnectFromFrame();
</span><span class="cx"> 
</span><span class="cx">     m_hasPreparedForDestruction = true;
</span></span></pre></div>
<a id="branchessafari601132branchSourceWebCorehtmlHTMLMediaElementcpp"></a>
<div class="modfile"><h4>Modified: branches/safari-601.1.32-branch/Source/WebCore/html/HTMLMediaElement.cpp (184250 => 184251)</h4>
<pre class="diff"><span>
<span class="info">--- branches/safari-601.1.32-branch/Source/WebCore/html/HTMLMediaElement.cpp        2015-05-13 04:17:10 UTC (rev 184250)
+++ branches/safari-601.1.32-branch/Source/WebCore/html/HTMLMediaElement.cpp        2015-05-13 04:17:14 UTC (rev 184251)
</span><span class="lines">@@ -460,6 +460,10 @@
</span><span class="cx">         document.registerForPageScaleFactorChangedCallbacks(this);
</span><span class="cx"> #endif
</span><span class="cx"> 
</span><ins>+#if ENABLE(WIRELESS_PLAYBACK_TARGET)
+    document.registerForPageCacheSuspensionCallbacks(this);
+#endif
+
</ins><span class="cx">     document.addAudioProducer(this);
</span><span class="cx">     addElementToDocumentMap(*this, document);
</span><span class="cx"> }
</span><span class="lines">@@ -488,6 +492,10 @@
</span><span class="cx">         document.unregisterForPageScaleFactorChangedCallbacks(this);
</span><span class="cx"> #endif
</span><span class="cx"> 
</span><ins>+#if ENABLE(WIRELESS_PLAYBACK_TARGET)
+    document.unregisterForPageCacheSuspensionCallbacks(this);
+#endif
+
</ins><span class="cx">     document.removeAudioProducer(this);
</span><span class="cx">     removeElementFromDocumentMap(*this, document);
</span><span class="cx"> }
</span><span class="lines">@@ -509,6 +517,18 @@
</span><span class="cx">     HTMLElement::didMoveToNewDocument(oldDocument);
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+#if ENABLE(WIRELESS_PLAYBACK_TARGET)
+void HTMLMediaElement::documentWillSuspendForPageCache()
+{
+    m_mediaSession-&gt;unregisterWithDocument(*this);
+}
+
+void HTMLMediaElement::documentDidResumeFromPageCache()
+{
+    m_mediaSession-&gt;registerWithDocument(*this);
+}
+#endif
+
</ins><span class="cx"> bool HTMLMediaElement::hasCustomFocusLogic() const
</span><span class="cx"> {
</span><span class="cx">     return true;
</span></span></pre></div>
<a id="branchessafari601132branchSourceWebCorehtmlHTMLMediaElementh"></a>
<div class="modfile"><h4>Modified: branches/safari-601.1.32-branch/Source/WebCore/html/HTMLMediaElement.h (184250 => 184251)</h4>
<pre class="diff"><span>
<span class="info">--- branches/safari-601.1.32-branch/Source/WebCore/html/HTMLMediaElement.h        2015-05-13 04:17:10 UTC (rev 184250)
+++ branches/safari-601.1.32-branch/Source/WebCore/html/HTMLMediaElement.h        2015-05-13 04:17:14 UTC (rev 184251)
</span><span class="lines">@@ -737,6 +737,11 @@
</span><span class="cx"> 
</span><span class="cx">     void updateCaptionContainer();
</span><span class="cx"> 
</span><ins>+#if ENABLE(WIRELESS_PLAYBACK_TARGET)
+    virtual void documentWillSuspendForPageCache() override final;
+    virtual void documentDidResumeFromPageCache() override final;
+#endif
+
</ins><span class="cx">     Timer m_pendingActionTimer;
</span><span class="cx">     Timer m_progressEventTimer;
</span><span class="cx">     Timer m_playbackProgressTimer;
</span></span></pre>
</div>
</div>

</body>
</html>