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 * (C) 2001 Peter Kelly (pmk@post.com) | 4 * (C) 2001 Peter Kelly (pmk@post.com) |
5 * (C) 2001 Dirk Mueller (mueller@kde.org) | 5 * (C) 2001 Dirk Mueller (mueller@kde.org) |
6 * (C) 2007 David Smith (catfish.man@gmail.com) | 6 * (C) 2007 David Smith (catfish.man@gmail.com) |
7 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012, 2013 Apple Inc.
All rights reserved. | 7 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012, 2013 Apple Inc.
All rights reserved. |
8 * (C) 2007 Eric Seidel (eric@webkit.org) | 8 * (C) 2007 Eric Seidel (eric@webkit.org) |
9 * | 9 * |
10 * This library is free software; you can redistribute it and/or | 10 * This library is free software; you can redistribute it and/or |
(...skipping 376 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
387 ActiveAnimations* Element::ensureActiveAnimations() | 387 ActiveAnimations* Element::ensureActiveAnimations() |
388 { | 388 { |
389 ElementRareData& rareData = ensureElementRareData(); | 389 ElementRareData& rareData = ensureElementRareData(); |
390 if (!rareData.activeAnimations()) | 390 if (!rareData.activeAnimations()) |
391 rareData.setActiveAnimations(adoptPtr(new ActiveAnimations())); | 391 rareData.setActiveAnimations(adoptPtr(new ActiveAnimations())); |
392 return rareData.activeAnimations(); | 392 return rareData.activeAnimations(); |
393 } | 393 } |
394 | 394 |
395 bool Element::hasActiveAnimations() const | 395 bool Element::hasActiveAnimations() const |
396 { | 396 { |
397 if (!RuntimeEnabledFeatures::webAnimationsEnabled()) | 397 if (!RuntimeEnabledFeatures::webAnimationsCSSEnabled()) |
398 return false; | 398 return false; |
399 | 399 |
400 if (!hasRareData()) | 400 if (!hasRareData()) |
401 return false; | 401 return false; |
402 | 402 |
403 ActiveAnimations* activeAnimations = elementRareData()->activeAnimations(); | 403 ActiveAnimations* activeAnimations = elementRareData()->activeAnimations(); |
404 return activeAnimations && !activeAnimations->isEmpty(); | 404 return activeAnimations && !activeAnimations->isEmpty(); |
405 } | 405 } |
406 | 406 |
407 Node::NodeType Element::nodeType() const | 407 Node::NodeType Element::nodeType() const |
(...skipping 3129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3537 // Before doing so, we need to resolve issues in HTMLSelectElement::recalcLi
stItems | 3537 // Before doing so, we need to resolve issues in HTMLSelectElement::recalcLi
stItems |
3538 // and RenderMenuList::setText. See also https://bugs.webkit.org/show_bug.cg
i?id=88405 | 3538 // and RenderMenuList::setText. See also https://bugs.webkit.org/show_bug.cg
i?id=88405 |
3539 if (hasTagName(optionTag) || hasTagName(optgroupTag)) | 3539 if (hasTagName(optionTag) || hasTagName(optgroupTag)) |
3540 return false; | 3540 return false; |
3541 if (FullscreenElementStack::isActiveFullScreenElement(this)) | 3541 if (FullscreenElementStack::isActiveFullScreenElement(this)) |
3542 return false; | 3542 return false; |
3543 return true; | 3543 return true; |
3544 } | 3544 } |
3545 | 3545 |
3546 } // namespace WebCore | 3546 } // namespace WebCore |
OLD | NEW |