| 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 1296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1307 { | 1307 { |
| 1308 ASSERT(document().inStyleRecalc()); | 1308 ASSERT(document().inStyleRecalc()); |
| 1309 | 1309 |
| 1310 // We've already been through detach when doing an attach, but we might | 1310 // We've already been through detach when doing an attach, but we might |
| 1311 // need to clear any state that's been added since then. | 1311 // need to clear any state that's been added since then. |
| 1312 if (hasRareData() && styleChangeType() == NeedsReattachStyleChange) { | 1312 if (hasRareData() && styleChangeType() == NeedsReattachStyleChange) { |
| 1313 ElementRareData* data = elementRareData(); | 1313 ElementRareData* data = elementRareData(); |
| 1314 data->clearComputedStyle(); | 1314 data->clearComputedStyle(); |
| 1315 } | 1315 } |
| 1316 | 1316 |
| 1317 RenderTreeBuilder(this, context.resolvedStyle).createRendererForElementIfNee
ded(); | 1317 RenderTreeBuilderForElement(this, context.resolvedStyle).createRendererIfNee
ded(); |
| 1318 | 1318 |
| 1319 addCallbackSelectors(); | 1319 addCallbackSelectors(); |
| 1320 | 1320 |
| 1321 StyleResolverParentScope parentScope(*this); | 1321 StyleResolverParentScope parentScope(*this); |
| 1322 | 1322 |
| 1323 createPseudoElementIfNeeded(BEFORE); | 1323 createPseudoElementIfNeeded(BEFORE); |
| 1324 | 1324 |
| 1325 // When a shadow root exists, it does the work of attaching the children. | 1325 // When a shadow root exists, it does the work of attaching the children. |
| 1326 if (ElementShadow* shadow = this->shadow()) | 1326 if (ElementShadow* shadow = this->shadow()) |
| 1327 shadow->attach(context); | 1327 shadow->attach(context); |
| (...skipping 1967 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3295 return wrapper; | 3295 return wrapper; |
| 3296 | 3296 |
| 3297 CustomElementBinding* binding = perContextData->customElementBinding(customE
lementDefinition()); | 3297 CustomElementBinding* binding = perContextData->customElementBinding(customE
lementDefinition()); |
| 3298 | 3298 |
| 3299 wrapper->SetPrototype(binding->prototype()); | 3299 wrapper->SetPrototype(binding->prototype()); |
| 3300 | 3300 |
| 3301 return V8DOMWrapper::associateObjectWithWrapper(isolate, this, wrapperType,
wrapper); | 3301 return V8DOMWrapper::associateObjectWithWrapper(isolate, this, wrapperType,
wrapper); |
| 3302 } | 3302 } |
| 3303 | 3303 |
| 3304 } // namespace blink | 3304 } // namespace blink |
| OLD | NEW |