subtask of bug 135817
Created attachment 236411 [details] Patch
Comment on attachment 236411 [details] Patch This seems worse than the old version. All those null checks at all the call sites are messy.
Comment on attachment 236411 [details] Patch (In reply to comment #2) > (From update of attachment 236411 [details]) > This seems worse than the old version. All those null checks at all the call sites are messy. Yes, they are! This is an incremental change. see Changlog entry: "This is in preparation to ensure that we always pass a valid repaint container to repaint functions. (tracked here webkit.org/b/135817). This changeset has explicit view() calls which are going to be removed once containerForRepaint() starts returning container reference." My plan is to enforce containerForRepaint() to return a reference. There's a chance that it's not possible without some major changes so I decided to do it incrementally. However, I wasn't planning to commit these intermediate changes until after the goal is met. (so those null checks should never land on trunk.) I should have been more vocal about it in the bug description.