| 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 1005 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1016 | 1016 |
| 1017 void Element::setNeedsAnimationStyleRecalc() | 1017 void Element::setNeedsAnimationStyleRecalc() |
| 1018 { | 1018 { |
| 1019 if (styleChangeType() != NoStyleChange) | 1019 if (styleChangeType() != NoStyleChange) |
| 1020 return; | 1020 return; |
| 1021 | 1021 |
| 1022 setNeedsStyleRecalc(LocalStyleChange); | 1022 setNeedsStyleRecalc(LocalStyleChange); |
| 1023 setAnimationStyleChange(true); | 1023 setAnimationStyleChange(true); |
| 1024 } | 1024 } |
| 1025 | 1025 |
| 1026 void Element::setNeedsCompositingUpdate() | |
| 1027 { | |
| 1028 if (!document().isActive()) | |
| 1029 return; | |
| 1030 RenderBoxModelObject* renderer = renderBoxModelObject(); | |
| 1031 if (!renderer) | |
| 1032 return; | |
| 1033 if (!renderer->hasLayer()) | |
| 1034 return; | |
| 1035 renderer->layer()->setNeedsCompositingInputsUpdate(); | |
| 1036 } | |
| 1037 | |
| 1038 void Element::setCustomElementDefinition(PassRefPtr<CustomElementDefinition> def
inition) | 1026 void Element::setCustomElementDefinition(PassRefPtr<CustomElementDefinition> def
inition) |
| 1039 { | 1027 { |
| 1040 if (!hasRareData() && !definition) | 1028 if (!hasRareData() && !definition) |
| 1041 return; | 1029 return; |
| 1042 ASSERT(!customElementDefinition()); | 1030 ASSERT(!customElementDefinition()); |
| 1043 ensureElementRareData().setCustomElementDefinition(definition); | 1031 ensureElementRareData().setCustomElementDefinition(definition); |
| 1044 } | 1032 } |
| 1045 | 1033 |
| 1046 CustomElementDefinition* Element::customElementDefinition() const | 1034 CustomElementDefinition* Element::customElementDefinition() const |
| 1047 { | 1035 { |
| (...skipping 745 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1793 return false; | 1781 return false; |
| 1794 // Turn off style sharing for elements that can gain layers for reasons outs
ide of the style system. | 1782 // Turn off style sharing for elements that can gain layers for reasons outs
ide of the style system. |
| 1795 // See comments in RenderObject::setStyle(). | 1783 // See comments in RenderObject::setStyle(). |
| 1796 // FIXME: Why does gaining a layer from outside the style system require dis
abling sharing? | 1784 // FIXME: Why does gaining a layer from outside the style system require dis
abling sharing? |
| 1797 if (isHTMLCanvasElement(*this)) | 1785 if (isHTMLCanvasElement(*this)) |
| 1798 return false; | 1786 return false; |
| 1799 return true; | 1787 return true; |
| 1800 } | 1788 } |
| 1801 | 1789 |
| 1802 } // namespace blink | 1790 } // namespace blink |
| OLD | NEW |