diff options
Diffstat (limited to 'chromium/third_party/blink/renderer/core/editing/dom_selection.cc')
-rw-r--r-- | chromium/third_party/blink/renderer/core/editing/dom_selection.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/chromium/third_party/blink/renderer/core/editing/dom_selection.cc b/chromium/third_party/blink/renderer/core/editing/dom_selection.cc index c690a203b05..7d5f0b5eeb1 100644 --- a/chromium/third_party/blink/renderer/core/editing/dom_selection.cc +++ b/chromium/third_party/blink/renderer/core/editing/dom_selection.cc @@ -671,8 +671,9 @@ void DOMSelection::addRange(Range* new_range) { // TODO(tkent): "Merge the ranges if they intersect" was removed. We show a // warning message for a while, and continue to collect the usage data. // <https://code.google.com/p/chromium/issues/detail?id=353069>. - Deprecation::CountDeprecation(tree_scope_->GetDocument(), - WebFeature::kSelectionAddRangeIntersect); + Deprecation::CountDeprecation( + tree_scope_->GetDocument().GetExecutionContext(), + WebFeature::kSelectionAddRangeIntersect); } // https://www.w3.org/TR/selection-api/#dom-selection-deletefromdocument @@ -853,7 +854,7 @@ void DOMSelection::AddConsoleWarning(const String& message) { } } -void DOMSelection::Trace(Visitor* visitor) { +void DOMSelection::Trace(Visitor* visitor) const { visitor->Trace(tree_scope_); ScriptWrappable::Trace(visitor); ExecutionContextClient::Trace(visitor); |