Title: [226689] branches/safari-605-branch/Source/WebCore
- Revision
- 226689
- Author
- [email protected]
- Date
- 2018-01-09 20:31:43 -0800 (Tue, 09 Jan 2018)
Log Message
Cherry-pick r226623. rdar://problem/36392380
Modified Paths
Diff
Modified: branches/safari-605-branch/Source/WebCore/ChangeLog (226688 => 226689)
--- branches/safari-605-branch/Source/WebCore/ChangeLog 2018-01-10 04:31:41 UTC (rev 226688)
+++ branches/safari-605-branch/Source/WebCore/ChangeLog 2018-01-10 04:31:43 UTC (rev 226689)
@@ -1,5 +1,22 @@
2018-01-09 Jason Marcell <[email protected]>
+ Cherry-pick r226623. rdar://problem/36392380
+
+ 2018-01-09 Carlos Garcia Campos <[email protected]>
+
+ REGRESSION(r224460): Text fields sometimes get "messed up"
+ https://bugs.webkit.org/show_bug.cgi?id=181115
+
+ Reviewed by Zalan Bujtas.
+
+ Add the scroll position to paint offset before computing the clip rectangle. Before r224460, scroll position was
+ substracted after the clip rectangle was computed.
+
+ * rendering/LayoutState.cpp:
+ (WebCore::LayoutState::computeClipRect):
+
+2018-01-09 Jason Marcell <[email protected]>
+
Cherry-pick r226617. rdar://problem/36392336
2018-01-09 Ryosuke Niwa <[email protected]>
Modified: branches/safari-605-branch/Source/WebCore/rendering/LayoutState.cpp (226688 => 226689)
--- branches/safari-605-branch/Source/WebCore/rendering/LayoutState.cpp 2018-01-10 04:31:41 UTC (rev 226688)
+++ branches/safari-605-branch/Source/WebCore/rendering/LayoutState.cpp 2018-01-10 04:31:43 UTC (rev 226689)
@@ -123,7 +123,8 @@
if (!renderer.hasOverflowClip())
return;
- LayoutRect clipRect(toLayoutPoint(m_paintOffset) + renderer.view().frameView().layoutContext().layoutDelta(), renderer.cachedSizeForOverflowClip());
+ auto paintOffsetForClipRect = toLayoutPoint(m_paintOffset + toLayoutSize(renderer.scrollPosition()));
+ LayoutRect clipRect(paintOffsetForClipRect + renderer.view().frameView().layoutContext().layoutDelta(), renderer.cachedSizeForOverflowClip());
if (m_clipped)
m_clipRect.intersect(clipRect);
else
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes