https://bugs.webkit.org/show_bug.cgi?id=133777
Reviewed by Benjamin Poulain.
Remove some unused code.
* Shared/VisibleContentRectUpdateInfo.cpp:
(WebKit::VisibleContentRectUpdateInfo::encode):
(WebKit::VisibleContentRectUpdateInfo::decode):
* Shared/VisibleContentRectUpdateInfo.h:
(WebKit::VisibleContentRectUpdateInfo::VisibleContentRectUpdateInfo):
(WebKit::operator==):
(WebKit::VisibleContentRectUpdateInfo::updateID): Deleted.
* Shared/mac/RemoteLayerTreeTransaction.h:
(WebKit::RemoteLayerTreeTransaction::setLastVisibleContentRectUpdateID): Deleted.
(WebKit::RemoteLayerTreeTransaction::lastVisibleContentRectUpdateID): Deleted.
* Shared/mac/RemoteLayerTreeTransaction.mm:
(WebKit::RemoteLayerTreeTransaction::encode):
(WebKit::RemoteLayerTreeTransaction::decode):
* UIProcess/WebPageProxy.h:
(WebKit::WebPageProxy::nextVisibleContentRectUpdateID): Deleted.
(WebKit::WebPageProxy::lastVisibleContentRectUpdateID): Deleted.
* UIProcess/ios/WKContentView.mm:
(-[WKContentView didUpdateVisibleRect:unobscuredRect:unobscuredRectInScrollViewCoordinates:scale:minimumScale:inStableState:isChangingObscuredInsetsInteractively:]):
* WebProcess/WebPage/WebPage.cpp:
(WebKit::WebPage::WebPage):
(WebKit::WebPage::willCommitLayerTree):
* WebProcess/WebPage/WebPage.h:
* WebProcess/WebPage/ios/WebPageIOS.mm:
(WebKit::WebPage::updateVisibleContentRects):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@169863
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2014-06-11 Timothy Horton <timothy_horton@apple.com>
+
+ Remove unused VisibleContentRectUpdateInfo update ID
+ https://bugs.webkit.org/show_bug.cgi?id=133777
+
+ Reviewed by Benjamin Poulain.
+
+ Remove some unused code.
+
+ * Shared/VisibleContentRectUpdateInfo.cpp:
+ (WebKit::VisibleContentRectUpdateInfo::encode):
+ (WebKit::VisibleContentRectUpdateInfo::decode):
+ * Shared/VisibleContentRectUpdateInfo.h:
+ (WebKit::VisibleContentRectUpdateInfo::VisibleContentRectUpdateInfo):
+ (WebKit::operator==):
+ (WebKit::VisibleContentRectUpdateInfo::updateID): Deleted.
+ * Shared/mac/RemoteLayerTreeTransaction.h:
+ (WebKit::RemoteLayerTreeTransaction::setLastVisibleContentRectUpdateID): Deleted.
+ (WebKit::RemoteLayerTreeTransaction::lastVisibleContentRectUpdateID): Deleted.
+ * Shared/mac/RemoteLayerTreeTransaction.mm:
+ (WebKit::RemoteLayerTreeTransaction::encode):
+ (WebKit::RemoteLayerTreeTransaction::decode):
+ * UIProcess/WebPageProxy.h:
+ (WebKit::WebPageProxy::nextVisibleContentRectUpdateID): Deleted.
+ (WebKit::WebPageProxy::lastVisibleContentRectUpdateID): Deleted.
+ * UIProcess/ios/WKContentView.mm:
+ (-[WKContentView didUpdateVisibleRect:unobscuredRect:unobscuredRectInScrollViewCoordinates:scale:minimumScale:inStableState:isChangingObscuredInsetsInteractively:]):
+ * WebProcess/WebPage/WebPage.cpp:
+ (WebKit::WebPage::WebPage):
+ (WebKit::WebPage::willCommitLayerTree):
+ * WebProcess/WebPage/WebPage.h:
+ * WebProcess/WebPage/ios/WebPageIOS.mm:
+ (WebKit::WebPage::updateVisibleContentRects):
+
2014-06-11 Dan Bernstein <mitz@apple.com>
[Cocoa] Move CompletionHandlerCallChecker into a separate file
encoder << m_unobscuredRectInScrollViewCoordinates;
encoder << m_customFixedPositionRect;
encoder << m_scale;
- encoder << m_updateID;
encoder << m_inStableState;
encoder << m_isChangingObscuredInsetsInteractively;
encoder << m_timestamp;
return false;
if (!decoder.decode(result.m_scale))
return false;
- if (!decoder.decode(result.m_updateID))
- return false;
if (!decoder.decode(result.m_inStableState))
return false;
if (!decoder.decode(result.m_isChangingObscuredInsetsInteractively))
public:
VisibleContentRectUpdateInfo()
: m_scale(-1)
- , m_updateID(0)
, m_inStableState(false)
, m_isChangingObscuredInsetsInteractively(false)
{
}
- VisibleContentRectUpdateInfo(uint64_t updateID, const WebCore::FloatRect& exposedRect, const WebCore::FloatRect& unobscuredRect, const WebCore::FloatRect& unobscuredRectInScrollViewCoordinates, const WebCore::FloatRect& customFixedPositionRect, double scale, bool inStableState, bool isChangingObscuredInsetsInteractively, double timestamp, double horizontalVelocity, double verticalVelocity, double scaleChangeRate)
+ VisibleContentRectUpdateInfo(const WebCore::FloatRect& exposedRect, const WebCore::FloatRect& unobscuredRect, const WebCore::FloatRect& unobscuredRectInScrollViewCoordinates, const WebCore::FloatRect& customFixedPositionRect, double scale, bool inStableState, bool isChangingObscuredInsetsInteractively, double timestamp, double horizontalVelocity, double verticalVelocity, double scaleChangeRate)
: m_exposedRect(exposedRect)
, m_unobscuredRect(unobscuredRect)
, m_unobscuredRectInScrollViewCoordinates(unobscuredRectInScrollViewCoordinates)
, m_customFixedPositionRect(customFixedPositionRect)
, m_scale(scale)
- , m_updateID(updateID)
, m_inStableState(inStableState)
, m_isChangingObscuredInsetsInteractively(isChangingObscuredInsetsInteractively)
, m_timestamp(timestamp)
const WebCore::FloatRect& unobscuredRectInScrollViewCoordinates() const { return m_unobscuredRectInScrollViewCoordinates; }
const WebCore::FloatRect& customFixedPositionRect() const { return m_customFixedPositionRect; }
double scale() const { return m_scale; }
- uint64_t updateID() const { return m_updateID; }
bool inStableState() const { return m_inStableState; }
bool isChangingObscuredInsetsInteractively() const { return m_isChangingObscuredInsetsInteractively; }
WebCore::FloatRect m_unobscuredRectInScrollViewCoordinates;
WebCore::FloatRect m_customFixedPositionRect;
double m_scale;
- uint64_t m_updateID;
bool m_inStableState;
bool m_isChangingObscuredInsetsInteractively;
double m_timestamp;
inline bool operator==(const VisibleContentRectUpdateInfo& a, const VisibleContentRectUpdateInfo& b)
{
- // Note: the comparison doesn't include updateID since we care about equality based on the other data.
- // The timestamp and velocity are also irrelevant for comparing updates.
+ // Note: the comparison doesn't include timestamp and velocity since we care about equality based on the other data.
return a.scale() == b.scale()
&& a.exposedRect() == b.exposedRect()
&& a.unobscuredRect() == b.unobscuredRect()
double pageScaleFactor() const { return m_pageScaleFactor; }
void setPageScaleFactor(double pageScaleFactor) { m_pageScaleFactor = pageScaleFactor; }
-
- void setLastVisibleContentRectUpdateID(uint64_t lastVisibleContentRectUpdateID) { m_lastVisibleContentRectUpdateID = lastVisibleContentRectUpdateID; }
- uint64_t lastVisibleContentRectUpdateID() const { return m_lastVisibleContentRectUpdateID; }
bool scaleWasSetByUIProcess() const { return m_scaleWasSetByUIProcess; }
void setScaleWasSetByUIProcess(bool scaleWasSetByUIProcess) { m_scaleWasSetByUIProcess = scaleWasSetByUIProcess; }
double m_pageScaleFactor;
double m_minimumScaleFactor;
double m_maximumScaleFactor;
- uint64_t m_lastVisibleContentRectUpdateID;
uint64_t m_renderTreeSize;
bool m_scaleWasSetByUIProcess;
bool m_allowsUserScaling;
encoder << m_minimumScaleFactor;
encoder << m_maximumScaleFactor;
- encoder << m_lastVisibleContentRectUpdateID;
encoder << m_renderTreeSize;
encoder << m_scaleWasSetByUIProcess;
if (!decoder.decode(result.m_maximumScaleFactor))
return false;
- if (!decoder.decode(result.m_lastVisibleContentRectUpdateID))
- return false;
-
if (!decoder.decode(result.m_renderTreeSize))
return false;
const WebCore::FloatRect& unobscuredContentRect() const { return m_lastVisibleContentRectUpdate.unobscuredRect(); }
bool updateVisibleContentRects(const VisibleContentRectUpdateInfo&);
- uint64_t nextVisibleContentRectUpdateID() const { return m_lastVisibleContentRectUpdate.updateID() + 1; }
- uint64_t lastVisibleContentRectUpdateID() const { return m_lastVisibleContentRectUpdate.updateID(); }
enum class UnobscuredRectConstraint { ConstrainedToDocumentRect, Unconstrained };
WebCore::FloatRect computeCustomFixedPositionRect(const WebCore::FloatRect& unobscuredContentRect, double displayedContentScale, UnobscuredRectConstraint = UnobscuredRectConstraint::Unconstrained) const;
_historicalKinematicData.clear();
FloatRect fixedPositionRectForLayout = _page->computeCustomFixedPositionRect(unobscuredRect, zoomScale, WebPageProxy::UnobscuredRectConstraint::ConstrainedToDocumentRect);
- _page->updateVisibleContentRects(VisibleContentRectUpdateInfo(_page->nextVisibleContentRectUpdateID(), visibleRect, unobscuredRect, unobscuredRectInScrollViewCoordinates, fixedPositionRectForLayout,
+ _page->updateVisibleContentRects(VisibleContentRectUpdateInfo(visibleRect, unobscuredRect, unobscuredRectInScrollViewCoordinates, fixedPositionRectForLayout,
zoomScale, isStableState, isChangingObscuredInsetsInteractively, timestamp, velocityData.horizontalVelocity, velocityData.verticalVelocity, velocityData.scaleChangeRate));
RemoteScrollingCoordinatorProxy* scrollingCoordinator = _page->scrollingCoordinatorProxy();
, m_isShowingContextMenu(false)
#endif
#if PLATFORM(IOS)
- , m_lastVisibleContentRectUpdateID(0)
, m_obscuredTopInset(0)
, m_hasReceivedVisibleContentRectsAfterDidCommitLoad(false)
, m_scaleWasSetByUIProcess(false)
layerTransaction.setRenderTreeSize(corePage()->renderTreeSize());
layerTransaction.setPageExtendedBackgroundColor(corePage()->pageExtendedBackgroundColor());
#if PLATFORM(IOS)
- layerTransaction.setLastVisibleContentRectUpdateID(m_lastVisibleContentRectUpdateID);
layerTransaction.setScaleWasSetByUIProcess(scaleWasSetByUIProcess());
layerTransaction.setMinimumScaleFactor(minimumPageScaleFactor());
layerTransaction.setMaximumScaleFactor(maximumPageScaleFactor());
WebCore::FloatPoint m_potentialTapLocation;
WebCore::ViewportConfiguration m_viewportConfiguration;
- uint64_t m_lastVisibleContentRectUpdateID;
float m_obscuredTopInset;
bool m_hasReceivedVisibleContentRectsAfterDidCommitLoad;
bool m_scaleWasSetByUIProcess;
void WebPage::updateVisibleContentRects(const VisibleContentRectUpdateInfo& visibleContentRectUpdateInfo)
{
m_hasReceivedVisibleContentRectsAfterDidCommitLoad = true;
- m_lastVisibleContentRectUpdateID = visibleContentRectUpdateInfo.updateID();
m_obscuredTopInset = (visibleContentRectUpdateInfo.unobscuredRect().y() - visibleContentRectUpdateInfo.exposedRect().y()) * visibleContentRectUpdateInfo.scale();
double scaleNoiseThreshold = 0.005;