Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(238)

Side by Side Diff: Source/core/dom/Element.cpp

Issue 699213003: RenderTreeBuilder => RenderTreeBuilderForElement and RenderTreeBuilderForText (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | Source/core/dom/RenderTreeBuilder.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | Source/core/dom/RenderTreeBuilder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698