| Index: third_party/WebKit/Source/core/editing/PendingSelection.cpp
|
| diff --git a/third_party/WebKit/Source/core/editing/PendingSelection.cpp b/third_party/WebKit/Source/core/editing/PendingSelection.cpp
|
| index da2ae734d4a63734c3ea40430f1ee0d54ef9e463..0d53fb1383c590f28157217bba87a1e8183a97e2 100644
|
| --- a/third_party/WebKit/Source/core/editing/PendingSelection.cpp
|
| +++ b/third_party/WebKit/Source/core/editing/PendingSelection.cpp
|
| @@ -110,10 +110,13 @@ void PendingSelection::commit(LayoutView& layoutView) {
|
| if (!hasPendingSelection())
|
| return;
|
| DCHECK(!layoutView.needsLayout());
|
| + // We should check have |DCHECK(!document().m_needsLayout()); but,
|
| + // media/track/track-model.html and others don't satisfied.
|
| + // m_frameSelection->document().assertLayoutTreeIsUpToDate();
|
| m_hasPendingSelection = false;
|
|
|
| const VisibleSelectionInFlatTree& originalSelection =
|
| - m_frameSelection->visibleSelection<EditingInFlatTreeStrategy>();
|
| + m_frameSelection->computeVisibleSelectionInFlatTree();
|
|
|
| // Skip if pending VisibilePositions became invalid before we reach here.
|
| if (!isSelectionInDocument(originalSelection, layoutView.document()))
|
|
|