| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |