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

Unified Diff: Source/core/events/ProgressEvent.cpp

Issue 1167563002: Sync the XHR-related interfaces with the spec (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: data->body Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | Source/core/events/ProgressEvent.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/events/ProgressEvent.cpp
diff --git a/Source/core/events/ProgressEvent.cpp b/Source/core/events/ProgressEvent.cpp
index 3d9d5ffc3c2985b84c125748df0ef8ea45236107..55e2f74b43a35d5c5f28a15d8c6496e42a416366 100644
--- a/Source/core/events/ProgressEvent.cpp
+++ b/Source/core/events/ProgressEvent.cpp
@@ -37,16 +37,10 @@ ProgressEvent::ProgressEvent()
ProgressEvent::ProgressEvent(const AtomicString& type, const ProgressEventInit& initializer)
: Event(type, initializer)
- , m_lengthComputable(false)
- , m_loaded(0)
- , m_total(0)
+ , m_lengthComputable(initializer.lengthComputable())
+ , m_loaded(initializer.loaded())
+ , m_total(initializer.total())
{
- if (initializer.hasLengthComputable())
- m_lengthComputable = initializer.lengthComputable();
- if (initializer.hasLoaded())
- m_loaded = initializer.loaded();
- if (initializer.hasTotal())
- m_total = initializer.total();
}
ProgressEvent::ProgressEvent(const AtomicString& type, bool lengthComputable, unsigned long long loaded, unsigned long long total)
« no previous file with comments | « no previous file | Source/core/events/ProgressEvent.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698