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

Side by Side Diff: third_party/WebKit/Source/core/svg/graphics/SVGImageChromeClient.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 /* 1 /*
2 * Copyright (C) 2012 Apple Inc. All rights reserved. 2 * Copyright (C) 2012 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 20 matching lines...) Expand all
31 #include "core/svg/graphics/SVGImage.h" 31 #include "core/svg/graphics/SVGImage.h"
32 #include "platform/graphics/ImageObserver.h" 32 #include "platform/graphics/ImageObserver.h"
33 #include "wtf/CurrentTime.h" 33 #include "wtf/CurrentTime.h"
34 34
35 namespace blink { 35 namespace blink {
36 36
37 static const double animationFrameDelay = 1.0 / 60; 37 static const double animationFrameDelay = 1.0 / 60;
38 38
39 SVGImageChromeClient::SVGImageChromeClient(SVGImage* image) 39 SVGImageChromeClient::SVGImageChromeClient(SVGImage* image)
40 : m_image(image), 40 : m_image(image),
41 m_animationTimer(wrapUnique(new Timer<SVGImageChromeClient>( 41 m_animationTimer(WTF::wrapUnique(new Timer<SVGImageChromeClient>(
42 this, 42 this,
43 &SVGImageChromeClient::animationTimerFired))), 43 &SVGImageChromeClient::animationTimerFired))),
44 m_timelineState(Running) {} 44 m_timelineState(Running) {}
45 45
46 SVGImageChromeClient* SVGImageChromeClient::create(SVGImage* image) { 46 SVGImageChromeClient* SVGImageChromeClient::create(SVGImage* image) {
47 return new SVGImageChromeClient(image); 47 return new SVGImageChromeClient(image);
48 } 48 }
49 49
50 bool SVGImageChromeClient::isSVGImageChromeClient() const { 50 bool SVGImageChromeClient::isSVGImageChromeClient() const {
51 return true; 51 return true;
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 // 117 //
118 // TODO(Oilpan): move (SVG)Image to the Oilpan heap, and avoid 118 // TODO(Oilpan): move (SVG)Image to the Oilpan heap, and avoid
119 // this explicit lifetime check. 119 // this explicit lifetime check.
120 if (ThreadHeap::willObjectBeLazilySwept(m_image->getImageObserver())) 120 if (ThreadHeap::willObjectBeLazilySwept(m_image->getImageObserver()))
121 return; 121 return;
122 122
123 m_image->serviceAnimations(monotonicallyIncreasingTime()); 123 m_image->serviceAnimations(monotonicallyIncreasingTime());
124 } 124 }
125 125
126 } // namespace blink 126 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGPathByteStream.h ('k') | third_party/WebKit/Source/core/svg/graphics/SVGImageTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698