WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
Bug 81366
Add a RenderMultiColumnBlock subclass for multi-column layout.
https://bugs.webkit.org/show_bug.cgi?id=81366
Summary
Add a RenderMultiColumnBlock subclass for multi-column layout.
Dave Hyatt
Reported
2012-03-16 10:27:44 PDT
Add RenderMultiColumnBlock to handle layout of multi-column blocks. This will allow most of the multi-column code that is polluting RenderBlock to be implemented in the subclass instead.
Attachments
Patch
(23.72 KB, patch)
2012-03-16 10:31 PDT
,
Dave Hyatt
mitz: review+
Details
Formatted Diff
Diff
New patch just to test EWS
(23.86 KB, patch)
2012-03-16 12:31 PDT
,
Dave Hyatt
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Dave Hyatt
Comment 1
2012-03-16 10:31:04 PDT
Created
attachment 132313
[details]
Patch
mitz
Comment 2
2012-03-16 10:37:48 PDT
Comment on
attachment 132313
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=132313&action=review
> Source/WebCore/rendering/RenderMultiColumnBlock.cpp:43 > + if (isAnonymousBlock()) > + return "RenderMultiColumnBlock (anonymous)";
Just curious, can this case ever happen?
Peter Beverloo
Comment 3
2012-03-16 10:42:17 PDT
Comment on
attachment 132313
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=132313&action=review
> Source/WebCore/rendering/RenderMultiColumnBlock.cpp:44 > + else if (isAnonymous())
drive-by nit: s/else if/if/ for consistency, considering that we know that isAnonymousBlock() and other previous checks are false.
Dave Hyatt
Comment 4
2012-03-16 11:41:18 PDT
(In reply to
comment #3
)
> (From update of
attachment 132313
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=132313&action=review
> > > Source/WebCore/rendering/RenderMultiColumnBlock.cpp:44 > > + else if (isAnonymous()) > > drive-by nit: s/else if/if/ for consistency, considering that we know that isAnonymousBlock() and other previous checks are false.
Yup, sure. This was cut-and-paste from RenderBlock, which has the same issue.
Dave Hyatt
Comment 5
2012-03-16 11:42:33 PDT
(In reply to
comment #2
)
> (From update of
attachment 132313
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=132313&action=review
> > > Source/WebCore/rendering/RenderMultiColumnBlock.cpp:43 > > + if (isAnonymousBlock()) > > + return "RenderMultiColumnBlock (anonymous)"; > > Just curious, can this case ever happen?
Theoretically it will be possible to create anonymous multi-column layouts using CSS Page Templates, so I figured I might as well leave it in.
Dave Hyatt
Comment 6
2012-03-16 12:31:19 PDT
Created
attachment 132347
[details]
New patch just to test EWS
WebKit Review Bot
Comment 7
2012-03-16 12:33:23 PDT
Attachment 132347
[details]
did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WebCore/CMakeLists.txt', u'Source/W..." exit_code: 1 Source/WebCore/rendering/RenderMultiColumnBlock.h:35: This { should be at the end of the previous line [whitespace/braces] [4] Total errors found: 1 in 16 files If any of these errors are false positives, please file a bug against check-webkit-style.
Dave Hyatt
Comment 8
2012-03-16 12:55:59 PDT
Fixed in
r111048
. Will watch bots.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug