Bug 123446

Summary: Multiple runs per line on simple line path
Product: WebKit Reporter: Antti Koivisto <koivisto>
Component: Layout and RenderingAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: commit-queue, esprehn+autocc, glenn, kondapallykalyan
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
patch kling: review+

Description Antti Koivisto 2013-10-29 08:11:28 PDT
More coverage.
Comment 1 Antti Koivisto 2013-10-29 08:18:38 PDT
Created attachment 215389 [details]
patch
Comment 2 WebKit Commit Bot 2013-10-29 08:19:12 PDT
Attachment 215389 [details] did not pass style-queue:

Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WebCore/ChangeLog', u'Source/WebCore/rendering/SimpleLineLayout.cpp', u'Source/WebCore/rendering/SimpleLineLayout.h', u'Source/WebCore/rendering/SimpleLineLayoutFunctions.cpp', u'Source/WebCore/rendering/SimpleLineLayoutResolver.h']" exit_code: 1
Source/WebCore/rendering/SimpleLineLayoutResolver.h:98:  Missing spaces around &&  [whitespace/operators] [3]
Total errors found: 1 in 5 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 3 Andreas Kling 2013-10-29 08:29:53 PDT
Comment on attachment 215389 [details]
patch

View in context: https://bugs.webkit.org/attachment.cgi?id=215389&action=review

r=me.

> Source/WebCore/rendering/SimpleLineLayout.cpp:263
> +        Vector<Run, 4> lineRuns;
> +        lineRuns.append(Run(lineStartOffset, 0));

This can be an uncheckedAppend() since we know there is space in the inline capacity here.

> Source/WebCore/rendering/SimpleLineLayoutResolver.h:45
> +        Run(const Iterator&);

explicit

>> Source/WebCore/rendering/SimpleLineLayoutResolver.h:98
>> +        Iterator(RunResolver::Iterator&&);
> 
> Missing spaces around &&  [whitespace/operators] [3]

explicit

> Source/WebCore/rendering/SimpleLineLayoutResolver.h:244
> +    rect.unite((*it).rect());

No need to declare "rect" before this line.
LayoutRect rect = (*it).rect();
Comment 4 Antti Koivisto 2013-10-29 09:59:27 PDT
https://trac.webkit.org/r158196