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 1897 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1908 if (!layoutObject) | 1908 if (!layoutObject) |
1909 return; | 1909 return; |
1910 if (!layoutObject->hasLayer()) | 1910 if (!layoutObject->hasLayer()) |
1911 return; | 1911 return; |
1912 layoutObject->layer()->setNeedsCompositingInputsUpdate(); | 1912 layoutObject->layer()->setNeedsCompositingInputsUpdate(); |
1913 // Changes in the return value of requiresAcceleratedCompositing change if | 1913 // Changes in the return value of requiresAcceleratedCompositing change if |
1914 // the PaintLayer is self-painting. | 1914 // the PaintLayer is self-painting. |
1915 layoutObject->layer()->updateSelfPaintingLayer(); | 1915 layoutObject->layer()->updateSelfPaintingLayer(); |
1916 } | 1916 } |
1917 | 1917 |
1918 void Element::setCustomElementDefinition(V0CustomElementDefinition* definition) | 1918 void Element::V0setCustomElementDefinition(V0CustomElementDefinition* definition
) |
1919 { | 1919 { |
1920 if (!hasRareData() && !definition) | 1920 if (!hasRareData() && !definition) |
1921 return; | 1921 return; |
| 1922 DCHECK(!V0customElementDefinition()); |
| 1923 ensureElementRareData().V0setCustomElementDefinition(definition); |
| 1924 } |
| 1925 |
| 1926 V0CustomElementDefinition* Element::V0customElementDefinition() const |
| 1927 { |
| 1928 if (hasRareData()) |
| 1929 return elementRareData()->V0customElementDefinition(); |
| 1930 return nullptr; |
| 1931 } |
| 1932 |
| 1933 void Element::setCustomElementDefinition(CustomElementDefinition* definition) |
| 1934 { |
| 1935 if (!hasRareData() && !definition) |
| 1936 return; |
1922 DCHECK(!customElementDefinition()); | 1937 DCHECK(!customElementDefinition()); |
1923 ensureElementRareData().setCustomElementDefinition(definition); | 1938 ensureElementRareData().setCustomElementDefinition(definition); |
1924 } | 1939 } |
1925 | 1940 |
1926 V0CustomElementDefinition* Element::customElementDefinition() const | 1941 CustomElementDefinition* Element::customElementDefinition() const |
1927 { | 1942 { |
1928 if (hasRareData()) | 1943 if (hasRareData()) |
1929 return elementRareData()->customElementDefinition(); | 1944 return elementRareData()->customElementDefinition(); |
1930 return nullptr; | 1945 return nullptr; |
1931 } | 1946 } |
1932 | 1947 |
1933 ShadowRoot* Element::createShadowRoot(const ScriptState* scriptState, ExceptionS
tate& exceptionState) | 1948 ShadowRoot* Element::createShadowRoot(const ScriptState* scriptState, ExceptionS
tate& exceptionState) |
1934 { | 1949 { |
1935 HostsUsingFeatures::countMainWorldOnly(scriptState, document(), HostsUsingFe
atures::Feature::ElementCreateShadowRoot); | 1950 HostsUsingFeatures::countMainWorldOnly(scriptState, document(), HostsUsingFe
atures::Feature::ElementCreateShadowRoot); |
1936 if (ShadowRoot* root = shadowRoot()) { | 1951 if (ShadowRoot* root = shadowRoot()) { |
(...skipping 1832 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3769 | 3784 |
3770 DEFINE_TRACE_WRAPPERS(Element) | 3785 DEFINE_TRACE_WRAPPERS(Element) |
3771 { | 3786 { |
3772 if (hasRareData()) { | 3787 if (hasRareData()) { |
3773 visitor->traceWrappers(elementRareData()); | 3788 visitor->traceWrappers(elementRareData()); |
3774 } | 3789 } |
3775 ContainerNode::traceWrappers(visitor); | 3790 ContainerNode::traceWrappers(visitor); |
3776 } | 3791 } |
3777 | 3792 |
3778 } // namespace blink | 3793 } // namespace blink |
OLD | NEW |