Bug 47357

Summary: Make findNextLineBreak writing-mode-aware.
Product: WebKit Reporter: Dave Hyatt <hyatt>
Component: Layout and RenderingAssignee: Dave Hyatt <hyatt>
Status: RESOLVED FIXED    
Severity: Normal CC: webkit.review.bot
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: PC   
OS: OS X 10.5   
Bug Depends on:    
Bug Blocks: 46123    
Attachments:
Description Flags
Patch mitz: review+

Description Dave Hyatt 2010-10-07 09:51:31 PDT
Make findNextLineBreak writing-mode-aware.
Comment 1 Dave Hyatt 2010-10-07 09:52:51 PDT
Created attachment 70099 [details]
Patch
Comment 2 WebKit Review Bot 2010-10-07 09:54:14 PDT
Attachment 70099 [details] did not pass style-queue:

Failed to run "['WebKitTools/Scripts/check-webkit-style']" exit_code: 1
WebCore/rendering/RenderBoxModelObject.h:101:  Tests for true/false, null/non-null, and zero/non-zero should all be done without equality comparisons.  [readability/comparison_to_zero] [5]
WebCore/rendering/RenderBoxModelObject.h:102:  Tests for true/false, null/non-null, and zero/non-zero should all be done without equality comparisons.  [readability/comparison_to_zero] [5]
Total errors found: 2 in 5 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 3 mitz 2010-10-07 09:57:48 PDT
Comment on attachment 70099 [details]
Patch

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

> WebCore/rendering/RenderBlockLineLayout.cpp:1594
> +                    tmpW +=  replacedLogicalWidth;

extra space there

> WebCore/rendering/RenderBoxModelObject.h:102
> +    bool hasInlineDirectionBordersPaddingOrMargin() const { return hasInlineDirectionBordersOrPadding() || marginStart() != 0 || marginEnd() != 0; }
> +    bool hasInlineDirectionBordersOrPadding() const { return borderStart() != 0 || borderEnd() != 0 || paddingStart() != 0 || paddingEnd() != 0; }

You should drop the “!= 0”s per our style.
Comment 4 Dave Hyatt 2010-10-07 10:41:37 PDT
Fixed in r69319.