OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/IncrementLoadEventDelayCount.h" | 5 #include "core/dom/IncrementLoadEventDelayCount.h" |
6 | 6 |
7 #include "core/dom/Document.h" | 7 #include "core/dom/Document.h" |
8 | 8 |
9 namespace blink { | 9 namespace blink { |
10 | 10 |
(...skipping 12 matching lines...) Expand all Loading... |
23 { | 23 { |
24 m_document->decrementLoadEventDelayCount(); | 24 m_document->decrementLoadEventDelayCount(); |
25 } | 25 } |
26 | 26 |
27 void IncrementLoadEventDelayCount::documentChanged(Document& newDocument) | 27 void IncrementLoadEventDelayCount::documentChanged(Document& newDocument) |
28 { | 28 { |
29 newDocument.incrementLoadEventDelayCount(); | 29 newDocument.incrementLoadEventDelayCount(); |
30 m_document->decrementLoadEventDelayCount(); | 30 m_document->decrementLoadEventDelayCount(); |
31 m_document = &newDocument; | 31 m_document = &newDocument; |
32 } | 32 } |
33 } | 33 } // namespace blink |
OLD | NEW |