<!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>[212718] trunk/Source/WebKit2</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/212718">212718</a></dd>
<dt>Author</dt> <dd>commit-queue@webkit.org</dd>
<dt>Date</dt> <dd>2017-02-21 10:12:20 -0800 (Tue, 21 Feb 2017)</dd>
</dl>
<h3>Log Message</h3>
<pre>Remove unused files.
https://bugs.webkit.org/show_bug.cgi?id=168656.
Patch by Daewoong Jang <daewoong.jang@navercorp.com> on 2017-02-21
Reviewed by Csaba Osztrogonác.
Remove files which became unused after removal of EFL port.
* UIProcess/CoordinatedGraphics/PageViewportController.cpp: Removed.
* UIProcess/CoordinatedGraphics/PageViewportController.h: Removed.
* UIProcess/PageViewportControllerClient.h: Removed.</pre>
<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkSourceWebKit2ChangeLog">trunk/Source/WebKit2/ChangeLog</a></li>
</ul>
<h3>Removed Paths</h3>
<ul>
<li><a href="#trunkSourceWebKit2UIProcessCoordinatedGraphicsPageViewportControllercpp">trunk/Source/WebKit2/UIProcess/CoordinatedGraphics/PageViewportController.cpp</a></li>
<li><a href="#trunkSourceWebKit2UIProcessCoordinatedGraphicsPageViewportControllerh">trunk/Source/WebKit2/UIProcess/CoordinatedGraphics/PageViewportController.h</a></li>
<li><a href="#trunkSourceWebKit2UIProcessPageViewportControllerClienth">trunk/Source/WebKit2/UIProcess/PageViewportControllerClient.h</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkSourceWebKit2ChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/ChangeLog (212717 => 212718)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/ChangeLog        2017-02-21 18:00:43 UTC (rev 212717)
+++ trunk/Source/WebKit2/ChangeLog        2017-02-21 18:12:20 UTC (rev 212718)
</span><span class="lines">@@ -1,3 +1,16 @@
</span><ins>+2017-02-21 Daewoong Jang <daewoong.jang@navercorp.com>
+
+ Remove unused files.
+ https://bugs.webkit.org/show_bug.cgi?id=168656.
+
+ Reviewed by Csaba Osztrogonác.
+
+ Remove files which became unused after removal of EFL port.
+
+ * UIProcess/CoordinatedGraphics/PageViewportController.cpp: Removed.
+ * UIProcess/CoordinatedGraphics/PageViewportController.h: Removed.
+ * UIProcess/PageViewportControllerClient.h: Removed.
+
</ins><span class="cx"> 2017-02-21 Youenn Fablet <youenn@apple.com>
</span><span class="cx">
</span><span class="cx"> [WebRTC] LibWebRTCSocket::SendTo message should have a correct SocketAddress
</span></span></pre></div>
<a id="trunkSourceWebKit2UIProcessCoordinatedGraphicsPageViewportControllercpp"></a>
<div class="delfile"><h4>Deleted: trunk/Source/WebKit2/UIProcess/CoordinatedGraphics/PageViewportController.cpp (212717 => 212718)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/UIProcess/CoordinatedGraphics/PageViewportController.cpp        2017-02-21 18:00:43 UTC (rev 212717)
+++ trunk/Source/WebKit2/UIProcess/CoordinatedGraphics/PageViewportController.cpp        2017-02-21 18:12:20 UTC (rev 212718)
</span><span class="lines">@@ -1,340 +0,0 @@
</span><del>-/*
- * Copyright (C) 2011, 2012 Nokia Corporation and/or its subsidiary(-ies)
- * Copyright (C) 2011 Benjamin Poulain <benjamin@webkit.org>
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Library General Public
- * License as published by the Free Software Foundation; either
- * version 2 of the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Library General Public License for more details.
- *
- * You should have received a copy of the GNU Library General Public License
- * along with this program; see the file COPYING.LIB. If not, write to
- * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
- * Boston, MA 02110-1301, USA.
- *
- */
-
-#include "config.h"
-#include "PageViewportController.h"
-
-#include "AcceleratedDrawingAreaProxy.h"
-#include "PageViewportControllerClient.h"
-#include "WebPageProxy.h"
-#include <WebCore/FloatRect.h>
-#include <WebCore/FloatSize.h>
-#include <wtf/MathExtras.h>
-
-using namespace WebCore;
-
-namespace WebKit {
-
-PageViewportController::PageViewportController(WebKit::WebPageProxy* proxy, PageViewportControllerClient& client)
- : m_webPageProxy(proxy)
- , m_client(client)
- , m_allowsUserScaling(false)
- , m_minimumScaleToFit(1)
- , m_initiallyFitToViewport(true)
- , m_hadUserInteraction(false)
- , m_pageScaleFactor(1)
- , m_pendingPositionChange(false)
- , m_pendingScaleChange(false)
- , m_layerTreeStateIsFrozen(false)
-{
- // Initializing Viewport Raw Attributes to avoid random negative or infinity scale factors
- // if there is a race condition between the first layout and setting the viewport attributes for the first time.
- m_rawAttributes.minimumScale = 1;
- m_rawAttributes.maximumScale = 1;
- m_rawAttributes.userScalable = m_allowsUserScaling;
-
- // The initial scale might be implicit and set to -1, in this case we have to infer it
- // using the viewport size and the final layout size.
- // To be able to assert for valid scale we initialize it to -1.
- m_rawAttributes.initialScale = -1;
-}
-
-float PageViewportController::innerBoundedViewportScale(float viewportScale) const
-{
- return clampTo(viewportScale, m_minimumScaleToFit, m_rawAttributes.maximumScale);
-}
-
-float PageViewportController::outerBoundedViewportScale(float viewportScale) const
-{
- if (m_allowsUserScaling) {
- // Bounded by [0.1, 10.0] like the viewport meta code in WebCore.
- float hardMin = std::max<float>(0.1, 0.5 * m_minimumScaleToFit);
- float hardMax = std::min<float>(10, 2 * m_rawAttributes.maximumScale);
- return clampTo(viewportScale, hardMin, hardMax);
- }
- return innerBoundedViewportScale(viewportScale);
-}
-
-float PageViewportController::deviceScaleFactor() const
-{
- return m_webPageProxy->deviceScaleFactor();
-}
-
-static inline bool isIntegral(float value)
-{
- return static_cast<int>(value) == value;
-}
-
-FloatPoint PageViewportController::pixelAlignedFloatPoint(const FloatPoint& framePosition)
-{
- return framePosition;
-}
-
-FloatPoint PageViewportController::boundContentsPositionAtScale(const WebCore::FloatPoint& framePosition, float scale)
-{
- // We need to floor the viewport here as to allow aligning the content in device units. If not,
- // it might not be possible to scroll the last pixel and that affects fixed position elements.
- FloatRect bounds;
- bounds.setWidth(std::max(0.f, m_contentsSize.width() - floorf(m_viewportSize.width() / scale)));
- bounds.setHeight(std::max(0.f, m_contentsSize.height() - floorf(m_viewportSize.height() / scale)));
-
- FloatPoint position;
- position.setX(clampTo(framePosition.x(), bounds.x(), bounds.width()));
- position.setY(clampTo(framePosition.y(), bounds.y(), bounds.height()));
-
- return position;
-}
-
-FloatPoint PageViewportController::boundContentsPosition(const WebCore::FloatPoint& framePosition)
-{
- return boundContentsPositionAtScale(framePosition, m_pageScaleFactor);
-}
-
-void PageViewportController::didCommitLoad()
-{
- // Do not count the previous committed page contents as covered.
- m_lastFrameCoveredRect = FloatRect();
-
- // Do not continue to use the content size of the previous page.
- m_contentsSize = IntSize();
-
- m_contentsPosition = FloatPoint();
-
- m_layerTreeStateIsFrozen = true;
-
- m_initiallyFitToViewport = true;
-
- // Reset the position to the top, page/history scroll requests may override this before we re-enable rendering.
- applyPositionAfterRenderingContents(FloatPoint());
-}
-
-void PageViewportController::didChangeContentsSize(const IntSize& newSize)
-{
- m_contentsSize = newSize;
-
- bool minimumScaleUpdated = updateMinimumScaleToFit(false);
-
- if (m_initiallyFitToViewport) {
- // Restrict scale factors to m_minimumScaleToFit.
- ASSERT(m_minimumScaleToFit > 0);
- m_rawAttributes.initialScale = m_minimumScaleToFit;
- WebCore::restrictScaleFactorToInitialScaleIfNotUserScalable(m_rawAttributes);
- }
-
- if (minimumScaleUpdated)
- m_client.didChangeViewportAttributes();
-
- // We might have pending position change which is now possible.
- syncVisibleContents();
-}
-
-void PageViewportController::didRenderFrame(const IntSize& contentsSize, const IntRect& coveredRect)
-{
- if (m_clientContentsSize != contentsSize) {
- m_clientContentsSize = contentsSize;
- // Only update the viewport's contents dimensions along with its render if the
- // size actually changed since animations on the page trigger DidRenderFrame
- // messages without causing dimension changes.
- m_client.didChangeContentsSize(contentsSize);
- }
-
- m_lastFrameCoveredRect = coveredRect;
-
- // Apply any scale or scroll position we locked to be set on the viewport
- // only when there is something to display there. The scale goes first to
- // avoid offsetting our deferred position by scaling at the viewport center.
- // All position and scale changes resulting from a web process event should
- // go through here to be applied on the viewport to avoid showing incomplete
- // tiles to the user during a few milliseconds.
-
- if (m_pendingScaleChange) {
- m_pendingScaleChange = false;
- m_client.setPageScaleFactor(m_pageScaleFactor);
-
- // The scale changed, we have to re-pixel align.
- m_pendingPositionChange = true;
- FloatPoint currentDiscretePos = roundedIntPoint(m_contentsPosition);
- FloatPoint pixelAlignedPos = pixelAlignedFloatPoint(currentDiscretePos);
- m_contentsPosition = boundContentsPosition(pixelAlignedPos);
-
- m_webPageProxy->scalePage(m_pageScaleFactor, roundedIntPoint(m_contentsPosition));
- }
-
- // There might be rendered frames not covering our requested position yet, wait for it.
- FloatRect endVisibleContentRect(m_contentsPosition, visibleContentsSize());
- if (m_pendingPositionChange && endVisibleContentRect.intersects(coveredRect)) {
- m_client.setViewportPosition(m_contentsPosition);
- m_pendingPositionChange = false;
- }
-
- m_layerTreeStateIsFrozen = false;
-}
-
-void PageViewportController::pageTransitionViewportReady()
-{
- if (!m_rawAttributes.layoutSize.isEmpty() && m_initiallyFitToViewport) {
- m_hadUserInteraction = false;
- float initialScale = m_initiallyFitToViewport ? m_minimumScaleToFit : m_rawAttributes.initialScale;
- applyScaleAfterRenderingContents(innerBoundedViewportScale(initialScale));
- }
-}
-
-void PageViewportController::pageDidRequestScroll(const IntPoint& cssPosition)
-{
- // Ignore the request if suspended. Can only happen due to delay in event delivery.
- if (m_webPageProxy->areActiveDOMObjectsAndAnimationsSuspended())
- return;
-
- FloatPoint boundPosition = boundContentsPosition(FloatPoint(cssPosition));
- FloatPoint alignedPosition = pixelAlignedFloatPoint(boundPosition);
- FloatRect endVisibleContentRect(alignedPosition, visibleContentsSize());
-
- if (m_lastFrameCoveredRect.intersects(endVisibleContentRect))
- m_client.setViewportPosition(alignedPosition);
- else {
- // Keep the unbound position in case the contents size is changed later on.
- FloatPoint position = pixelAlignedFloatPoint(FloatPoint(cssPosition));
- applyPositionAfterRenderingContents(position);
- }
-}
-
-void PageViewportController::didChangeViewportSize(const FloatSize& newSize)
-{
- if (newSize.isEmpty())
- return;
-
- m_viewportSize = newSize;
-}
-
-void PageViewportController::didChangeContentsVisibility(const FloatPoint& position, float scale, const FloatPoint& trajectoryVector)
-{
- if (!m_pendingPositionChange)
- m_contentsPosition = position;
- if (!m_pendingScaleChange)
- applyScaleAfterRenderingContents(scale);
-
- syncVisibleContents(trajectoryVector);
-}
-
-bool PageViewportController::syncVisibleContents(const FloatPoint& trajectoryVector)
-{
- auto* drawingArea = static_cast<AcceleratedDrawingAreaProxy*>(m_webPageProxy->drawingArea());
- if (!drawingArea || m_viewportSize.isEmpty() || m_contentsSize.isEmpty())
- return false;
-
- FloatRect visibleContentsRect(boundContentsPosition(m_contentsPosition), visibleContentsSize());
- visibleContentsRect.intersect(FloatRect(FloatPoint::zero(), m_contentsSize));
- drawingArea->coordinatedLayerTreeHostProxy().setVisibleContentsRect(visibleContentsRect, trajectoryVector);
-
- if (!m_layerTreeStateIsFrozen)
- m_client.didChangeVisibleContents();
-
- return true;
-}
-
-void PageViewportController::didChangeViewportAttributes(const WebCore::ViewportAttributes& newAttributes)
-{
- if (!m_initiallyFitToViewport)
- return;
-
- if (newAttributes.layoutSize.isEmpty())
- return;
-
- m_rawAttributes = newAttributes;
- m_allowsUserScaling = !!m_rawAttributes.userScalable;
- m_initiallyFitToViewport = (m_rawAttributes.initialScale < 0);
-
- if (!m_initiallyFitToViewport)
- WebCore::restrictScaleFactorToInitialScaleIfNotUserScalable(m_rawAttributes);
-
- updateMinimumScaleToFit(true);
-
- // As the viewport attributes are calculated when loading pages, after load, or after
- // viewport resize, it is important that we inform the client of the new scale and
- // position, so that the content can be positioned correctly and pixel aligned.
- m_pendingPositionChange = true;
- m_pendingScaleChange = true;
-
- m_client.didChangeViewportAttributes();
-}
-
-FloatSize PageViewportController::visibleContentsSize() const
-{
- return FloatSize(m_viewportSize.width() / m_pageScaleFactor, m_viewportSize.height() / m_pageScaleFactor);
-}
-
-void PageViewportController::applyScaleAfterRenderingContents(float scale)
-{
- if (m_pageScaleFactor == scale)
- return;
-
- float oldPageScaleFactor = m_pageScaleFactor;
- m_pageScaleFactor = scale;
- m_pendingScaleChange = true;
- if (!syncVisibleContents()) {
- m_pageScaleFactor = oldPageScaleFactor;
- m_webPageProxy->scalePage(m_pageScaleFactor, roundedIntPoint(m_contentsPosition));
- }
-}
-
-void PageViewportController::applyPositionAfterRenderingContents(const FloatPoint& pos)
-{
- if (m_contentsPosition == pos)
- return;
-
- m_contentsPosition = pos;
- m_pendingPositionChange = true;
- syncVisibleContents();
-}
-
-bool PageViewportController::updateMinimumScaleToFit(bool userInitiatedUpdate)
-{
- if (m_viewportSize.isEmpty() || m_contentsSize.isEmpty() || !m_initiallyFitToViewport || m_hadUserInteraction)
- return false;
-
- // FIXME: Why this arbitrary precision? We likely want to omit the third argument so that
- // std::numeric_limits<float>::epsilon() is used instead, similarly to Mac / iOS.
- bool currentlyScaledToFit = WTF::areEssentiallyEqual(m_pageScaleFactor, m_minimumScaleToFit, 0.0001f);
- float minimumScale = WebCore::computeMinimumScaleFactorForContentContained(m_rawAttributes, WebCore::roundedIntSize(m_viewportSize), WebCore::roundedIntSize(m_contentsSize));
-
- if (minimumScale <= 0)
- return false;
-
- if (!WTF::areEssentiallyEqual(minimumScale, m_minimumScaleToFit, 0.0001f)) {
- m_minimumScaleToFit = minimumScale;
-
- if (!m_webPageProxy->areActiveDOMObjectsAndAnimationsSuspended()) {
- if (!m_hadUserInteraction || (userInitiatedUpdate && currentlyScaledToFit))
- applyScaleAfterRenderingContents(m_minimumScaleToFit);
- else {
- // Ensure the effective scale stays within bounds.
- float boundedScale = innerBoundedViewportScale(m_pageScaleFactor);
- if (!WTF::areEssentiallyEqual(boundedScale, m_pageScaleFactor, 0.0001f))
- applyScaleAfterRenderingContents(boundedScale);
- }
- }
-
- return true;
- }
- return false;
-}
-
-} // namespace WebKit
</del></span></pre></div>
<a id="trunkSourceWebKit2UIProcessCoordinatedGraphicsPageViewportControllerh"></a>
<div class="delfile"><h4>Deleted: trunk/Source/WebKit2/UIProcess/CoordinatedGraphics/PageViewportController.h (212717 => 212718)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/UIProcess/CoordinatedGraphics/PageViewportController.h        2017-02-21 18:00:43 UTC (rev 212717)
+++ trunk/Source/WebKit2/UIProcess/CoordinatedGraphics/PageViewportController.h        2017-02-21 18:12:20 UTC (rev 212718)
</span><span class="lines">@@ -1,114 +0,0 @@
</span><del>-/*
- * Copyright (C) 2011, 2012 Nokia Corporation and/or its subsidiary(-ies)
- * Copyright (C) 2011 Benjamin Poulain <benjamin@webkit.org>
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Library General Public
- * License as published by the Free Software Foundation; either
- * version 2 of the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Library General Public License for more details.
- *
- * You should have received a copy of the GNU Library General Public License
- * along with this program; see the file COPYING.LIB. If not, write to
- * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
- * Boston, MA 02110-1301, USA.
- *
- */
-
-#ifndef PageViewportController_h
-#define PageViewportController_h
-
-#include <WebCore/FloatPoint.h>
-#include <WebCore/FloatRect.h>
-#include <WebCore/FloatSize.h>
-#include <WebCore/ViewportArguments.h>
-#include <wtf/Noncopyable.h>
-
-namespace WebCore {
-class IntPoint;
-class IntSize;
-}
-
-namespace WebKit {
-
-class WebPageProxy;
-class PageViewportController;
-class PageViewportControllerClient;
-
-class PageViewportController {
- WTF_MAKE_NONCOPYABLE(PageViewportController);
-
-public:
- PageViewportController(WebKit::WebPageProxy*, PageViewportControllerClient&);
- virtual ~PageViewportController() { }
-
- float innerBoundedViewportScale(float) const;
- float outerBoundedViewportScale(float) const;
-
- WebCore::FloatPoint pixelAlignedFloatPoint(const WebCore::FloatPoint&);
-
- WebCore::FloatPoint boundContentsPosition(const WebCore::FloatPoint&);
- WebCore::FloatPoint boundContentsPositionAtScale(const WebCore::FloatPoint&, float scale);
-
- WebCore::FloatSize visibleContentsSize() const;
-
- bool hadUserInteraction() const { return m_hadUserInteraction; }
- bool allowsUserScaling() const { return m_allowsUserScaling; }
-
- WebCore::FloatSize contentsLayoutSize() const { return m_rawAttributes.layoutSize; }
- float deviceScaleFactor() const;
- float minimumScale() const { return m_minimumScaleToFit; }
- float maximumScale() const { return m_rawAttributes.maximumScale; }
- float currentScale() const { return m_pageScaleFactor; }
-
- void setHadUserInteraction(bool didUserInteract) { m_hadUserInteraction = didUserInteract; }
- void setInitiallyFitToViewport(bool initiallyFit) { m_initiallyFitToViewport = initiallyFit; }
-
- // Notifications from the viewport.
- void didChangeViewportSize(const WebCore::FloatSize& newSize);
- void didChangeContentsVisibility(const WebCore::FloatPoint&, float scale, const WebCore::FloatPoint& trajectoryVector = WebCore::FloatPoint::zero());
-
- // Notifications from the WebProcess.
- void didCommitLoad();
- void didChangeContentsSize(const WebCore::IntSize& newSize);
- void didChangeViewportAttributes(const WebCore::ViewportAttributes&);
- void didRenderFrame(const WebCore::IntSize& contentsSize, const WebCore::IntRect& coveredRect);
- void pageTransitionViewportReady();
- void pageDidRequestScroll(const WebCore::IntPoint& cssPosition);
-
-private:
- bool syncVisibleContents(const WebCore::FloatPoint &trajectoryVector = WebCore::FloatPoint::zero());
- void applyScaleAfterRenderingContents(float scale);
- void applyPositionAfterRenderingContents(const WebCore::FloatPoint& pos);
- bool updateMinimumScaleToFit(bool userInitiatedUpdate);
-
- WebPageProxy* const m_webPageProxy;
- PageViewportControllerClient& m_client;
-
- WebCore::ViewportAttributes m_rawAttributes;
-
- bool m_allowsUserScaling;
- float m_minimumScaleToFit;
- bool m_initiallyFitToViewport;
-
- bool m_hadUserInteraction;
-
- WebCore::FloatPoint m_contentsPosition;
- WebCore::FloatSize m_contentsSize;
- WebCore::FloatSize m_viewportSize;
- WebCore::IntSize m_clientContentsSize;
- float m_pageScaleFactor;
-
- bool m_pendingPositionChange;
- bool m_pendingScaleChange;
- bool m_layerTreeStateIsFrozen;
- WebCore::FloatRect m_lastFrameCoveredRect;
-};
-
-} // namespace WebKit
-
-#endif // PageViewportController_h
</del></span></pre></div>
<a id="trunkSourceWebKit2UIProcessPageViewportControllerClienth"></a>
<div class="delfile"><h4>Deleted: trunk/Source/WebKit2/UIProcess/PageViewportControllerClient.h (212717 => 212718)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/UIProcess/PageViewportControllerClient.h        2017-02-21 18:00:43 UTC (rev 212717)
+++ trunk/Source/WebKit2/UIProcess/PageViewportControllerClient.h        2017-02-21 18:12:20 UTC (rev 212718)
</span><span class="lines">@@ -1,49 +0,0 @@
</span><del>-/*
- * Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies)
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Library General Public
- * License as published by the Free Software Foundation; either
- * version 2 of the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Library General Public License for more details.
- *
- * You should have received a copy of the GNU Library General Public License
- * along with this program; see the file COPYING.LIB. If not, write to
- * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
- * Boston, MA 02110-1301, USA.
- *
- */
-
-#ifndef PageViewportControllerClient_h
-#define PageViewportControllerClient_h
-
-#include <wtf/Noncopyable.h>
-
-namespace WebCore {
-class FloatPoint;
-class IntSize;
-}
-
-namespace WebKit {
-
-class PageViewportControllerClient {
- WTF_MAKE_NONCOPYABLE(PageViewportControllerClient);
-public:
- PageViewportControllerClient() { }
- virtual ~PageViewportControllerClient() { }
-
- virtual void setViewportPosition(const WebCore::FloatPoint&) = 0;
- virtual void setPageScaleFactor(float) = 0;
-
- virtual void didChangeContentsSize(const WebCore::IntSize&) = 0;
- virtual void didChangeVisibleContents() = 0;
- virtual void didChangeViewportAttributes() = 0;
-};
-
-} // namespace WebKit
-
-#endif // PageViewportControllerClient_h
</del></span></pre>
</div>
</div>
</body>
</html>