| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "core/dom/StaticRange.h" | 5 #include "core/dom/StaticRange.h" |
| 6 | 6 |
| 7 #include "bindings/core/v8/ExceptionState.h" | 7 #include "bindings/core/v8/ExceptionState.h" |
| 8 #include "bindings/core/v8/ScriptState.h" | |
| 9 #include "core/dom/Range.h" | 8 #include "core/dom/Range.h" |
| 10 #include "core/frame/LocalDOMWindow.h" | 9 #include "core/frame/LocalDOMWindow.h" |
| 10 #include "platform/bindings/ScriptState.h" |
| 11 | 11 |
| 12 namespace blink { | 12 namespace blink { |
| 13 | 13 |
| 14 StaticRange::StaticRange(Document& document) | 14 StaticRange::StaticRange(Document& document) |
| 15 : owner_document_(document), | 15 : owner_document_(document), |
| 16 start_container_(document), | 16 start_container_(document), |
| 17 start_offset_(0u), | 17 start_offset_(0u), |
| 18 end_container_(document), | 18 end_container_(document), |
| 19 end_offset_(0u) {} | 19 end_offset_(0u) {} |
| 20 | 20 |
| (...skipping 26 matching lines...) Expand all Loading... |
| 47 return range; | 47 return range; |
| 48 } | 48 } |
| 49 | 49 |
| 50 DEFINE_TRACE(StaticRange) { | 50 DEFINE_TRACE(StaticRange) { |
| 51 visitor->Trace(owner_document_); | 51 visitor->Trace(owner_document_); |
| 52 visitor->Trace(start_container_); | 52 visitor->Trace(start_container_); |
| 53 visitor->Trace(end_container_); | 53 visitor->Trace(end_container_); |
| 54 } | 54 } |
| 55 | 55 |
| 56 } // namespace blink | 56 } // namespace blink |
| OLD | NEW |