Modify RenderBoxModelObject/RenderBox::updateBoxModelInfoFromStyle to cache the result of RenderObject::style() and use that result instead of repeatedly calling the style() method.
Created attachment 122410 [details] Patch
Comment on attachment 122410 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=122410&action=review > Source/WebCore/ChangeLog:8 > + Refactoring code therefore no new tests. (OOPS!) CQ can't land this automatically with the OOPS intact, you need to remove it. Also, you should mention why we are doing this, as it's not obvious since RenderObject::style() is just a trivial inline getter right now.