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

Side by Side Diff: Source/core/dom/IncrementLoadEventDelayCount.h

Issue 200923002: Post a microtask to load <img> elements. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fix last test failure Created 6 years, 7 months 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/core.gypi ('k') | Source/core/dom/IncrementLoadEventDelayCount.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef IncrementLoadEventDelayCount_h
6 #define IncrementLoadEventDelayCount_h
7
8 #include "wtf/Noncopyable.h"
9 #include "wtf/RefPtr.h"
10
11 namespace WebCore {
12
13 class Document;
14
15 // A helper class that will increment a document's loadEventDelayCount on
16 // contruction and decrement it on destruction (semantics similar to RefPtr).
17 class IncrementLoadEventDelayCount {
18 WTF_MAKE_NONCOPYABLE(IncrementLoadEventDelayCount);
19
20 public:
21 IncrementLoadEventDelayCount(Document&);
22 ~IncrementLoadEventDelayCount();
23
24 // Increments the new document's count and decrements the old count.
25 void documentChanged(Document& newDocument);
26
27 private:
28 RefPtr<Document> m_document;
29 };
30 }
31
32 #endif
OLDNEW
« no previous file with comments | « Source/core/core.gypi ('k') | Source/core/dom/IncrementLoadEventDelayCount.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698