diff options
Diffstat (limited to 'chromium/third_party/blink/renderer/core/editing/visible_selection_test.cc')
-rw-r--r-- | chromium/third_party/blink/renderer/core/editing/visible_selection_test.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chromium/third_party/blink/renderer/core/editing/visible_selection_test.cc b/chromium/third_party/blink/renderer/core/editing/visible_selection_test.cc index 77e481324ce..0fed925d2de 100644 --- a/chromium/third_party/blink/renderer/core/editing/visible_selection_test.cc +++ b/chromium/third_party/blink/renderer/core/editing/visible_selection_test.cc @@ -687,7 +687,7 @@ TEST_F(VisibleSelectionTest, updateIfNeededWithShadowHost) { // Simulates modifying DOM tree to invalidate distribution. Element* host = GetDocument().getElementById("host"); host->AppendChild(sample); - GetDocument().UpdateStyleAndLayout(); + GetDocument().UpdateStyleAndLayout(DocumentUpdateReason::kTest); // Simulates to restore selection from undo stack. selection = CreateVisibleSelection(selection.AsSelection()); @@ -699,7 +699,7 @@ TEST_F(VisibleSelectionTest, BackwardSelectionWithMultipleEmptyBodies) { Element* body = GetDocument().body(); Element* new_body = GetDocument().CreateRawElement(html_names::kBodyTag); body->appendChild(new_body); - GetDocument().UpdateStyleAndLayout(); + GetDocument().UpdateStyleAndLayout(DocumentUpdateReason::kTest); const SelectionInDOMTree selection = SelectionInDOMTree::Builder() |