Bug 39615

Summary: Implement basic column-span support
Product: WebKit Reporter: Dave Hyatt <hyatt>
Component: CSSAssignee: Dave Hyatt <hyatt>
Status: RESOLVED FIXED    
Severity: Normal CC: bdakin, ossy, webkit.review.bot
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: PC   
OS: OS X 10.5   
Attachments:
Description Flags
Patch
none
Patch
none
Patch
none
Patch
none
Minor tweak - drop toRenderBlock casts when asking isAnonymousColumnSpanBlock, since I made it a RenderObject method mitz: review+

Description Dave Hyatt 2010-05-24 13:43:09 PDT
Only if the column-span is an immediate child of the multicol block in this first step...
Comment 1 Dave Hyatt 2010-05-24 14:11:28 PDT
Created attachment 56924 [details]
Patch
Comment 2 WebKit Review Bot 2010-05-24 14:13:42 PDT
Attachment 56924 [details] did not pass style-queue:

Failed to run "['WebKitTools/Scripts/check-webkit-style', '--no-squash']" exit_code: 1
WebCore/rendering/RenderBlock.cpp:280:  An else statement can be removed when the prior "if" concludes with a return, break, continue or goto statement.  [readability/control_flow] [4]
WebCore/rendering/RenderBlock.cpp:368:  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 31 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 3 Dave Hyatt 2010-05-24 14:38:21 PDT
Created attachment 56927 [details]
Patch
Comment 4 Dave Hyatt 2010-05-24 20:24:14 PDT
Created attachment 56965 [details]
Patch

Address Dan's comments, clean up typos in changelog.
Comment 5 Dave Hyatt 2010-05-25 03:15:12 PDT
Created attachment 57001 [details]
Patch
Comment 6 Dave Hyatt 2010-05-25 14:06:08 PDT
Created attachment 57044 [details]
Minor tweak - drop toRenderBlock casts when asking isAnonymousColumnSpanBlock, since I made it a RenderObject method
Comment 7 mitz 2010-05-25 14:52:47 PDT
Comment on attachment 57044 [details]
Minor tweak - drop toRenderBlock casts when asking isAnonymousColumnSpanBlock, since I made it a RenderObject method

WebCore/rendering/RenderBlock.cpp:287
 +          RenderBlock* newBox = 0;
You don’t need to initialize this to 0. Or you could initialize it with a ternary operator.

WebCore/rendering/RenderBlock.cpp:311
 +      RenderBlock* newBox = 0;
Ditto.

Everything else is scary but fine.

r=me
Comment 8 Dave Hyatt 2010-05-25 17:19:30 PDT
Landed in r60201.
Comment 9 Csaba Osztrogonác 2010-05-26 01:53:40 PDT
(In reply to comment #8)
> Landed in r60201.
Buildfix for this patch landed in r60221. ( build without ENABLE(RUBY) )