Bug 126568

Summary: Move RenderObject::firstLineBlock() to RenderElement.
Product: WebKit Reporter: Andreas Kling <kling>
Component: Layout and RenderingAssignee: Andreas Kling <kling>
Status: NEW    
Severity: Normal CC: commit-queue, d-r, esprehn+autocc, fmalita, glenn, gyuyoung.kim, koivisto, kondapallykalyan, pdr, schenney
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch koivisto: review+

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+
Andreas Kling
Comment 1 2014-01-07 01:39:04 PST
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.