Title: [194495] trunk/Source
Revision
194495
Author
[email protected]
Date
2016-01-01 22:55:12 -0800 (Fri, 01 Jan 2016)

Log Message

Fix the iOS and EFL builds, after an over-eager commit-queue commit.

Source/WebKit/mac:

* History/WebHistoryItem.mm:
(-[WebHistoryItem initFromDictionaryRepresentation:]):

Source/WebKit2:

* WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
(WebKit::WebFrameLoaderClient::restoreViewState):
* WebProcess/WebPage/efl/WebPageEfl.cpp:
(WebKit::WebPage::restorePageState):

Modified Paths

Diff

Modified: trunk/Source/WebKit/mac/ChangeLog (194494 => 194495)


--- trunk/Source/WebKit/mac/ChangeLog	2016-01-02 06:06:35 UTC (rev 194494)
+++ trunk/Source/WebKit/mac/ChangeLog	2016-01-02 06:55:12 UTC (rev 194495)
@@ -1,5 +1,12 @@
 2016-01-01  Simon Fraser  <[email protected]>
 
+        Fix the iOS and EFL builds, after an over-eager commit-queue commit.
+
+        * History/WebHistoryItem.mm:
+        (-[WebHistoryItem initFromDictionaryRepresentation:]):
+
+2016-01-01  Simon Fraser  <[email protected]>
+
         Fix naming in HistoryItem to refer to scrollPositions
         https://bugs.webkit.org/show_bug.cgi?id=152646
 

Modified: trunk/Source/WebKit/mac/History/WebHistoryItem.mm (194494 => 194495)


--- trunk/Source/WebKit/mac/History/WebHistoryItem.mm	2016-01-02 06:06:35 UTC (rev 194494)
+++ trunk/Source/WebKit/mac/History/WebHistoryItem.mm	2016-01-02 06:55:12 UTC (rev 194495)
@@ -377,7 +377,7 @@
     NSNumber *scrollPointXValue = [dict objectForKey:scrollPointXKey];
     NSNumber *scrollPointYValue = [dict objectForKey:scrollPointYKey];
     if (scrollPointXValue && scrollPointYValue)
-        core(_private)->setScrollPoint(IntPoint([scrollPointXValue intValue], [scrollPointYValue intValue]));
+        core(_private)->setScrollPosition(IntPoint([scrollPointXValue intValue], [scrollPointYValue intValue]));
 
     uint32_t bookmarkIDValue = [[dict objectForKey:bookmarkIDKey] unsignedIntValue];
     if (bookmarkIDValue)
@@ -471,9 +471,9 @@
     if (viewportArguments)
         [dict setObject:viewportArguments forKey:@"WebViewportArguments"];
 
-    IntPoint scrollPoint = core(_private)->scrollPoint();
-    [dict setObject:[NSNumber numberWithInt:scrollPoint.x()] forKey:scrollPointXKey];
-    [dict setObject:[NSNumber numberWithInt:scrollPoint.y()] forKey:scrollPointYKey];
+    IntPoint scrollPosition = core(_private)->scrollPosition();
+    [dict setObject:[NSNumber numberWithInt:scrollPosition.x()] forKey:scrollPointXKey];
+    [dict setObject:[NSNumber numberWithInt:scrollPosition.y()] forKey:scrollPointYKey];
 
     uint32_t bookmarkID = core(_private)->bookmarkID();
     if (bookmarkID)

Modified: trunk/Source/WebKit2/ChangeLog (194494 => 194495)


--- trunk/Source/WebKit2/ChangeLog	2016-01-02 06:06:35 UTC (rev 194494)
+++ trunk/Source/WebKit2/ChangeLog	2016-01-02 06:55:12 UTC (rev 194495)
@@ -1,5 +1,14 @@
 2016-01-01  Simon Fraser  <[email protected]>
 
+        Fix the iOS and EFL builds, after an over-eager commit-queue commit.
+
+        * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
+        (WebKit::WebFrameLoaderClient::restoreViewState):
+        * WebProcess/WebPage/efl/WebPageEfl.cpp:
+        (WebKit::WebPage::restorePageState):
+
+2016-01-01  Simon Fraser  <[email protected]>
+
         Fix naming in HistoryItem to refer to scrollPositions
         https://bugs.webkit.org/show_bug.cgi?id=152646
 

Modified: trunk/Source/WebKit2/WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp (194494 => 194495)


--- trunk/Source/WebKit2/WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp	2016-01-02 06:06:35 UTC (rev 194494)
+++ trunk/Source/WebKit2/WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp	2016-01-02 06:55:12 UTC (rev 194495)
@@ -1206,7 +1206,7 @@
         if (m_frame->isMainFrame())
             m_frame->page()->restorePageState(*currentItem);
         else if (!view->wasScrolledByUser())
-            view->setScrollPosition(currentItem->scrollPoint());
+            view->setScrollPosition(currentItem->scrollPosition());
     }
 #else
     // Inform the UI process of the scale factor.

Modified: trunk/Source/WebKit2/WebProcess/WebPage/efl/WebPageEfl.cpp (194494 => 194495)


--- trunk/Source/WebKit2/WebProcess/WebPage/efl/WebPageEfl.cpp	2016-01-02 06:06:35 UTC (rev 194494)
+++ trunk/Source/WebKit2/WebProcess/WebPage/efl/WebPageEfl.cpp	2016-01-02 06:55:12 UTC (rev 194495)
@@ -232,12 +232,12 @@
 void WebPage::restorePageState(const HistoryItem& historyItem)
 {
     float restorePageScaleFactor = historyItem.pageScaleFactor();
-    IntPoint restoreScrollPoint = historyItem.scrollPoint();
+    IntPoint restoreScrollPosition = historyItem.scrollPosition();
 
     // A scale factor or scroll point of zero means that the history item has the default scale factor or scroll position,
     // thus we don't need to update it.
-    if (restorePageScaleFactor || restoreScrollPoint != IntPoint(0, 0))
-        scalePage(restorePageScaleFactor, restoreScrollPoint);
+    if (restorePageScaleFactor || restoreScrollPosition != IntPoint())
+        scalePage(restorePageScaleFactor, restoreScrollPosition);
 }
 
 void WebPage::savePageState(HistoryItem&)
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to