- Revision
- 194492
- Author
- [email protected]
- Date
- 2016-01-01 21:56:29 -0800 (Fri, 01 Jan 2016)
Log Message
Fix naming in HistoryItem to refer to scrollPositions
https://bugs.webkit.org/show_bug.cgi?id=152646
Reviewed by Zalan Bujtas.
Source/WebCore:
HistoryItem stores a scrollPosition, so call it that.
No behavior change.
* history/HistoryItem.cpp:
(WebCore::HistoryItem::HistoryItem):
(WebCore::HistoryItem::scrollPosition):
(WebCore::HistoryItem::setScrollPosition):
(WebCore::HistoryItem::clearScrollPosition):
(WebCore::HistoryItem::scrollPoint): Deleted.
(WebCore::HistoryItem::setScrollPoint): Deleted.
(WebCore::HistoryItem::clearScrollPoint): Deleted.
* history/HistoryItem.h:
* loader/HistoryController.cpp:
(WebCore::HistoryController::saveScrollPositionAndViewStateToItem):
(WebCore::HistoryController::clearScrollPositionAndViewState):
(WebCore::HistoryController::restoreScrollPositionAndViewState):
(WebCore::HistoryController::updateForClientRedirect):
Source/WebKit/mac:
HistoryItem stores a scrollPosition, so call it that.
* History/WebHistoryItem.mm:
(-[WebHistoryItem scrollPoint]):
Source/WebKit2:
HistoryItem stores a scrollPosition, so call it that.
No behavior change.
* Shared/SessionState.cpp:
(WebKit::FrameState::encode):
(WebKit::FrameState::decode):
* Shared/SessionState.h:
* UIProcess/mac/LegacySessionStateCoding.cpp:
(WebKit::encodeFrameStateNode):
(WebKit::decodeBackForwardTreeNode):
* WebProcess/WebCoreSupport/SessionStateConversion.cpp:
(WebKit::toFrameState):
(WebKit::applyFrameState):
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (194491 => 194492)
--- trunk/Source/WebCore/ChangeLog 2016-01-02 05:53:01 UTC (rev 194491)
+++ trunk/Source/WebCore/ChangeLog 2016-01-02 05:56:29 UTC (rev 194492)
@@ -1,3 +1,29 @@
+2016-01-01 Simon Fraser <[email protected]>
+
+ Fix naming in HistoryItem to refer to scrollPositions
+ https://bugs.webkit.org/show_bug.cgi?id=152646
+
+ Reviewed by Zalan Bujtas.
+
+ HistoryItem stores a scrollPosition, so call it that.
+
+ No behavior change.
+
+ * history/HistoryItem.cpp:
+ (WebCore::HistoryItem::HistoryItem):
+ (WebCore::HistoryItem::scrollPosition):
+ (WebCore::HistoryItem::setScrollPosition):
+ (WebCore::HistoryItem::clearScrollPosition):
+ (WebCore::HistoryItem::scrollPoint): Deleted.
+ (WebCore::HistoryItem::setScrollPoint): Deleted.
+ (WebCore::HistoryItem::clearScrollPoint): Deleted.
+ * history/HistoryItem.h:
+ * loader/HistoryController.cpp:
+ (WebCore::HistoryController::saveScrollPositionAndViewStateToItem):
+ (WebCore::HistoryController::clearScrollPositionAndViewState):
+ (WebCore::HistoryController::restoreScrollPositionAndViewState):
+ (WebCore::HistoryController::updateForClientRedirect):
+
2016-01-01 Zalan Bujtas <[email protected]>
Simple line layout: Add support for toggling simple line layout from command line.
Modified: trunk/Source/WebCore/history/HistoryItem.cpp (194491 => 194492)
--- trunk/Source/WebCore/history/HistoryItem.cpp 2016-01-02 05:53:01 UTC (rev 194491)
+++ trunk/Source/WebCore/history/HistoryItem.cpp 2016-01-02 05:56:29 UTC (rev 194492)
@@ -123,7 +123,7 @@
, m_target(item.m_target)
, m_title(item.m_title)
, m_displayTitle(item.m_displayTitle)
- , m_scrollPoint(item.m_scrollPoint)
+ , m_scrollPosition(item.m_scrollPosition)
, m_pageScaleFactor(item.m_pageScaleFactor)
, m_lastVisitWasFailure(item.m_lastVisitWasFailure)
, m_isTargetItem(item.m_isTargetItem)
@@ -277,20 +277,19 @@
notifyHistoryItemChanged(this);
}
-const IntPoint& HistoryItem::scrollPoint() const
+const IntPoint& HistoryItem::scrollPosition() const
{
- return m_scrollPoint;
+ return m_scrollPosition;
}
-void HistoryItem::setScrollPoint(const IntPoint& point)
+void HistoryItem::setScrollPosition(const IntPoint& position)
{
- m_scrollPoint = point;
+ m_scrollPosition = position;
}
-void HistoryItem::clearScrollPoint()
+void HistoryItem::clearScrollPosition()
{
- m_scrollPoint.setX(0);
- m_scrollPoint.setY(0);
+ m_scrollPosition = IntPoint();
}
float HistoryItem::pageScaleFactor() const
Modified: trunk/Source/WebCore/history/HistoryItem.h (194491 => 194492)
--- trunk/Source/WebCore/history/HistoryItem.h 2016-01-02 05:53:01 UTC (rev 194491)
+++ trunk/Source/WebCore/history/HistoryItem.h 2016-01-02 05:56:29 UTC (rev 194492)
@@ -102,9 +102,9 @@
bool lastVisitWasFailure() const { return m_lastVisitWasFailure; }
- WEBCORE_EXPORT const IntPoint& scrollPoint() const;
- WEBCORE_EXPORT void setScrollPoint(const IntPoint&);
- void clearScrollPoint();
+ WEBCORE_EXPORT const IntPoint& scrollPosition() const;
+ WEBCORE_EXPORT void setScrollPosition(const IntPoint&);
+ void clearScrollPosition();
WEBCORE_EXPORT float pageScaleFactor() const;
WEBCORE_EXPORT void setPageScaleFactor(float);
@@ -221,7 +221,7 @@
String m_title;
String m_displayTitle;
- IntPoint m_scrollPoint;
+ IntPoint m_scrollPosition;
float m_pageScaleFactor;
Vector<String> m_documentState;
Modified: trunk/Source/WebCore/loader/HistoryController.cpp (194491 => 194492)
--- trunk/Source/WebCore/loader/HistoryController.cpp 2016-01-02 05:53:01 UTC (rev 194491)
+++ trunk/Source/WebCore/loader/HistoryController.cpp 2016-01-02 05:56:29 UTC (rev 194492)
@@ -76,9 +76,9 @@
return;
if (m_frame.document()->inPageCache())
- item->setScrollPoint(frameView->cachedScrollPosition());
+ item->setScrollPosition(frameView->cachedScrollPosition());
else
- item->setScrollPoint(frameView->scrollPosition());
+ item->setScrollPosition(frameView->scrollPosition());
#if PLATFORM(IOS)
item->setExposedContentRect(frameView->exposedContentRect());
item->setUnobscuredContentRect(frameView->unobscuredContentRect());
@@ -100,7 +100,7 @@
if (!m_currentItem)
return;
- m_currentItem->clearScrollPoint();
+ m_currentItem->clearScrollPosition();
m_currentItem->setPageScaleFactor(0);
}
@@ -153,7 +153,7 @@
// Don't restore scroll point on iOS as FrameLoaderClient::restoreViewState() does that.
if (view && !view->wasScrolledByUser()) {
Page* page = m_frame.page();
- auto desiredScrollPosition = m_currentItem->scrollPoint();
+ auto desiredScrollPosition = m_currentItem->scrollPosition();
if (page && m_frame.isMainFrame() && m_currentItem->pageScaleFactor())
page->setPageScaleFactor(m_currentItem->pageScaleFactor() * page->viewScaleFactor(), desiredScrollPosition);
@@ -449,7 +449,7 @@
// webcore has closed the URL and saved away the form state.
if (m_currentItem) {
m_currentItem->clearDocumentState();
- m_currentItem->clearScrollPoint();
+ m_currentItem->clearScrollPosition();
}
bool needPrivacy = m_frame.page()->usesEphemeralSession();
Modified: trunk/Source/WebKit/mac/ChangeLog (194491 => 194492)
--- trunk/Source/WebKit/mac/ChangeLog 2016-01-02 05:53:01 UTC (rev 194491)
+++ trunk/Source/WebKit/mac/ChangeLog 2016-01-02 05:56:29 UTC (rev 194492)
@@ -1,3 +1,15 @@
+2016-01-01 Simon Fraser <[email protected]>
+
+ Fix naming in HistoryItem to refer to scrollPositions
+ https://bugs.webkit.org/show_bug.cgi?id=152646
+
+ Reviewed by Zalan Bujtas.
+
+ HistoryItem stores a scrollPosition, so call it that.
+
+ * History/WebHistoryItem.mm:
+ (-[WebHistoryItem scrollPoint]):
+
2016-01-01 Jeff Miller <[email protected]>
Update user-visible copyright strings to include 2016
Modified: trunk/Source/WebKit/mac/History/WebHistoryItem.mm (194491 => 194492)
--- trunk/Source/WebKit/mac/History/WebHistoryItem.mm 2016-01-02 05:53:01 UTC (rev 194491)
+++ trunk/Source/WebKit/mac/History/WebHistoryItem.mm 2016-01-02 05:56:29 UTC (rev 194492)
@@ -393,7 +393,7 @@
- (NSPoint)scrollPoint
{
- return core(_private)->scrollPoint();
+ return core(_private)->scrollPosition();
}
- (void)_visitedWithTitle:(NSString *)title
@@ -610,12 +610,12 @@
- (CGPoint)_scrollPoint
{
- return core(_private)->scrollPoint();
+ return core(_private)->scrollPosition();
}
- (void)_setScrollPoint:(CGPoint)scrollPoint
{
- core(_private)->setScrollPoint(IntPoint(scrollPoint));
+ core(_private)->setScrollPosition(IntPoint(scrollPoint));
}
- (uint32_t)_bookmarkID
Modified: trunk/Source/WebKit2/ChangeLog (194491 => 194492)
--- trunk/Source/WebKit2/ChangeLog 2016-01-02 05:53:01 UTC (rev 194491)
+++ trunk/Source/WebKit2/ChangeLog 2016-01-02 05:56:29 UTC (rev 194492)
@@ -1,5 +1,27 @@
2016-01-01 Simon Fraser <[email protected]>
+ Fix naming in HistoryItem to refer to scrollPositions
+ https://bugs.webkit.org/show_bug.cgi?id=152646
+
+ Reviewed by Zalan Bujtas.
+
+ HistoryItem stores a scrollPosition, so call it that.
+
+ No behavior change.
+
+ * Shared/SessionState.cpp:
+ (WebKit::FrameState::encode):
+ (WebKit::FrameState::decode):
+ * Shared/SessionState.h:
+ * UIProcess/mac/LegacySessionStateCoding.cpp:
+ (WebKit::encodeFrameStateNode):
+ (WebKit::decodeBackForwardTreeNode):
+ * WebProcess/WebCoreSupport/SessionStateConversion.cpp:
+ (WebKit::toFrameState):
+ (WebKit::applyFrameState):
+
+2016-01-01 Simon Fraser <[email protected]>
+
Fix reload and programmatic scrolling in RTL documents
https://bugs.webkit.org/show_bug.cgi?id=152639
Modified: trunk/Source/WebKit2/Shared/SessionState.cpp (194491 => 194492)
--- trunk/Source/WebKit2/Shared/SessionState.cpp 2016-01-02 05:53:01 UTC (rev 194491)
+++ trunk/Source/WebKit2/Shared/SessionState.cpp 2016-01-02 05:56:29 UTC (rev 194492)
@@ -113,7 +113,7 @@
encoder << documentSequenceNumber;
encoder << itemSequenceNumber;
- encoder << scrollPoint;
+ encoder << scrollPosition;
encoder << pageScaleFactor;
encoder << httpBody;
@@ -150,7 +150,7 @@
if (!decoder.decode(result.itemSequenceNumber))
return false;
- if (!decoder.decode(result.scrollPoint))
+ if (!decoder.decode(result.scrollPosition))
return false;
if (!decoder.decode(result.pageScaleFactor))
return false;
Modified: trunk/Source/WebKit2/Shared/SessionState.h (194491 => 194492)
--- trunk/Source/WebKit2/Shared/SessionState.h 2016-01-02 05:53:01 UTC (rev 194491)
+++ trunk/Source/WebKit2/Shared/SessionState.h 2016-01-02 05:56:29 UTC (rev 194492)
@@ -95,7 +95,7 @@
int64_t documentSequenceNumber;
int64_t itemSequenceNumber;
- WebCore::IntPoint scrollPoint;
+ WebCore::IntPoint scrollPosition;
float pageScaleFactor;
Optional<HTTPBody> httpBody;
Modified: trunk/Source/WebKit2/UIProcess/mac/LegacySessionStateCoding.cpp (194491 => 194492)
--- trunk/Source/WebKit2/UIProcess/mac/LegacySessionStateCoding.cpp 2016-01-02 05:53:01 UTC (rev 194491)
+++ trunk/Source/WebKit2/UIProcess/mac/LegacySessionStateCoding.cpp 2016-01-02 05:56:29 UTC (rev 194492)
@@ -336,8 +336,8 @@
encoder << frameState.referrer;
- encoder << frameState.scrollPoint.x();
- encoder << frameState.scrollPoint.y();
+ encoder << frameState.scrollPosition.x();
+ encoder << frameState.scrollPosition.y();
encoder << frameState.pageScaleFactor;
@@ -899,13 +899,13 @@
decoder >> frameState.referrer;
- int32_t scrollPointX;
- decoder >> scrollPointX;
+ int32_t scrollPositionX;
+ decoder >> scrollPositionX;
- int32_t scrollPointY;
- decoder >> scrollPointY;
+ int32_t scrollPositionY;
+ decoder >> scrollPositionY;
- frameState.scrollPoint = WebCore::IntPoint(scrollPointX, scrollPointY);
+ frameState.scrollPosition = WebCore::IntPoint(scrollPositionX, scrollPositionY);
decoder >> frameState.pageScaleFactor;
Modified: trunk/Source/WebKit2/WebProcess/WebCoreSupport/SessionStateConversion.cpp (194491 => 194492)
--- trunk/Source/WebKit2/WebProcess/WebCoreSupport/SessionStateConversion.cpp 2016-01-02 05:53:01 UTC (rev 194491)
+++ trunk/Source/WebKit2/WebProcess/WebCoreSupport/SessionStateConversion.cpp 2016-01-02 05:56:29 UTC (rev 194492)
@@ -84,7 +84,7 @@
frameState.documentSequenceNumber = historyItem.documentSequenceNumber();
frameState.itemSequenceNumber = historyItem.itemSequenceNumber();
- frameState.scrollPoint = historyItem.scrollPoint();
+ frameState.scrollPosition = historyItem.scrollPosition();
frameState.pageScaleFactor = historyItem.pageScaleFactor();
if (FormData* formData = const_cast<HistoryItem&>(historyItem).formData()) {
@@ -160,7 +160,7 @@
historyItem.setDocumentSequenceNumber(frameState.documentSequenceNumber);
historyItem.setItemSequenceNumber(frameState.itemSequenceNumber);
- historyItem.setScrollPoint(frameState.scrollPoint);
+ historyItem.setScrollPosition(frameState.scrollPosition);
historyItem.setPageScaleFactor(frameState.pageScaleFactor);
if (frameState.httpBody) {