Certain scroll snap routines were added to RenderElement before we decided that this code only applied to RenderBoxes. Rather than adding type checking in RenderElement to handle these objects, only do the RenderBox-specific logic in the RenderBox class.
Created attachment 258863 [details] Patch
Committed r188370: <http://trac.webkit.org/changeset/188370>
Comment on attachment 258863 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=258863&action=review > Source/WebCore/rendering/RenderBox.h:638 > + void willBeRemovedFromTree() override; I'd write out 'virtual' here.
(In reply to comment #3) > Comment on attachment 258863 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=258863&action=review > > > Source/WebCore/rendering/RenderBox.h:638 > > + void willBeRemovedFromTree() override; > > I'd write out 'virtual' here. Darin says we don't do that anymore. It's redundant with the 'override' declaration.
Comment on attachment 258863 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=258863&action=review >>> Source/WebCore/rendering/RenderBox.h:638 >>> + void willBeRemovedFromTree() override; >> >> I'd write out 'virtual' here. > > Darin says we don't do that anymore. It's redundant with the 'override' declaration. Ok, thanks. Good to know.