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 1320 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1331 { | 1331 { |
1332 ASSERT(document().inStyleRecalc()); | 1332 ASSERT(document().inStyleRecalc()); |
1333 | 1333 |
1334 // We've already been through detach when doing an attach, but we might | 1334 // We've already been through detach when doing an attach, but we might |
1335 // need to clear any state that's been added since then. | 1335 // need to clear any state that's been added since then. |
1336 if (hasRareData() && styleChangeType() == NeedsReattachStyleChange) { | 1336 if (hasRareData() && styleChangeType() == NeedsReattachStyleChange) { |
1337 ElementRareData* data = elementRareData(); | 1337 ElementRareData* data = elementRareData(); |
1338 data->clearComputedStyle(); | 1338 data->clearComputedStyle(); |
1339 } | 1339 } |
1340 | 1340 |
1341 RenderTreeBuilder(this, context.resolvedStyle).createRendererForElementIfNee
ded(); | 1341 RefPtr<RenderStyle> style = context.resolvedStyle ? context.resolvedStyle :
styleForRenderer(); |
| 1342 RenderTreeBuilderForElement(this, style.release()).createRendererIfNeeded(); |
1342 | 1343 |
1343 addCallbackSelectors(); | 1344 addCallbackSelectors(); |
1344 | 1345 |
1345 StyleResolverParentScope parentScope(*this); | 1346 StyleResolverParentScope parentScope(*this); |
1346 | 1347 |
1347 createPseudoElementIfNeeded(BEFORE); | 1348 createPseudoElementIfNeeded(BEFORE); |
1348 | 1349 |
1349 // When a shadow root exists, it does the work of attaching the children. | 1350 // When a shadow root exists, it does the work of attaching the children. |
1350 if (ElementShadow* shadow = this->shadow()) | 1351 if (ElementShadow* shadow = this->shadow()) |
1351 shadow->attach(context); | 1352 shadow->attach(context); |
(...skipping 1918 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3270 return wrapper; | 3271 return wrapper; |
3271 | 3272 |
3272 CustomElementBinding* binding = perContextData->customElementBinding(customE
lementDefinition()); | 3273 CustomElementBinding* binding = perContextData->customElementBinding(customE
lementDefinition()); |
3273 | 3274 |
3274 wrapper->SetPrototype(binding->prototype()); | 3275 wrapper->SetPrototype(binding->prototype()); |
3275 | 3276 |
3276 return V8DOMWrapper::associateObjectWithWrapperNonTemplate(this, wrapperType
, wrapper, isolate); | 3277 return V8DOMWrapper::associateObjectWithWrapperNonTemplate(this, wrapperType
, wrapper, isolate); |
3277 } | 3278 } |
3278 | 3279 |
3279 } // namespace blink | 3280 } // namespace blink |
OLD | NEW |