| 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 1420 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1431 data->setPseudoElement(BACKDROP, 0); | 1431 data->setPseudoElement(BACKDROP, 0); |
| 1432 data->setIsInsideRegion(false); | 1432 data->setIsInsideRegion(false); |
| 1433 | 1433 |
| 1434 // attach() will perform the below steps for us when inside recalcStyle. | 1434 // attach() will perform the below steps for us when inside recalcStyle. |
| 1435 if (!document().inStyleRecalc()) { | 1435 if (!document().inStyleRecalc()) { |
| 1436 data->resetStyleState(); | 1436 data->resetStyleState(); |
| 1437 data->clearComputedStyle(); | 1437 data->clearComputedStyle(); |
| 1438 data->resetDynamicRestyleObservations(); | 1438 data->resetDynamicRestyleObservations(); |
| 1439 } | 1439 } |
| 1440 | 1440 |
| 1441 if (RuntimeEnabledFeatures::webAnimationsCSSEnabled() && !context.perfor
mingReattach) { | 1441 if (RuntimeEnabledFeatures::webAnimationsCSSEnabled()) { |
| 1442 if (ActiveAnimations* activeAnimations = data->activeAnimations()) | 1442 if (ActiveAnimations* activeAnimations = data->activeAnimations()) { |
| 1443 activeAnimations->cssAnimations().cancel(); | 1443 if (context.performingReattach) { |
| 1444 // FIXME: restart compositor animations rather than pull bac
k to the main thread |
| 1445 activeAnimations->cancelCompositorAnimations(); |
| 1446 } else { |
| 1447 activeAnimations->cssAnimations().cancel(); |
| 1448 } |
| 1449 } |
| 1444 } | 1450 } |
| 1445 } | 1451 } |
| 1446 if (ElementShadow* shadow = this->shadow()) | 1452 if (ElementShadow* shadow = this->shadow()) |
| 1447 shadow->detach(context); | 1453 shadow->detach(context); |
| 1448 ContainerNode::detach(context); | 1454 ContainerNode::detach(context); |
| 1449 } | 1455 } |
| 1450 | 1456 |
| 1451 bool Element::pseudoStyleCacheIsInvalid(const RenderStyle* currentStyle, RenderS
tyle* newStyle) | 1457 bool Element::pseudoStyleCacheIsInvalid(const RenderStyle* currentStyle, RenderS
tyle* newStyle) |
| 1452 { | 1458 { |
| 1453 ASSERT(currentStyle == renderStyle()); | 1459 ASSERT(currentStyle == renderStyle()); |
| (...skipping 2062 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3516 // Before doing so, we need to resolve issues in HTMLSelectElement::recalcLi
stItems | 3522 // Before doing so, we need to resolve issues in HTMLSelectElement::recalcLi
stItems |
| 3517 // and RenderMenuList::setText. See also https://bugs.webkit.org/show_bug.cg
i?id=88405 | 3523 // and RenderMenuList::setText. See also https://bugs.webkit.org/show_bug.cg
i?id=88405 |
| 3518 if (hasTagName(optionTag) || hasTagName(optgroupTag)) | 3524 if (hasTagName(optionTag) || hasTagName(optgroupTag)) |
| 3519 return false; | 3525 return false; |
| 3520 if (FullscreenElementStack::isActiveFullScreenElement(this)) | 3526 if (FullscreenElementStack::isActiveFullScreenElement(this)) |
| 3521 return false; | 3527 return false; |
| 3522 return true; | 3528 return true; |
| 3523 } | 3529 } |
| 3524 | 3530 |
| 3525 } // namespace WebCore | 3531 } // namespace WebCore |
| OLD | NEW |