Changeset 167580 in webkit
- Timestamp:
- Apr 20, 2014, 9:40:11 PM (12 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 3 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/fast/css/simple-layout-overflow-expected.txt (added)
-
LayoutTests/fast/css/simple-layout-overflow.html (added)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/rendering/SimpleLineLayoutResolver.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r167569 r167580 1 2014-04-19 Darin Adler <darin@apple.com> 2 3 Simple layout can get confused by coordinate overflow 4 https://bugs.webkit.org/show_bug.cgi?id=131890 5 rdar://problem/15558510 6 7 Reviewed by Andreas Kling. 8 9 * fast/css/simple-layout-overflow-expected.txt: Added. 10 * fast/css/simple-layout-overflow.html: Added. 11 1 12 2014-04-19 Alexey Proskuryakov <ap@apple.com> 2 13 -
trunk/Source/WebCore/ChangeLog
r167579 r167580 1 2014-04-19 Darin Adler <darin@apple.com> 2 3 Simple layout can get confused by coordinate overflow 4 https://bugs.webkit.org/show_bug.cgi?id=131890 5 rdar://problem/15558510 6 7 Reviewed by Andreas Kling. 8 9 Test: fast/css/simple-layout-overflow.html 10 11 * rendering/SimpleLineLayoutResolver.h: 12 (WebCore::SimpleLineLayout::RunResolver::rangeForRect): 13 If lastLine is smaller than firstList, just ignore it. 14 1 15 2014-04-20 Darin Adler <darin@apple.com> 2 16 -
trunk/Source/WebCore/rendering/SimpleLineLayoutResolver.h
r162553 r167580 284 284 285 285 unsigned firstLine = lineIndexForHeight(rect.y()); 286 unsigned lastLine = lineIndexForHeight(rect.maxY());286 unsigned lastLine = std::max(firstLine, lineIndexForHeight(rect.maxY())); 287 287 288 288 auto rangeBegin = begin().advanceLines(firstLine); … … 290 290 return Range<Iterator>(end(), end()); 291 291 auto rangeEnd = rangeBegin; 292 ASSERT(lastLine >= firstLine); 292 293 rangeEnd.advanceLines(lastLine - firstLine + 1); 293 294 return Range<Iterator>(rangeBegin, rangeEnd);
Note:
See TracChangeset
for help on using the changeset viewer.