Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(48)

Side by Side Diff: third_party/WebKit/Source/core/dom/IncrementLoadEventDelayCount.cpp

Issue 2547053003: s/ passed(...) / WTF::passed(...) / to avoid future ambiguity w/ base::Passed. (Closed)
Patch Set: Rebasing... Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 #include "wtf/PtrUtil.h" 8 #include "wtf/PtrUtil.h"
9 #include <memory> 9 #include <memory>
10 10
11 namespace blink { 11 namespace blink {
12 12
13 std::unique_ptr<IncrementLoadEventDelayCount> 13 std::unique_ptr<IncrementLoadEventDelayCount>
14 IncrementLoadEventDelayCount::create(Document& document) { 14 IncrementLoadEventDelayCount::create(Document& document) {
15 return wrapUnique(new IncrementLoadEventDelayCount(document)); 15 return WTF::wrapUnique(new IncrementLoadEventDelayCount(document));
16 } 16 }
17 17
18 IncrementLoadEventDelayCount::IncrementLoadEventDelayCount(Document& document) 18 IncrementLoadEventDelayCount::IncrementLoadEventDelayCount(Document& document)
19 : m_document(&document) { 19 : m_document(&document) {
20 document.incrementLoadEventDelayCount(); 20 document.incrementLoadEventDelayCount();
21 } 21 }
22 22
23 IncrementLoadEventDelayCount::~IncrementLoadEventDelayCount() { 23 IncrementLoadEventDelayCount::~IncrementLoadEventDelayCount() {
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 newDocument.incrementLoadEventDelayCount(); 28 newDocument.incrementLoadEventDelayCount();
29 m_document->decrementLoadEventDelayCount(); 29 m_document->decrementLoadEventDelayCount();
30 m_document = &newDocument; 30 m_document = &newDocument;
31 } 31 }
32 } // namespace blink 32 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/ExecutionContextTask.h ('k') | third_party/WebKit/Source/core/dom/MessagePort.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698