Don't assume current root scroller is a LayoutBox.
There was an edge case here where we might get an arbitrary element as the document.documentElement. In these cases, the element won't get a LayoutObject as LayoutView will refuse to attach to it, but when we replace it a layout will create a non-LayoutBox for it and when RootScroller tries to replace it as the effective root scroller it needs to do some book keeping using the old root scroller. It incorrectly assumed it must be a LayoutBox. This patch now guards against this edge case. BUG=668553 Review-Url: https://codereview.chromium.org/2531343002 Cr-Commit-Position: refs/heads/master@{#434771}
Showing
Please register or sign in to comment