Bug 180377

Summary: REGRESSION (r211531): Text flow changes and overlaps other text after double-click selecting paragraph
Product: WebKit Reporter: zalan <zalan>
Component: Layout and RenderingAssignee: zalan <zalan>
Status: RESOLVED FIXED    
Severity: Normal CC: bfulgham, commit-queue, koivisto, simon.fraser, zalan
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch none

zalan
Reported 2017-12-04 14:05:54 PST
Attachments
Patch (4.71 KB, patch)
2017-12-04 14:09 PST, zalan
no flags
zalan
Comment 1 2017-12-04 14:09:35 PST
Antti Koivisto
Comment 2 2017-12-04 14:17:17 PST
Comment on attachment 328387 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=328387&action=review > Source/WebCore/rendering/SimpleLineLayout.cpp:605 > + line.setLogicalLeftOffset(flow.logicalLeftOffsetForLine(height, DoNotIndentText, logicalHeight) + (shouldApplyTextIndent && isFirstLine ? flow.textIndentOffset() : LayoutUnit(0))); I wonder if the default argument for the height in flow.logicalLeft/RightOffsetForLine could be removed? It feels wrong to call it without knowing where the line is.
zalan
Comment 3 2017-12-04 14:19:59 PST
(In reply to Antti Koivisto from comment #2) > Comment on attachment 328387 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=328387&action=review > > > Source/WebCore/rendering/SimpleLineLayout.cpp:605 > > + line.setLogicalLeftOffset(flow.logicalLeftOffsetForLine(height, DoNotIndentText, logicalHeight) + (shouldApplyTextIndent && isFirstLine ? flow.textIndentOffset() : LayoutUnit(0))); > > I wonder if the default argument for the height in > flow.logicalLeft/RightOffsetForLine could be removed? It feels wrong to call > it without knowing where the line is. Yeah, good point. Will address it in a separate patch.
WebKit Commit Bot
Comment 4 2017-12-04 14:52:30 PST
Comment on attachment 328387 [details] Patch Clearing flags on attachment: 328387 Committed r225497: <https://trac.webkit.org/changeset/225497>
WebKit Commit Bot
Comment 5 2017-12-04 14:52:31 PST
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.