Summary: | Move RenderObject::firstLineBlock() to RenderElement. | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Andreas Kling <kling> | ||||
Component: | Layout and Rendering | Assignee: | 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
Andreas Kling
2014-01-07 01:35:37 PST
Created attachment 220502 [details]
Patch
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. firstLineBlock() has only one call site so you can do this trivially. |