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

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

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/dom/IncrementLoadEventDelayCount.h ('k') | Source/core/loader/ImageLoader.h » ('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 #include "config.h"
6 #include "core/dom/IncrementLoadEventDelayCount.h"
7
8 #include "core/dom/Document.h"
9
10 namespace WebCore {
11
12 IncrementLoadEventDelayCount::IncrementLoadEventDelayCount(Document& document)
13 : m_document(&document)
14 {
15 document.incrementLoadEventDelayCount();
16 }
17
18 IncrementLoadEventDelayCount::~IncrementLoadEventDelayCount()
19 {
20 m_document->decrementLoadEventDelayCount();
21 }
22
23 void IncrementLoadEventDelayCount::documentChanged(Document& newDocument)
24 {
25 newDocument.incrementLoadEventDelayCount();
26 m_document->decrementLoadEventDelayCount();
27 m_document = &newDocument;
28 }
29 }
OLDNEW
« no previous file with comments | « Source/core/dom/IncrementLoadEventDelayCount.h ('k') | Source/core/loader/ImageLoader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698