WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
126568
Move RenderObject::firstLineBlock() to RenderElement.
https://bugs.webkit.org/show_bug.cgi?id=126568
Summary
Move RenderObject::firstLineBlock() to RenderElement.
Andreas Kling
Reported
2014-01-07 01:35:37 PST
Move RenderObject::firstLineBlock() to RenderElement.
Attachments
Patch
(8.02 KB, patch)
2014-01-07 01:39 PST
,
Andreas Kling
koivisto
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Andreas Kling
Comment 1
2014-01-07 01:39:04 PST
Created
attachment 220502
[details]
Patch
Antti Koivisto
Comment 2
2014-01-07 06:27:30 PST
Comment on
attachment 220502
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=220502&action=review
> Source/WebCore/rendering/RenderElement.h:145 > + // Obtains the nearest enclosing block (including this block) that contributes a first-line style to our inline children. > + virtual RenderBlock* firstLineBlock();
Since this is null except for RenderBlocks this virtual shouldn't really exists. It would be good to eventually tighten the call sites to check and cast to RenderBlock.
Antti Koivisto
Comment 3
2014-01-07 06:36:09 PST
firstLineBlock() has only one call site so you can do this trivially.
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