Chromium Code Reviews
DescriptionGridLayout: Guard against layout queries while adding a view.
Adds a DCHECK to GridLayout to ensure client code doesn't ask it to
perform layout calculations while inside GridLayout::AddViewState().
GridLayout has not yet updated its internal data structures, so it can
only give invalid results at this point.
Adds a BrowserDialogTest for the edit bookmark view which would have
triggered this DCHECK without the fix in r455438.
Adds a DCHECK_DEATH test for GridLayout.
BUG=699912, 699390
Review-Url: https://codereview.chromium.org/2743743003
Cr-Commit-Position: refs/heads/master@{#456638}
Committed: https://chromium.googlesource.com/chromium/src/+/4d775162580774ccfaed86a8dcf2ac6564198d93
Patch Set 1 #Patch Set 2 : Add tests #Patch Set 3 : selfnits #Patch Set 4 : Rebase for BUILD.gn conflict #
Messages
Total messages: 28 (21 generated)
|
||||||||||||||||||||||||||||||||||||||||||||||