Diff
Modified: trunk/LayoutTests/ChangeLog (194475 => 194476)
--- trunk/LayoutTests/ChangeLog 2016-01-01 01:25:17 UTC (rev 194475)
+++ trunk/LayoutTests/ChangeLog 2016-01-01 03:16:11 UTC (rev 194476)
@@ -1,3 +1,26 @@
+2015-12-31 Simon Fraser <[email protected]>
+
+ [iOS WK2] Fix incorrect scrollPosition handling
+ https://bugs.webkit.org/show_bug.cgi?id=152630
+
+ Reviewed by Zalan Bujtas.
+
+ These tests now load with a 0,0 scroll position, so don't dump out the "scrolled to" text,
+ which matches Mac behavior.
+
+ * platform/ios-simulator-wk2/fast/multicol/pagination/BottomToTop-bt-expected.txt:
+ * platform/ios-simulator-wk2/fast/multicol/pagination/BottomToTop-lr-expected.txt:
+ * platform/ios-simulator-wk2/fast/multicol/pagination/BottomToTop-rl-expected.txt:
+ * platform/ios-simulator-wk2/fast/multicol/pagination/BottomToTop-tb-expected.txt:
+ * platform/ios-simulator-wk2/fast/multicol/pagination/RightToLeft-bt-expected.txt:
+ * platform/ios-simulator-wk2/fast/multicol/pagination/RightToLeft-lr-expected.txt:
+ * platform/ios-simulator-wk2/fast/multicol/pagination/RightToLeft-rl-dynamic-expected.txt:
+ * platform/ios-simulator-wk2/fast/multicol/pagination/RightToLeft-rl-expected.txt:
+ * platform/ios-simulator-wk2/fast/multicol/pagination/RightToLeft-tb-expected.txt:
+ * platform/ios-simulator-wk2/fast/multicol/vertical-rl/column-break-with-balancing-expected.txt:
+ * platform/ios-simulator-wk2/fast/multicol/vertical-rl/column-rules-expected.txt:
+ * platform/ios-simulator-wk2/fast/multicol/vertical-rl/float-paginate-complex-expected.txt:
+
2015-12-31 Zalan Bujtas <[email protected]>
text-decoration: line-through is mispositioned when text has overline/underline too.
Modified: trunk/LayoutTests/platform/ios-simulator-wk2/fast/multicol/pagination/BottomToTop-bt-expected.txt (194475 => 194476)
--- trunk/LayoutTests/platform/ios-simulator-wk2/fast/multicol/pagination/BottomToTop-bt-expected.txt 2016-01-01 01:25:17 UTC (rev 194475)
+++ trunk/LayoutTests/platform/ios-simulator-wk2/fast/multicol/pagination/BottomToTop-bt-expected.txt 2016-01-01 03:16:11 UTC (rev 194476)
@@ -62,4 +62,3 @@
text run at (0,20) width 754: "aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat."
text run at (0,40) width 780: "Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat"
text run at (0,60) width 540: "cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."
-scrolled to 0,980
Modified: trunk/LayoutTests/platform/ios-simulator-wk2/fast/multicol/pagination/BottomToTop-lr-expected.txt (194475 => 194476)
--- trunk/LayoutTests/platform/ios-simulator-wk2/fast/multicol/pagination/BottomToTop-lr-expected.txt 2016-01-01 01:25:17 UTC (rev 194475)
+++ trunk/LayoutTests/platform/ios-simulator-wk2/fast/multicol/pagination/BottomToTop-lr-expected.txt 2016-01-01 03:16:11 UTC (rev 194476)
@@ -198,4 +198,3 @@
text run at (378,0) width 163: "culpa qui officia deserunt"
text run at (398,0) width 113: "mollit anim id est"
text run at (418,0) width 58: "laborum."
-scrolled to 0,580
Modified: trunk/LayoutTests/platform/ios-simulator-wk2/fast/multicol/pagination/BottomToTop-rl-expected.txt (194475 => 194476)
--- trunk/LayoutTests/platform/ios-simulator-wk2/fast/multicol/pagination/BottomToTop-rl-expected.txt 2016-01-01 01:25:17 UTC (rev 194475)
+++ trunk/LayoutTests/platform/ios-simulator-wk2/fast/multicol/pagination/BottomToTop-rl-expected.txt 2016-01-01 03:16:11 UTC (rev 194476)
@@ -198,4 +198,3 @@
text run at (378,0) width 163: "culpa qui officia deserunt"
text run at (398,0) width 113: "mollit anim id est"
text run at (418,0) width 58: "laborum."
-scrolled to 0,580
Modified: trunk/LayoutTests/platform/ios-simulator-wk2/fast/multicol/pagination/BottomToTop-tb-expected.txt (194475 => 194476)
--- trunk/LayoutTests/platform/ios-simulator-wk2/fast/multicol/pagination/BottomToTop-tb-expected.txt 2016-01-01 01:25:17 UTC (rev 194475)
+++ trunk/LayoutTests/platform/ios-simulator-wk2/fast/multicol/pagination/BottomToTop-tb-expected.txt 2016-01-01 03:16:11 UTC (rev 194476)
@@ -62,4 +62,3 @@
text run at (0,20) width 754: "aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat."
text run at (0,40) width 780: "Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat"
text run at (0,60) width 540: "cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."
-scrolled to 0,980
Modified: trunk/LayoutTests/platform/ios-simulator-wk2/fast/multicol/pagination/RightToLeft-bt-expected.txt (194475 => 194476)
--- trunk/LayoutTests/platform/ios-simulator-wk2/fast/multicol/pagination/RightToLeft-bt-expected.txt 2016-01-01 01:25:17 UTC (rev 194475)
+++ trunk/LayoutTests/platform/ios-simulator-wk2/fast/multicol/pagination/RightToLeft-bt-expected.txt 2016-01-01 03:16:11 UTC (rev 194476)
@@ -198,4 +198,3 @@
text run at (0,360) width 163: "culpa qui officia deserunt"
text run at (0,380) width 113: "mollit anim id est"
text run at (0,400) width 58: "laborum."
-scrolled to 580,0
Modified: trunk/LayoutTests/platform/ios-simulator-wk2/fast/multicol/pagination/RightToLeft-lr-expected.txt (194475 => 194476)
--- trunk/LayoutTests/platform/ios-simulator-wk2/fast/multicol/pagination/RightToLeft-lr-expected.txt 2016-01-01 01:25:17 UTC (rev 194475)
+++ trunk/LayoutTests/platform/ios-simulator-wk2/fast/multicol/pagination/RightToLeft-lr-expected.txt 2016-01-01 03:16:11 UTC (rev 194476)
@@ -78,4 +78,3 @@
text run at (78,0) width 526: "dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur."
text run at (98,0) width 560: "Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit"
text run at (118,0) width 132: "anim id est laborum."
-scrolled to 1180,0
Modified: trunk/LayoutTests/platform/ios-simulator-wk2/fast/multicol/pagination/RightToLeft-rl-dynamic-expected.txt (194475 => 194476)
--- trunk/LayoutTests/platform/ios-simulator-wk2/fast/multicol/pagination/RightToLeft-rl-dynamic-expected.txt 2016-01-01 01:25:17 UTC (rev 194475)
+++ trunk/LayoutTests/platform/ios-simulator-wk2/fast/multicol/pagination/RightToLeft-rl-dynamic-expected.txt 2016-01-01 03:16:11 UTC (rev 194476)
@@ -78,4 +78,3 @@
text run at (78,0) width 526: "dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur."
text run at (98,0) width 560: "Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit"
text run at (118,0) width 132: "anim id est laborum."
-scrolled to 1180,0
Modified: trunk/LayoutTests/platform/ios-simulator-wk2/fast/multicol/pagination/RightToLeft-rl-expected.txt (194475 => 194476)
--- trunk/LayoutTests/platform/ios-simulator-wk2/fast/multicol/pagination/RightToLeft-rl-expected.txt 2016-01-01 01:25:17 UTC (rev 194475)
+++ trunk/LayoutTests/platform/ios-simulator-wk2/fast/multicol/pagination/RightToLeft-rl-expected.txt 2016-01-01 03:16:11 UTC (rev 194476)
@@ -78,4 +78,3 @@
text run at (78,0) width 526: "dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur."
text run at (98,0) width 560: "Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit"
text run at (118,0) width 132: "anim id est laborum."
-scrolled to 1180,0
Modified: trunk/LayoutTests/platform/ios-simulator-wk2/fast/multicol/pagination/RightToLeft-tb-expected.txt (194475 => 194476)
--- trunk/LayoutTests/platform/ios-simulator-wk2/fast/multicol/pagination/RightToLeft-tb-expected.txt 2016-01-01 01:25:17 UTC (rev 194475)
+++ trunk/LayoutTests/platform/ios-simulator-wk2/fast/multicol/pagination/RightToLeft-tb-expected.txt 2016-01-01 03:16:11 UTC (rev 194476)
@@ -198,4 +198,3 @@
text run at (0,360) width 163: "culpa qui officia deserunt"
text run at (0,380) width 113: "mollit anim id est"
text run at (0,400) width 58: "laborum."
-scrolled to 580,0
Modified: trunk/LayoutTests/platform/ios-simulator-wk2/fast/multicol/vertical-rl/column-break-with-balancing-expected.txt (194475 => 194476)
--- trunk/LayoutTests/platform/ios-simulator-wk2/fast/multicol/vertical-rl/column-break-with-balancing-expected.txt 2016-01-01 01:25:17 UTC (rev 194475)
+++ trunk/LayoutTests/platform/ios-simulator-wk2/fast/multicol/vertical-rl/column-break-with-balancing-expected.txt 2016-01-01 03:16:11 UTC (rev 194476)
@@ -167,4 +167,3 @@
RenderText {#text} at (400,0) size 19x113
text run at (400,0) width 113: "This is some text."
RenderBR {BR} at (415,112) size 0x1
-scrolled to 92,0
Modified: trunk/LayoutTests/platform/ios-simulator-wk2/fast/multicol/vertical-rl/column-rules-expected.txt (194475 => 194476)
--- trunk/LayoutTests/platform/ios-simulator-wk2/fast/multicol/vertical-rl/column-rules-expected.txt 2016-01-01 01:25:17 UTC (rev 194475)
+++ trunk/LayoutTests/platform/ios-simulator-wk2/fast/multicol/vertical-rl/column-rules-expected.txt 2016-01-01 03:16:11 UTC (rev 194476)
@@ -135,4 +135,3 @@
text run at (2460,0) width 130: "posuere dictum, leo."
text run at (2480,0) width 154: "Suspendisse scelerisque"
text run at (2500,0) width 87: "egestas nulla."
-scrolled to 66,0
Modified: trunk/LayoutTests/platform/ios-simulator-wk2/fast/multicol/vertical-rl/float-paginate-complex-expected.txt (194475 => 194476)
--- trunk/LayoutTests/platform/ios-simulator-wk2/fast/multicol/vertical-rl/float-paginate-complex-expected.txt 2016-01-01 01:25:17 UTC (rev 194475)
+++ trunk/LayoutTests/platform/ios-simulator-wk2/fast/multicol/vertical-rl/float-paginate-complex-expected.txt 2016-01-01 03:16:11 UTC (rev 194476)
@@ -262,4 +262,3 @@
RenderText {#text} at (604,0) size 19x113
text run at (604,0) width 113: "This is some text."
RenderBR {BR} at (619,112) size 0x1
-scrolled to 880,0
Modified: trunk/Source/WebCore/ChangeLog (194475 => 194476)
--- trunk/Source/WebCore/ChangeLog 2016-01-01 01:25:17 UTC (rev 194475)
+++ trunk/Source/WebCore/ChangeLog 2016-01-01 03:16:11 UTC (rev 194476)
@@ -1,3 +1,18 @@
+2015-12-31 Simon Fraser <[email protected]>
+
+ [iOS WK2] Fix incorrect scrollPosition handling
+ https://bugs.webkit.org/show_bug.cgi?id=152630
+
+ Reviewed by Zalan Bujtas.
+
+ WebPage::updateVisibleContentRects() was setting the ScrollView's scroll position
+ to a scrollOffset, which was counteracted by ScrollView::unobscuredContentRect()
+ adding the scrollOrigin to the scrollPosition, which resulted in the correct
+ rects, but an incorrect scrollPosition. Fix.
+
+ * platform/ios/ScrollViewIOS.mm:
+ (WebCore::ScrollView::unobscuredContentRect):
+
2015-12-31 David Kilzer <[email protected]>
Fix typo in FIXME comment
Modified: trunk/Source/WebCore/platform/ios/ScrollViewIOS.mm (194475 => 194476)
--- trunk/Source/WebCore/platform/ios/ScrollViewIOS.mm 2016-01-01 01:25:17 UTC (rev 194475)
+++ trunk/Source/WebCore/platform/ios/ScrollViewIOS.mm 2016-01-01 03:16:11 UTC (rev 194476)
@@ -107,10 +107,8 @@
return enclosingIntRect(r);
}
- if (!m_unobscuredContentSize.isEmpty()) {
- // FIXME: This seems wrong but gives the right answer, probably because m_scrollPosition is wrong.
- return IntRect(m_scrollPosition + scrollOrigin(), roundedIntSize(m_unobscuredContentSize));
- }
+ if (!m_unobscuredContentSize.isEmpty())
+ return IntRect(m_scrollPosition, roundedIntSize(m_unobscuredContentSize));
return unobscuredContentRectInternal();
}
Modified: trunk/Source/WebKit2/ChangeLog (194475 => 194476)
--- trunk/Source/WebKit2/ChangeLog 2016-01-01 01:25:17 UTC (rev 194475)
+++ trunk/Source/WebKit2/ChangeLog 2016-01-01 03:16:11 UTC (rev 194476)
@@ -1,3 +1,18 @@
+2015-12-31 Simon Fraser <[email protected]>
+
+ [iOS WK2] Fix incorrect scrollPosition handling
+ https://bugs.webkit.org/show_bug.cgi?id=152630
+
+ Reviewed by Zalan Bujtas.
+
+ WebPage::updateVisibleContentRects() was setting the ScrollView's scroll position
+ to a scrollOffset, which was counteracted by ScrollView::unobscuredContentRect()
+ adding the scrollOrigin to the scrollPosition, which resulted in the correct
+ rects, but an incorrect scrollPosition. Fix.
+
+ * WebProcess/WebPage/ios/WebPageIOS.mm:
+ (WebKit::WebPage::updateVisibleContentRects):
+
2015-12-31 Michael Catanzaro <[email protected]>
Unreviewed, fix a log message
Modified: trunk/Source/WebKit2/WebProcess/WebPage/ios/WebPageIOS.mm (194475 => 194476)
--- trunk/Source/WebKit2/WebProcess/WebPage/ios/WebPageIOS.mm 2016-01-01 01:25:17 UTC (rev 194475)
+++ trunk/Source/WebKit2/WebProcess/WebPage/ios/WebPageIOS.mm 2016-01-01 03:16:11 UTC (rev 194476)
@@ -2954,7 +2954,7 @@
frameView.setCustomSizeForResizeEvent(expandedIntSize(visibleContentRectUpdateInfo.unobscuredRectInScrollViewCoordinates().size()));
frameView.setConstrainsScrollingToContentEdge(false);
- frameView.setScrollOffset(scrollPosition);
+ frameView.setScrollOffset(frameView.scrollOffsetFromPosition(scrollPosition));
frameView.setConstrainsScrollingToContentEdge(true);
}