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

Side by Side Diff: Source/core/html/HTMLMarqueeElement.cpp

Issue 324073002: Oilpan: Switch RefCountedGarbageCollected to GarbageCollectedFinalized for Node. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase and update Node base class list Created 6 years, 6 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/html/HTMLLinkElement.cpp ('k') | Source/core/html/HTMLMeterElement.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * Copyright (C) 2003, 2007, 2010 Apple Inc. All rights reserved. 4 * Copyright (C) 2003, 2007, 2010 Apple Inc. All rights reserved.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 25 matching lines...) Expand all
36 36
37 inline HTMLMarqueeElement::HTMLMarqueeElement(Document& document) 37 inline HTMLMarqueeElement::HTMLMarqueeElement(Document& document)
38 : HTMLElement(marqueeTag, document) 38 : HTMLElement(marqueeTag, document)
39 , ActiveDOMObject(&document) 39 , ActiveDOMObject(&document)
40 { 40 {
41 ScriptWrappable::init(this); 41 ScriptWrappable::init(this);
42 } 42 }
43 43
44 PassRefPtrWillBeRawPtr<HTMLMarqueeElement> HTMLMarqueeElement::create(Document& document) 44 PassRefPtrWillBeRawPtr<HTMLMarqueeElement> HTMLMarqueeElement::create(Document& document)
45 { 45 {
46 RefPtrWillBeRawPtr<HTMLMarqueeElement> marqueeElement(adoptRefWillBeRefCount edGarbageCollected(new HTMLMarqueeElement(document))); 46 RefPtrWillBeRawPtr<HTMLMarqueeElement> marqueeElement(adoptRefWillBeNoop(new HTMLMarqueeElement(document)));
47 marqueeElement->suspendIfNeeded(); 47 marqueeElement->suspendIfNeeded();
48 return marqueeElement.release(); 48 return marqueeElement.release();
49 } 49 }
50 50
51 int HTMLMarqueeElement::minimumDelay() const 51 int HTMLMarqueeElement::minimumDelay() const
52 { 52 {
53 if (fastGetAttribute(truespeedAttr).isEmpty()) { 53 if (fastGetAttribute(truespeedAttr).isEmpty()) {
54 // WinIE uses 60ms as the minimum delay by default. 54 // WinIE uses 60ms as the minimum delay by default.
55 return 60; 55 return 60;
56 } 56 }
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 return; 201 return;
202 202
203 document().updateLayout(); 203 document().updateLayout();
204 204
205 // The updateLayout() could have destroyed renderer(), so this re-check is v ery important. 205 // The updateLayout() could have destroyed renderer(), so this re-check is v ery important.
206 if (renderer()) 206 if (renderer())
207 toRenderMarquee(renderer())->timerFired(); 207 toRenderMarquee(renderer())->timerFired();
208 } 208 }
209 209
210 } // namespace WebCore 210 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/html/HTMLLinkElement.cpp ('k') | Source/core/html/HTMLMeterElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698