Title: [219742] trunk/Source/WebCore
- Revision
- 219742
- Author
- [email protected]
- Date
- 2017-07-21 14:04:43 -0700 (Fri, 21 Jul 2017)
Log Message
iBooks: Overlapping/missing content at beginning/end of paragraph.
https://bugs.webkit.org/show_bug.cgi?id=174717
<rdar://problem/33117912>
Reviewed by Simon Fraser.
By definiton simple and normal line layout should always produce the exact same lineboxes. It enables us not
to force repaint while swapping between these 2 line layouts.
However in certain cases (font size pixel rounding as an example) they don't agree on how much content fits the line and
that could result in missing/overlapping content due to the lack of repaint.
Unable to test.
* rendering/RenderBlockFlow.cpp:
(WebCore::RenderBlockFlow::ensureLineBoxes):
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (219741 => 219742)
--- trunk/Source/WebCore/ChangeLog 2017-07-21 20:53:01 UTC (rev 219741)
+++ trunk/Source/WebCore/ChangeLog 2017-07-21 21:04:43 UTC (rev 219742)
@@ -1,3 +1,21 @@
+2017-07-21 Zalan Bujtas <[email protected]>
+
+ iBooks: Overlapping/missing content at beginning/end of paragraph.
+ https://bugs.webkit.org/show_bug.cgi?id=174717
+ <rdar://problem/33117912>
+
+ Reviewed by Simon Fraser.
+
+ By definiton simple and normal line layout should always produce the exact same lineboxes. It enables us not
+ to force repaint while swapping between these 2 line layouts.
+ However in certain cases (font size pixel rounding as an example) they don't agree on how much content fits the line and
+ that could result in missing/overlapping content due to the lack of repaint.
+
+ Unable to test.
+
+ * rendering/RenderBlockFlow.cpp:
+ (WebCore::RenderBlockFlow::ensureLineBoxes):
+
2017-07-21 Chris Dumez <[email protected]>
Drop make_dom_exceptions.pl script that we only have DOMException
Modified: trunk/Source/WebCore/rendering/RenderBlockFlow.cpp (219741 => 219742)
--- trunk/Source/WebCore/rendering/RenderBlockFlow.cpp 2017-07-21 20:53:01 UTC (rev 219741)
+++ trunk/Source/WebCore/rendering/RenderBlockFlow.cpp 2017-07-21 21:04:43 UTC (rev 219742)
@@ -3758,6 +3758,8 @@
// This matches relayoutToAvoidWidows.
if (shouldBreakAtLineToAvoidWidow())
layoutLineBoxes(relayoutChildren, repaintLogicalTop, repaintLogicalBottom);
+ // FIXME: This is needed as long as simple and normal line layout produce different line breakings.
+ repaint();
} else
layoutLineBoxes(relayoutChildren, repaintLogicalTop, repaintLogicalBottom);
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes