Changeset 116277 in webkit
- Timestamp:
- May 6, 2012 11:05:42 PM (12 years ago)
- Location:
- trunk
- Files:
-
- 48 edited
- 2 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/ChangeLog
r116257 r116277 1 2012-05-06 MORITA Hajime <morrita@google.com> 2 3 https://bugs.webkit.org/show_bug.cgi?id=85265 4 [Shadow DOM] ShadowTree needs a better name 5 6 Reviewed by Dimitri Glazkov. 7 8 * Source/autotools/symbols.filter: Updated exported symbol names according to the rename. 9 1 10 2012-05-06 Dan Bernstein <mitz@apple.com> 2 11 -
trunk/Source/WebCore/CMakeLists.txt
r115943 r116277 575 575 dom/EditingText.cpp 576 576 dom/Element.cpp 577 dom/ElementShadow.cpp 577 578 dom/ElementAttributeData.cpp 578 579 dom/EntityReference.cpp … … 630 631 dom/SelectorQuery.cpp 631 632 dom/ShadowRoot.cpp 632 dom/ShadowTree.cpp633 633 dom/SpaceSplitString.cpp 634 634 dom/StaticHashSetNodeList.cpp -
trunk/Source/WebCore/ChangeLog
r116276 r116277 1 2012-05-06 MORITA Hajime <morrita@google.com> 2 3 https://bugs.webkit.org/show_bug.cgi?id=85265 4 [Shadow DOM] ShadowTree needs a better name 5 6 Reviewed by Dimitri Glazkov. 7 8 Renamed ShadowTree to ElementShadow, The ElementShadow class is 9 going to be a facade of Shadow related APIs. 10 11 Following renames follow: 12 - Element::shadowTree() to Element::shadow() 13 - ShadowRoot::tree() to ShadowRoot::owner() 14 - ShadowTree::recalcShadowTreeStyle() to ElementShadow::recalcStyle() 15 16 No new tests. Just renames. 17 18 * CMakeLists.txt: 19 * GNUmakefile.list.am: 20 * Target.pri: 21 * WebCore.exp.in: 22 * WebCore.gypi: 23 * WebCore.xcodeproj/project.pbxproj: 24 * dom/ComposedShadowTreeWalker.cpp: 25 (WebCore::shadowFor): 26 (WebCore::shadowOfParent): 27 (WebCore::ComposedShadowTreeWalker::traverseChild): 28 (WebCore::ComposedShadowTreeWalker::traverseSiblingOrBackToInsertionPoint): 29 (WebCore::ComposedShadowTreeWalker::traverseParent): 30 * dom/ContainerNodeAlgorithms.cpp: 31 (WebCore::ChildNodeInsertionNotifier::notifyDescendantInsertedIntoDocument): 32 (WebCore::ChildNodeInsertionNotifier::notifyDescendantInsertedIntoTree): 33 (WebCore::ChildNodeRemovalNotifier::notifyDescendantRemovedFromDocument): 34 (WebCore::ChildNodeRemovalNotifier::notifyDescendantRemovedFromTree): 35 * dom/DOMAllInOne.cpp: 36 * dom/Document.cpp: 37 (WebCore::Document::buildAccessKeyMap): 38 * dom/Element.cpp: 39 (WebCore::Element::~Element): 40 (WebCore::Element::willRemove): 41 (WebCore::Element::attach): 42 (WebCore::Element::detach): 43 (WebCore::Element::recalcStyle): 44 (WebCore::Element::hasShadowRoot): 45 (WebCore::Element::shadow): 46 (WebCore::Element::ensureShadow): 47 (WebCore::Element::ensureShadowRoot): 48 (WebCore::Element::childrenChanged): 49 * dom/Element.h: 50 (WebCore): 51 (Element): 52 * dom/ElementRareData.h: 53 (ElementRareData): 54 (WebCore::ElementRareData::~ElementRareData): 55 * dom/ElementShadow.cpp: Renamed from Source/WebCore/dom/ShadowTree.cpp. 56 (WebCore): 57 (WebCore::ElementShadow::ElementShadow): 58 (WebCore::ElementShadow::~ElementShadow): 59 (WebCore::validateShadowRoot): 60 (WebCore::ElementShadow::addShadowRoot): 61 (WebCore::ElementShadow::removeAllShadowRoots): 62 (WebCore::ElementShadow::willRemove): 63 (WebCore::ElementShadow::setParentTreeScope): 64 (WebCore::ElementShadow::attach): 65 (WebCore::ElementShadow::attachHost): 66 (WebCore::ElementShadow::detach): 67 (WebCore::ElementShadow::detachHost): 68 (WebCore::ElementShadow::insertionPointFor): 69 (WebCore::ElementShadow::selectionFor): 70 (WebCore::ElementShadow::reattach): 71 (WebCore::ElementShadow::childNeedsStyleRecalc): 72 (WebCore::ElementShadow::needsStyleRecalc): 73 (WebCore::ElementShadow::recalcStyle): 74 (WebCore::ElementShadow::needsReattachHostChildrenAndShadow): 75 (WebCore::ElementShadow::hostChildrenChanged): 76 (WebCore::ElementShadow::setNeedsReattachHostChildrenAndShadow): 77 (WebCore::ElementShadow::reattachHostChildrenAndShadow): 78 * dom/ElementShadow.h: Renamed from Source/WebCore/dom/ShadowTree.h. 79 (WebCore): 80 (ElementShadow): 81 (WebCore::ElementShadow::hasShadowRoot): 82 (WebCore::ElementShadow::youngestShadowRoot): 83 (WebCore::ElementShadow::oldestShadowRoot): 84 (WebCore::ElementShadow::selector): 85 (WebCore::ElementShadow::clearNeedsReattachHostChildrenAndShadow): 86 (WebCore::ElementShadow::host): 87 (ShadowRootVector): 88 (WebCore::ShadowRootVector::ShadowRootVector): 89 * dom/Node.cpp: 90 (WebCore::oldestShadowRootFor): 91 * dom/NodeRenderingContext.cpp: 92 (WebCore::NodeRenderingContext::NodeRenderingContext): 93 (WebCore::NodeRenderingContext::hostChildrenChanged): 94 * dom/NodeRenderingContext.h: 95 (WebCore): 96 * dom/ShadowRoot.cpp: 97 (WebCore::ShadowRoot::create): 98 (WebCore::ShadowRoot::owner): 99 * dom/ShadowRoot.h: 100 (WebCore): 101 (ShadowRoot): 102 * dom/TreeScopeAdopter.cpp: 103 (WebCore::shadowFor): 104 (WebCore::TreeScopeAdopter::moveTreeToNewScope): 105 (WebCore::TreeScopeAdopter::moveTreeToNewDocument): 106 (WebCore::TreeScopeAdopter::moveShadowToNewDocument): 107 * dom/TreeScopeAdopter.h: 108 (TreeScopeAdopter): 109 * html/ColorInputType.cpp: 110 (WebCore::ColorInputType::createShadowSubtree): 111 (WebCore::ColorInputType::shadowColorSwatch): 112 * html/FileInputType.cpp: 113 (WebCore::FileInputType::createShadowSubtree): 114 (WebCore::FileInputType::multipleAttributeChanged): 115 * html/HTMLDetailsElement.cpp: 116 (WebCore::HTMLDetailsElement::findMainSummary): 117 * html/HTMLKeygenElement.cpp: 118 (WebCore::HTMLKeygenElement::shadowSelect): 119 * html/HTMLMediaElement.cpp: 120 (WebCore::HTMLMediaElement::mediaControls): 121 (WebCore::HTMLMediaElement::hasMediaControls): 122 * html/HTMLSummaryElement.cpp: 123 * html/HTMLTextAreaElement.cpp: 124 (WebCore::HTMLTextAreaElement::innerTextElement): 125 (WebCore::HTMLTextAreaElement::updatePlaceholderText): 126 * html/InputType.cpp: 127 (WebCore::InputType::destroyShadowSubtree): 128 * html/RangeInputType.cpp: 129 (WebCore::RangeInputType::handleMouseDownEvent): 130 (WebCore::RangeInputType::createShadowSubtree): 131 * html/TextFieldInputType.cpp: 132 (WebCore::TextFieldInputType::createShadowSubtree): 133 (WebCore::TextFieldInputType::updatePlaceholderText): 134 * html/ValidationMessage.cpp: 135 (WebCore::ValidationMessage::deleteBubbleTree): 136 * html/shadow/HTMLContentElement.cpp: 137 (WebCore::HTMLContentElement::parseAttribute): 138 * html/shadow/InsertionPoint.cpp: 139 (WebCore::InsertionPoint::attach): 140 (WebCore::InsertionPoint::detach): 141 (WebCore::InsertionPoint::distributeHostChildren): 142 (WebCore::InsertionPoint::clearDistribution): 143 * html/shadow/InsertionPoint.h: 144 * html/shadow/SliderThumbElement.cpp: 145 (WebCore::sliderThumbElementOf): 146 (WebCore::RenderSliderContainer::layout): 147 (WebCore::trackLimiterElementOf): 148 * html/shadow/TextFieldDecorationElement.cpp: 149 (WebCore::getDecorationRootAndDecoratedRoot): 150 * inspector/InspectorDOMAgent.cpp: 151 (WebCore::InspectorDOMAgent::unbind): 152 (WebCore::InspectorDOMAgent::buildObjectForNode): 153 * page/FocusController.cpp: 154 (WebCore::FocusScope::focusScopeOf): 155 (WebCore::FocusScope::focusScopeOwnedByShadowHost): 156 * rendering/RenderFileUploadControl.cpp: 157 (WebCore::RenderFileUploadControl::uploadButton): 158 * svg/SVGTRefElement.cpp: 159 (WebCore::SVGTRefElement::updateReferencedText): 160 (WebCore::SVGTRefElement::detachTarget): 161 * svg/SVGUseElement.cpp: 162 (WebCore::SVGUseElement::clearResourceReferences): 163 (WebCore::SVGUseElement::buildShadowAndInstanceTree): 164 (WebCore::SVGUseElement::buildShadowTree): 165 * testing/Internals.cpp: 166 (WebCore::Internals::ensureShadowRoot): 167 (WebCore::Internals::youngestShadowRoot): 168 (WebCore::Internals::oldestShadowRoot): 169 (WebCore::Internals::removeShadowRoot): 170 1 171 2012-05-06 Sheriff Bot <webkit.review.bot@gmail.com> 2 172 -
trunk/Source/WebCore/GNUmakefile.list.am
r116227 r116277 1831 1831 Source/WebCore/dom/Element.cpp \ 1832 1832 Source/WebCore/dom/Element.h \ 1833 Source/WebCore/dom/ElementShadow.cpp \ 1834 Source/WebCore/dom/ElementShadow.h \ 1833 1835 Source/WebCore/dom/ElementAttributeData.cpp \ 1834 1836 Source/WebCore/dom/ElementAttributeData.h \ … … 1960 1962 Source/WebCore/dom/ShadowRoot.cpp \ 1961 1963 Source/WebCore/dom/ShadowRoot.h \ 1962 Source/WebCore/dom/ShadowTree.cpp \1963 Source/WebCore/dom/ShadowTree.h \1964 1964 Source/WebCore/dom/SpaceSplitString.cpp \ 1965 1965 Source/WebCore/dom/SpaceSplitString.h \ -
trunk/Source/WebCore/Target.pri
r116107 r116277 551 551 dom/EditingText.cpp \ 552 552 dom/Element.cpp \ 553 dom/ElementShadow.cpp \ 553 554 dom/ElementAttributeData.cpp \ 554 555 dom/EntityReference.cpp \ … … 609 610 dom/SelectorQuery.cpp \ 610 611 dom/ShadowRoot.cpp \ 611 dom/ShadowTree.cpp \612 612 dom/SpaceSplitString.cpp \ 613 613 dom/StaticNodeList.cpp \ … … 1708 1708 dom/EditingText.h \ 1709 1709 dom/Element.h \ 1710 dom/ElementShadow.h \ 1710 1711 dom/ElementAttributeData.h \ 1711 1712 dom/Entity.h \ … … 1757 1758 dom/SelectorQuery.h \ 1758 1759 dom/ShadowRoot.h \ 1759 dom/ShadowTree.h \1760 1760 dom/SpaceSplitString.h \ 1761 1761 dom/StaticNodeList.h \ -
trunk/Source/WebCore/WebCore.exp.in
r116017 r116277 148 148 __ZN7WebCore10MouseEventC1ERKN3WTF12AtomicStringEbbNS1_10PassRefPtrINS_9DOMWindowEEEiiiiibbbbtNS5_INS_11EventTargetEEENS5_INS_9ClipboardEEEb 149 149 __ZN7WebCore10RenderView10compositorEv 150 __ZN7WebCore10ShadowTree20removeAllShadowRootsEv151 150 __ZN7WebCore10ScrollView17setUseFixedLayoutEb 152 151 __ZN7WebCore10ScrollView18setFixedLayoutSizeERKNS_7IntSizeE … … 304 303 __ZN7WebCore13AXObjectCache23focusedUIElementForPageEPKNS_4PageE 305 304 __ZN7WebCore13AXObjectCache42gAccessibilityEnhancedUserInterfaceEnabledE 305 __ZN7WebCore13ElementShadow20removeAllShadowRootsEv 306 306 __ZN7WebCore13HTTPHeaderMapC1Ev 307 307 __ZN7WebCore13HTTPHeaderMapD1Ev … … 1483 1483 __ZNK7WebCore6Widget9frameRectEv 1484 1484 __ZNK7WebCore7Element10screenRectEv 1485 __ZNK7WebCore7Element 10shadowTreeEv1485 __ZNK7WebCore7Element6shadowEv 1486 1486 __ZNK7WebCore7Element12getAttributeERKNS_13QualifiedNameE 1487 1487 __ZNK7WebCore7Element13hasShadowRootEv -
trunk/Source/WebCore/WebCore.gypi
r116222 r116277 626 626 'dom/DocumentType.h', 627 627 'dom/Element.h', 628 'dom/ElementShadow.h', 628 629 'dom/ElementAttributeData.h', 629 630 'dom/Event.h', … … 653 654 'dom/ScriptRunner.h', 654 655 'dom/ShadowRoot.h', 655 'dom/ShadowTree.h',656 656 'dom/SpaceSplitString.h', 657 657 'dom/StyledElement.h', … … 5237 5237 'dom/EditingText.cpp', 5238 5238 'dom/EditingText.h', 5239 'dom/ElementShadow.cpp', 5239 5240 'dom/Element.cpp', 5240 5241 'dom/ElementAttributeData.cpp', … … 5342 5343 'dom/ShadowRoot.cpp', 5343 5344 'dom/ShadowRoot.h', 5344 'dom/ShadowTree.cpp',5345 'dom/ShadowTree.h',5346 5345 'dom/SpaceSplitString.cpp', 5347 5346 'dom/StaticHashSetNodeList.cpp', -
trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj
r116009 r116277 1594 1594 57CF497414EE36D700ECFF14 /* InsertionPoint.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 57CF497214EE36D700ECFF14 /* InsertionPoint.cpp */; }; 1595 1595 57CF497514EE36D700ECFF14 /* InsertionPoint.h in Headers */ = {isa = PBXBuildFile; fileRef = 57CF497314EE36D700ECFF14 /* InsertionPoint.h */; }; 1596 57CF4C8614F7597A00ECFF14 /* ShadowTree.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 57CF4C8414F7597A00ECFF14 /* ShadowTree.cpp */; };1597 57CF4C8714F7597A00ECFF14 /* ShadowTree.h in Headers */ = {isa = PBXBuildFile; fileRef = 57CF4C8514F7597A00ECFF14 /* ShadowTree.h */; };1596 57CF4C8614F7597A00ECFF14 /* ElementShadow.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 57CF4C8414F7597A00ECFF14 /* ElementShadow.cpp */; }; 1597 57CF4C8714F7597A00ECFF14 /* ElementShadow.h in Headers */ = {isa = PBXBuildFile; fileRef = 57CF4C8514F7597A00ECFF14 /* ElementShadow.h */; }; 1598 1598 5905ADBF1302F3CE00F116DF /* XMLTreeViewer.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 5905ADBD1302F3CE00F116DF /* XMLTreeViewer.cpp */; }; 1599 1599 5905ADC01302F3CE00F116DF /* XMLTreeViewer.h in Headers */ = {isa = PBXBuildFile; fileRef = 5905ADBE1302F3CE00F116DF /* XMLTreeViewer.h */; }; … … 8605 8605 57CF497214EE36D700ECFF14 /* InsertionPoint.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = InsertionPoint.cpp; sourceTree = "<group>"; }; 8606 8606 57CF497314EE36D700ECFF14 /* InsertionPoint.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = InsertionPoint.h; sourceTree = "<group>"; }; 8607 57CF4C8414F7597A00ECFF14 /* ShadowTree.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = ShadowTree.cpp; sourceTree = "<group>"; };8608 57CF4C8514F7597A00ECFF14 /* ShadowTree.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ShadowTree.h; sourceTree = "<group>"; };8607 57CF4C8414F7597A00ECFF14 /* ElementShadow.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = ElementShadow.cpp; sourceTree = "<group>"; }; 8608 57CF4C8514F7597A00ECFF14 /* ElementShadow.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ElementShadow.h; sourceTree = "<group>"; }; 8609 8609 5905ADBD1302F3CE00F116DF /* XMLTreeViewer.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = XMLTreeViewer.cpp; sourceTree = "<group>"; }; 8610 8610 5905ADBE1302F3CE00F116DF /* XMLTreeViewer.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = XMLTreeViewer.h; sourceTree = "<group>"; }; … … 21111 21111 A8C4A7F509D563270003AC8D /* Element.h */, 21112 21112 93EEC1EA09C2877700C515D1 /* Element.idl */, 21113 57CF4C8414F7597A00ECFF14 /* ElementShadow.cpp */, 21114 57CF4C8514F7597A00ECFF14 /* ElementShadow.h */, 21113 21115 2CF6878714D32EB500340F39 /* ElementAttributeData.cpp */, 21114 21116 2CF6878914D32EFF00340F39 /* ElementAttributeData.h */, … … 21280 21282 A6D169631346B4C1000EB770 /* ShadowRoot.h */, 21281 21283 A7DB418114CE1F0A00A2E316 /* ShadowRoot.idl */, 21282 57CF4C8414F7597A00ECFF14 /* ShadowTree.cpp */,21283 57CF4C8514F7597A00ECFF14 /* ShadowTree.h */,21284 21284 D01A27AB10C9BFD800026A42 /* SpaceSplitString.cpp */, 21285 21285 D01A27AC10C9BFD800026A42 /* SpaceSplitString.h */, … … 22691 22691 93FDAFCA0B11307400E2746F /* EditorInsertAction.h in Headers */, 22692 22692 A8C4A80709D563270003AC8D /* Element.h in Headers */, 22693 57CF4C8714F7597A00ECFF14 /* ElementShadow.h in Headers */, 22693 22694 2CF6878A14D32EFF00340F39 /* ElementAttributeData.h in Headers */, 22694 22695 63F5D4F70E8C4B7100C0BD04 /* ElementRareData.h in Headers */, … … 24224 24225 BC5EB8C40E82031B00B25965 /* ShadowData.h in Headers */, 24225 24226 A6D169641346B4C1000EB770 /* ShadowRoot.h in Headers */, 24226 57CF4C8714F7597A00ECFF14 /* ShadowTree.h in Headers */,24227 24227 A80E6CE80A1989CA007FB8C5 /* ShadowValue.h in Headers */, 24228 24228 B2AFFC940D00A5DF0030074D /* ShapeArabic.h in Headers */, … … 25865 25865 ED501DC60B249F2900AE18D9 /* EditorMac.mm in Sources */, 25866 25866 A8C4A80809D563270003AC8D /* Element.cpp in Sources */, 25867 57CF4C8614F7597A00ECFF14 /* ElementShadow.cpp in Sources */, 25867 25868 2CF6878814D32EB500340F39 /* ElementAttributeData.cpp in Sources */, 25868 25869 A8CFF6CB0A1561CD000A4234 /* EllipsisBox.cpp in Sources */, … … 27365 27366 BC5EB8C30E82031B00B25965 /* ShadowData.cpp in Sources */, 27366 27367 A6D169621346B49B000EB770 /* ShadowRoot.cpp in Sources */, 27367 57CF4C8614F7597A00ECFF14 /* ShadowTree.cpp in Sources */,27368 27368 A80E6CF40A1989CA007FB8C5 /* ShadowValue.cpp in Sources */, 27369 27369 B2AFFC930D00A5DF0030074D /* ShapeArabic.c in Sources */, -
trunk/Source/WebCore/dom/ComposedShadowTreeWalker.cpp
r112845 r116277 29 29 30 30 #include "Element.h" 31 #include "ElementShadow.h" 31 32 #include "HTMLContentSelector.h" 32 33 #include "InsertionPoint.h" 33 #include "ShadowTree.h" 34 34 35 35 36 namespace WebCore { … … 40 41 } 41 42 42 static inline ShadowTree* shadowTreeFor(const Node* node)43 static inline ElementShadow* shadowFor(const Node* node) 43 44 { 44 45 if (node && node->isElementNode()) 45 return toElement(node)->shadow Tree();46 return 0; 47 } 48 49 static inline ShadowTree* shadowTreeOfParent(const Node* node)46 return toElement(node)->shadow(); 47 return 0; 48 } 49 50 static inline ElementShadow* shadowOfParent(const Node* node) 50 51 { 51 52 if (node && node->parentNode()) 52 return shadow TreeFor(node->parentNode());53 return shadowFor(node->parentNode()); 53 54 return 0; 54 55 } … … 98 99 ASSERT(node); 99 100 if (canCrossUpperBoundary()) { 100 ShadowTree* shadowTree = shadowTreeFor(node);101 return (shadow Tree && shadowTree->hasShadowRoot()) ? traverseLightChildren(shadowTree->youngestShadowRoot(), direction)101 ElementShadow* shadow = shadowFor(node); 102 return (shadow && shadow->hasShadowRoot()) ? traverseLightChildren(shadow->youngestShadowRoot(), direction) 102 103 : traverseLightChildren(node, direction); 103 104 } … … 144 145 { 145 146 ASSERT(node); 146 ShadowTree* shadowTree = shadowTreeOfParent(node);147 if (!shadow Tree)147 ElementShadow* shadow = shadowOfParent(node); 148 if (!shadow) 148 149 return traverseSiblingInCurrentTree(node, direction); 149 HTMLContentSelection* selection = shadow Tree->selectionFor(node);150 HTMLContentSelection* selection = shadow->selectionFor(node); 150 151 if (!selection) 151 152 return traverseSiblingInCurrentTree(node, direction); … … 208 209 return 0; 209 210 } 210 if ( ShadowTree* shadowTree = shadowTreeOfParent(node)) {211 if (HTMLContentSelection* selection = shadow Tree->selectionFor(node))211 if (ElementShadow* shadow = shadowOfParent(node)) { 212 if (HTMLContentSelection* selection = shadow->selectionFor(node)) 212 213 return traverseParent(selection->insertionPoint()); 213 214 } -
trunk/Source/WebCore/dom/ContainerNodeAlgorithms.cpp
r114351 r116277 28 28 29 29 #include "Element.h" 30 #include " ShadowTree.h"30 #include "ElementShadow.h" 31 31 32 32 namespace WebCore { … … 47 47 return; 48 48 49 if ( ShadowTree* tree = toElement(node)->shadowTree()) {50 ShadowRootVector roots( tree);49 if (ElementShadow* shadow = toElement(node)->shadow()) { 50 ShadowRootVector roots(shadow); 51 51 for (size_t i = 0; i < roots.size(); ++i) 52 52 notifyNodeInsertedIntoDocument(roots[i].get()); … … 64 64 return; 65 65 66 if ( ShadowTree* tree = toElement(node)->shadowTree()) {67 for (ShadowRoot* root = tree->youngestShadowRoot(); root; root = root->olderShadowRoot())66 if (ElementShadow* shadow = toElement(node)->shadow()) { 67 for (ShadowRoot* root = shadow->youngestShadowRoot(); root; root = root->olderShadowRoot()) 68 68 notifyNodeInsertedIntoTree(root); 69 69 } … … 88 88 node->document()->setCSSTarget(0); 89 89 90 if ( ShadowTree* tree = toElement(node)->shadowTree()) {91 ShadowRootVector roots( tree);90 if (ElementShadow* shadow = toElement(node)->shadow()) { 91 ShadowRootVector roots(shadow); 92 92 for (size_t i = 0; i < roots.size(); ++i) 93 93 notifyNodeRemovedFromDocument(roots[i].get()); … … 105 105 return; 106 106 107 if ( ShadowTree* tree = toElement(node)->shadowTree()) {108 ShadowRootVector roots( tree);107 if (ElementShadow* shadow = toElement(node)->shadow()) { 108 ShadowRootVector roots(shadow); 109 109 for (size_t i = 0; i < roots.size(); ++i) 110 110 notifyNodeRemovedFromTree(roots[i].get()); -
trunk/Source/WebCore/dom/DOMAllInOne.cpp
r114871 r116277 70 70 #include "Element.cpp" 71 71 #include "ElementAttributeData.cpp" 72 #include "ElementShadow.cpp" 72 73 #include "EntityReference.cpp" 73 74 #include "ErrorEvent.cpp" … … 119 120 #include "SelectorQuery.cpp" 120 121 #include "ShadowRoot.cpp" 121 #include "ShadowTree.cpp"122 122 #include "SpaceSplitString.cpp" 123 123 #include "StaticHashSetNodeList.cpp" -
trunk/Source/WebCore/dom/Document.cpp
r116248 r116277 61 61 #include "Editor.h" 62 62 #include "Element.h" 63 #include "ElementShadow.h" 63 64 #include "EntityReference.h" 64 65 #include "Event.h" … … 141 142 #include "Settings.h" 142 143 #include "ShadowRoot.h" 143 #include "ShadowTree.h"144 144 #include "StaticHashSetNodeList.h" 145 145 #include "StyleResolver.h" … … 714 714 715 715 if (element->hasShadowRoot()) { 716 for (ShadowRoot* root = element->shadow Tree()->youngestShadowRoot(); root; root = root->olderShadowRoot())716 for (ShadowRoot* root = element->shadow()->youngestShadowRoot(); root; root = root->olderShadowRoot()) 717 717 buildAccessKeyMap(root); 718 718 } -
trunk/Source/WebCore/dom/Element.cpp
r116255 r116277 134 134 #endif 135 135 136 if (shadow Tree())137 rareData()->m_shadow Tree.clear();136 if (shadow()) 137 rareData()->m_shadow.clear(); 138 138 if (m_attributeData) 139 139 m_attributeData->clearAttributes(this); … … 909 909 setContainsFullScreenElementOnAncestorsCrossingFrameBoundaries(false); 910 910 #endif 911 if ( ShadowTree* tree = shadowTree())912 tree->willRemove();911 if (ElementShadow* shadow = this->shadow()) 912 shadow->willRemove(); 913 913 ContainerNode::willRemove(); 914 914 } … … 975 975 976 976 // When a shadow root exists, it does the work of attaching the children. 977 if ( ShadowTree* tree = shadowTree()) {977 if (ElementShadow* shadow = this->shadow()) { 978 978 parentPusher.push(); 979 tree->attachHost(this);979 shadow->attachHost(this); 980 980 } else { 981 981 if (firstChild()) … … 1013 1013 rareData()->resetComputedStyle(); 1014 1014 1015 if ( ShadowTree* tree = shadowTree())1016 tree->detachHost(this);1015 if (ElementShadow* shadow = this->shadow()) 1016 shadow->detachHost(this); 1017 1017 else 1018 1018 ContainerNode::detach(); … … 1158 1158 // FIXME: This does not care about sibling combinators. Will be necessary in XBL2 world. 1159 1159 if (hasShadowRoot()) { 1160 ShadowTree* tree = shadowTree();1161 if (change >= Inherit || tree->childNeedsStyleRecalc() || tree->needsStyleRecalc()) {1160 ElementShadow* shadow = this->shadow(); 1161 if (change >= Inherit || shadow->childNeedsStyleRecalc() || shadow->needsStyleRecalc()) { 1162 1162 parentPusher.push(); 1163 tree->recalcShadowTreeStyle(change);1163 shadow->recalcStyle(change); 1164 1164 } 1165 1165 } … … 1198 1198 bool Element::hasShadowRoot() const 1199 1199 { 1200 if ( ShadowTree* tree = shadowTree())1201 return tree->hasShadowRoot();1200 if (ElementShadow* shadow = this->shadow()) 1201 return shadow->hasShadowRoot(); 1202 1202 return false; 1203 1203 } 1204 1204 1205 ShadowTree* Element::shadowTree() const1205 ElementShadow* Element::shadow() const 1206 1206 { 1207 1207 if (!hasRareData()) 1208 1208 return 0; 1209 1209 1210 return rareData()->m_shadow Tree.get();1211 } 1212 1213 ShadowTree* Element::ensureShadowTree()1214 { 1215 if ( ShadowTree* tree = ensureRareData()->m_shadowTree.get())1216 return tree;1217 1218 rareData()->m_shadow Tree = adoptPtr(new ShadowTree());1219 return rareData()->m_shadow Tree.get();1210 return rareData()->m_shadow.get(); 1211 } 1212 1213 ElementShadow* Element::ensureShadow() 1214 { 1215 if (ElementShadow* shadow = ensureRareData()->m_shadow.get()) 1216 return shadow; 1217 1218 rareData()->m_shadow = adoptPtr(new ElementShadow()); 1219 return rareData()->m_shadow.get(); 1220 1220 } 1221 1221 … … 1223 1223 { 1224 1224 if (hasShadowRoot()) 1225 return shadow Tree()->oldestShadowRoot();1225 return shadow()->oldestShadowRoot(); 1226 1226 1227 1227 return ShadowRoot::create(this, ShadowRoot::CreatingUserAgentShadowRoot).get(); … … 1360 1360 if (hasRareData()) { 1361 1361 if (hasShadowRoot()) 1362 shadow Tree()->hostChildrenChanged();1362 shadow()->hostChildrenChanged(); 1363 1363 } 1364 1364 } -
trunk/Source/WebCore/dom/Element.h
r115645 r116277 43 43 class IntSize; 44 44 class ShadowRoot; 45 class ShadowTree;45 class ElementShadow; 46 46 class WebKitAnimationList; 47 47 … … 263 263 264 264 bool hasShadowRoot() const; 265 ShadowTree* shadowTree() const;266 ShadowTree* ensureShadowTree();265 ElementShadow* shadow() const; 266 ElementShadow* ensureShadow(); 267 267 268 268 // FIXME: Remove Element::ensureShadowRoot -
trunk/Source/WebCore/dom/ElementRareData.h
r113665 r116277 26 26 #include "DatasetDOMStringMap.h" 27 27 #include "Element.h" 28 #include "ElementShadow.h" 28 29 #include "HTMLCollection.h" 29 30 #include "NamedNodeMap.h" 30 31 #include "NodeRareData.h" 31 #include "ShadowTree.h"32 32 #include <wtf/OwnPtr.h> 33 33 … … 70 70 OwnPtr<DatasetDOMStringMap> m_datasetDOMStringMap; 71 71 OwnPtr<ClassList> m_classList; 72 OwnPtr< ShadowTree> m_shadowTree;72 OwnPtr<ElementShadow> m_shadow; 73 73 OwnPtr<NamedNodeMap> m_attributeMap; 74 74 … … 99 99 inline ElementRareData::~ElementRareData() 100 100 { 101 ASSERT(!m_shadow Tree);101 ASSERT(!m_shadow); 102 102 } 103 103 -
trunk/Source/WebCore/dom/ElementShadow.cpp
r116276 r116277 26 26 27 27 #include "config.h" 28 #include " ShadowTree.h"28 #include "ElementShadow.h" 29 29 30 30 #include "ContainerNodeAlgorithms.h" … … 40 40 namespace WebCore { 41 41 42 ShadowTree::ShadowTree()42 ElementShadow::ElementShadow() 43 43 : m_needsRecalculateContent(false) 44 44 { 45 45 } 46 46 47 ShadowTree::~ShadowTree()47 ElementShadow::~ElementShadow() 48 48 { 49 49 if (hasShadowRoot()) … … 69 69 } 70 70 71 void ShadowTree::addShadowRoot(Element* shadowHost, PassRefPtr<ShadowRoot> shadowRoot, ExceptionCode& ec)71 void ElementShadow::addShadowRoot(Element* shadowHost, PassRefPtr<ShadowRoot> shadowRoot, ExceptionCode& ec) 72 72 { 73 73 ASSERT(shadowHost); … … 90 90 } 91 91 92 void ShadowTree::removeAllShadowRoots()92 void ElementShadow::removeAllShadowRoots() 93 93 { 94 94 if (!hasShadowRoot()) … … 116 116 } 117 117 118 void ShadowTree::willRemove()118 void ElementShadow::willRemove() 119 119 { 120 120 ShadowRootVector roots(this); … … 123 123 } 124 124 125 void ShadowTree::setParentTreeScope(TreeScope* scope)125 void ElementShadow::setParentTreeScope(TreeScope* scope) 126 126 { 127 127 for (ShadowRoot* root = youngestShadowRoot(); root; root = root->olderShadowRoot()) … … 129 129 } 130 130 131 void ShadowTree::attach()131 void ElementShadow::attach() 132 132 { 133 133 // Children of m_selector is populated lazily in … … 143 143 } 144 144 145 void ShadowTree::attachHost(Element* host)145 void ElementShadow::attachHost(Element* host) 146 146 { 147 147 attach(); … … 150 150 } 151 151 152 void ShadowTree::detach()152 void ElementShadow::detach() 153 153 { 154 154 for (ShadowRoot* root = youngestShadowRoot(); root; root = root->olderShadowRoot()) { … … 158 158 } 159 159 160 void ShadowTree::detachHost(Element* host)160 void ElementShadow::detachHost(Element* host) 161 161 { 162 162 host->detachChildrenIfNeeded(); … … 165 165 } 166 166 167 InsertionPoint* ShadowTree::insertionPointFor(const Node* node) const167 InsertionPoint* ElementShadow::insertionPointFor(const Node* node) const 168 168 { 169 169 ASSERT(node && node->parentNode()); … … 182 182 } 183 183 184 HTMLContentSelection* ShadowTree::selectionFor(const Node* node) const184 HTMLContentSelection* ElementShadow::selectionFor(const Node* node) const 185 185 { 186 186 return m_selector.findFor(node); 187 187 } 188 188 189 void ShadowTree::reattach()189 void ElementShadow::reattach() 190 190 { 191 191 detach(); … … 193 193 } 194 194 195 bool ShadowTree::childNeedsStyleRecalc()195 bool ElementShadow::childNeedsStyleRecalc() 196 196 { 197 197 ASSERT(youngestShadowRoot()); … … 203 203 } 204 204 205 bool ShadowTree::needsStyleRecalc()205 bool ElementShadow::needsStyleRecalc() 206 206 { 207 207 ASSERT(youngestShadowRoot()); … … 213 213 } 214 214 215 void ShadowTree::recalcShadowTreeStyle(Node::StyleChange change)215 void ElementShadow::recalcStyle(Node::StyleChange change) 216 216 { 217 217 ShadowRoot* youngest = youngestShadowRoot(); … … 241 241 } 242 242 243 bool ShadowTree::needsReattachHostChildrenAndShadow()243 bool ElementShadow::needsReattachHostChildrenAndShadow() 244 244 { 245 245 return m_needsRecalculateContent || (youngestShadowRoot() && youngestShadowRoot()->hasInsertionPoint()); 246 246 } 247 247 248 void ShadowTree::hostChildrenChanged()248 void ElementShadow::hostChildrenChanged() 249 249 { 250 250 ASSERT(youngestShadowRoot()); … … 257 257 } 258 258 259 void ShadowTree::setNeedsReattachHostChildrenAndShadow()259 void ElementShadow::setNeedsReattachHostChildrenAndShadow() 260 260 { 261 261 m_needsRecalculateContent = true; … … 264 264 } 265 265 266 void ShadowTree::reattachHostChildrenAndShadow()266 void ElementShadow::reattachHostChildrenAndShadow() 267 267 { 268 268 ASSERT(youngestShadowRoot()); -
trunk/Source/WebCore/dom/ElementShadow.h
r116276 r116277 25 25 */ 26 26 27 #ifndef ShadowTree_h28 #define ShadowTree_h27 #ifndef ElementShadow_h 28 #define ElementShadow_h 29 29 30 30 #include "ExceptionCode.h" … … 45 45 class HTMLContentSelection; 46 46 47 class ShadowTree{47 class ElementShadow { 48 48 public: 49 ShadowTree();50 ~ ShadowTree();49 ElementShadow(); 50 ~ElementShadow(); 51 51 52 52 Element* host() const; … … 71 71 bool childNeedsStyleRecalc(); 72 72 bool needsStyleRecalc(); 73 void recalcS hadowTreeStyle(Node::StyleChange);73 void recalcStyle(Node::StyleChange); 74 74 void setNeedsReattachHostChildrenAndShadow(); 75 75 void clearNeedsReattachHostChildrenAndShadow(); … … 89 89 HTMLContentSelector m_selector; 90 90 bool m_needsRecalculateContent : 1; 91 WTF_MAKE_NONCOPYABLE( ShadowTree);91 WTF_MAKE_NONCOPYABLE(ElementShadow); 92 92 }; 93 93 94 inline bool ShadowTree::hasShadowRoot() const94 inline bool ElementShadow::hasShadowRoot() const 95 95 { 96 96 return !m_shadowRoots.isEmpty(); 97 97 } 98 98 99 inline ShadowRoot* ShadowTree::youngestShadowRoot() const99 inline ShadowRoot* ElementShadow::youngestShadowRoot() const 100 100 { 101 101 return m_shadowRoots.head(); 102 102 } 103 103 104 inline ShadowRoot* ShadowTree::oldestShadowRoot() const104 inline ShadowRoot* ElementShadow::oldestShadowRoot() const 105 105 { 106 106 return m_shadowRoots.tail(); 107 107 } 108 108 109 inline HTMLContentSelector& ShadowTree::selector()109 inline HTMLContentSelector& ElementShadow::selector() 110 110 { 111 111 return m_selector; 112 112 } 113 113 114 inline const HTMLContentSelector& ShadowTree::selector() const114 inline const HTMLContentSelector& ElementShadow::selector() const 115 115 { 116 116 return m_selector; 117 117 } 118 118 119 inline void ShadowTree::clearNeedsReattachHostChildrenAndShadow()119 inline void ElementShadow::clearNeedsReattachHostChildrenAndShadow() 120 120 { 121 121 m_needsRecalculateContent = false; 122 122 } 123 123 124 inline Element* ShadowTree::host() const124 inline Element* ElementShadow::host() const 125 125 { 126 126 ASSERT(hasShadowRoot()); … … 130 130 class ShadowRootVector : public Vector<RefPtr<ShadowRoot> > { 131 131 public: 132 explicit ShadowRootVector( ShadowTree* tree)132 explicit ShadowRootVector(ElementShadow* tree) 133 133 { 134 134 for (ShadowRoot* root = tree->youngestShadowRoot(); root; root = root->olderShadowRoot()) -
trunk/Source/WebCore/dom/Node.cpp
r116198 r116277 48 48 #include "DynamicNodeList.h" 49 49 #include "Element.h" 50 #include "ElementShadow.h" 50 51 #include "Event.h" 51 52 #include "EventContext.h" … … 86 87 #include "Settings.h" 87 88 #include "ShadowRoot.h" 88 #include "ShadowTree.h"89 89 #include "StaticNodeList.h" 90 90 #include "StorageEvent.h" … … 836 836 inline static ShadowRoot* oldestShadowRootFor(const Node* node) 837 837 { 838 return node->isElementNode() && toElement(node)->hasShadowRoot() ? toElement(node)->shadow Tree()->oldestShadowRoot() : 0;838 return node->isElementNode() && toElement(node)->hasShadowRoot() ? toElement(node)->shadow()->oldestShadowRoot() : 0; 839 839 } 840 840 -
trunk/Source/WebCore/dom/NodeRenderingContext.cpp
r115297 r116277 28 28 29 29 #include "ContainerNode.h" 30 #include "ElementShadow.h" 30 31 #include "FlowThreadController.h" 31 32 #include "HTMLContentElement.h" … … 39 40 #include "RenderView.h" 40 41 #include "ShadowRoot.h" 41 #include "ShadowTree.h"42 42 43 43 #if ENABLE(SVG) … … 56 56 , m_node(node) 57 57 , m_parentNodeForRenderingAndStyle(0) 58 , m_visualParentShadow Tree(0)58 , m_visualParentShadow(0) 59 59 , m_insertionPoint(0) 60 60 , m_style(0) … … 73 73 if (parent->isElementNode() || parent->isShadowRoot()) { 74 74 if (parent->isElementNode() && toElement(parent)->hasShadowRoot()) 75 m_visualParentShadow Tree = toElement(parent)->shadowTree();75 m_visualParentShadow = toElement(parent)->shadow(); 76 76 else if (parent->isShadowRoot()) 77 m_visualParentShadow Tree = toShadowRoot(parent)->tree();78 79 if (m_visualParentShadow Tree) {80 if ((m_insertionPoint = m_visualParentShadow Tree->insertionPointFor(m_node))) {77 m_visualParentShadow = toShadowRoot(parent)->owner(); 78 79 if (m_visualParentShadow) { 80 if ((m_insertionPoint = m_visualParentShadow->insertionPointFor(m_node))) { 81 81 if (toShadowRoot(m_insertionPoint->shadowTreeRootNode())->isUsedForRendering()) { 82 82 m_phase = AttachingDistributed; … … 119 119 , m_node(node) 120 120 , m_parentNodeForRenderingAndStyle(0) 121 , m_visualParentShadow Tree(0)121 , m_visualParentShadow(0) 122 122 , m_insertionPoint(0) 123 123 , m_style(style) … … 294 294 void NodeRenderingContext::hostChildrenChanged() 295 295 { 296 if (m_phase == AttachingNotDistributed && m_visualParentShadow Tree)297 m_visualParentShadow Tree->hostChildrenChanged();296 if (m_phase == AttachingNotDistributed && m_visualParentShadow) 297 m_visualParentShadow->hostChildrenChanged(); 298 298 } 299 299 -
trunk/Source/WebCore/dom/NodeRenderingContext.h
r112453 r116277 40 40 class RenderObject; 41 41 class RenderStyle; 42 class ShadowTree;42 class ElementShadow; 43 43 44 44 class NodeRenderingContext { … … 84 84 Node* m_node; 85 85 ContainerNode* m_parentNodeForRenderingAndStyle; 86 ShadowTree* m_visualParentShadowTree;86 ElementShadow* m_visualParentShadow; 87 87 InsertionPoint* m_insertionPoint; 88 88 RefPtr<RenderStyle> m_style; -
trunk/Source/WebCore/dom/ShadowRoot.cpp
r115215 r116277 33 33 #include "DocumentFragment.h" 34 34 #include "Element.h" 35 #include "ElementShadow.h" 35 36 #include "HTMLContentElement.h" 36 37 #include "HTMLContentSelector.h" … … 38 39 #include "InsertionPoint.h" 39 40 #include "NodeRareData.h" 40 #include "ShadowTree.h"41 41 #include "SVGNames.h" 42 42 #include "StyleResolver.h" … … 119 119 120 120 ec = 0; 121 element->ensureShadow Tree()->addShadowRoot(element, shadowRoot, ec);121 element->ensureShadow()->addShadowRoot(element, shadowRoot, ec); 122 122 if (ec) 123 123 return 0; … … 172 172 } 173 173 174 ShadowTree* ShadowRoot::tree() const174 ElementShadow* ShadowRoot::owner() const 175 175 { 176 176 if (host()) 177 return host()->shadow Tree();177 return host()->shadow(); 178 178 return 0; 179 179 } -
trunk/Source/WebCore/dom/ShadowRoot.h
r113667 r116277 42 42 class HTMLContentSelector; 43 43 class InsertionPoint; 44 class ShadowTree;44 class ElementShadow; 45 45 46 46 class ShadowRoot : public DocumentFragment, public TreeScope, public DoublyLinkedListNode<ShadowRoot> { … … 72 72 73 73 Element* host() const { return shadowHost(); } 74 ShadowTree* tree() const;74 ElementShadow* owner() const; 75 75 76 76 String innerHTML() const; -
trunk/Source/WebCore/dom/TreeScopeAdopter.cpp
r109290 r116277 27 27 28 28 #include "Document.h" 29 #include "ElementShadow.h" 29 30 #include "NodeRareData.h" 30 31 #include "ShadowRoot.h" 31 #include "ShadowTree.h"32 32 33 33 namespace WebCore { 34 34 35 static inline ShadowTree* shadowTreeFor(Node* node)35 static inline ElementShadow* shadowFor(Node* node) 36 36 { 37 return node->isElementNode() ? toElement(node)->shadow Tree() : 0;37 return node->isElementNode() ? toElement(node)->shadow() : 0; 38 38 } 39 39 … … 64 64 moveNodeToNewDocument(node, oldDocument, newDocument); 65 65 66 if ( ShadowTree* tree = shadowTreeFor(node)) {67 tree->setParentTreeScope(m_newScope);66 if (ElementShadow* shadow = shadowFor(node)) { 67 shadow->setParentTreeScope(m_newScope); 68 68 if (willMoveToNewDocument) 69 moveShadowT reeToNewDocument(tree, oldDocument, newDocument);69 moveShadowToNewDocument(shadow, oldDocument, newDocument); 70 70 } 71 71 } … … 76 76 for (Node* node = root; node; node = node->traverseNextNode(root)) { 77 77 moveNodeToNewDocument(node, oldDocument, newDocument); 78 if ( ShadowTree* tree = shadowTreeFor(node))79 moveShadowT reeToNewDocument(tree, oldDocument, newDocument);78 if (ElementShadow* shadow = shadowFor(node)) 79 moveShadowToNewDocument(shadow, oldDocument, newDocument); 80 80 } 81 81 } 82 82 83 inline void TreeScopeAdopter::moveShadowT reeToNewDocument(ShadowTree* tree, Document* oldDocument, Document* newDocument) const83 inline void TreeScopeAdopter::moveShadowToNewDocument(ElementShadow* shadow, Document* oldDocument, Document* newDocument) const 84 84 { 85 for (ShadowRoot* root = tree->youngestShadowRoot(); root; root = root->olderShadowRoot())85 for (ShadowRoot* root = shadow->youngestShadowRoot(); root; root = root->olderShadowRoot()) 86 86 moveTreeToNewDocument(root, oldDocument, newDocument); 87 87 } -
trunk/Source/WebCore/dom/TreeScopeAdopter.h
r109290 r116277 47 47 void moveTreeToNewDocument(Node*, Document* oldDocument, Document* newDocument) const; 48 48 void moveNodeToNewDocument(Node*, Document* oldDocument, Document* newDocument) const; 49 void moveShadowT reeToNewDocument(ShadowTree*, Document* oldDocument, Document* newDocument) const;49 void moveShadowToNewDocument(ElementShadow*, Document* oldDocument, Document* newDocument) const; 50 50 51 51 Node* m_toAdopt; -
trunk/Source/WebCore/html/ColorInputType.cpp
r115704 r116277 35 35 #include "Chrome.h" 36 36 #include "Color.h" 37 #include "ElementShadow.h" 37 38 #include "HTMLDivElement.h" 38 39 #include "HTMLInputElement.h" … … 40 41 #include "ScriptController.h" 41 42 #include "ShadowRoot.h" 42 #include "ShadowTree.h"43 43 44 44 #include <wtf/PassOwnPtr.h> … … 118 118 wrapperElement->appendChild(colorSwatch.release(), ec); 119 119 ASSERT(!ec); 120 element()->shadow Tree()->oldestShadowRoot()->appendChild(wrapperElement.release(), ec);120 element()->shadow()->oldestShadowRoot()->appendChild(wrapperElement.release(), ec); 121 121 ASSERT(!ec); 122 122 … … 192 192 HTMLElement* ColorInputType::shadowColorSwatch() const 193 193 { 194 ShadowRoot* shadow = element()->shadow Tree()->oldestShadowRoot();194 ShadowRoot* shadow = element()->shadow()->oldestShadowRoot(); 195 195 return shadow ? toHTMLElement(shadow->firstChild()->firstChild()) : 0; 196 196 } -
trunk/Source/WebCore/html/FileInputType.cpp
r111569 r116277 24 24 25 25 #include "Chrome.h" 26 #include "ElementShadow.h" 26 27 #include "Event.h" 27 28 #include "File.h" … … 37 38 #include "ScriptController.h" 38 39 #include "ShadowRoot.h" 39 #include "ShadowTree.h"40 40 #include <wtf/PassOwnPtr.h> 41 41 #include <wtf/text/StringBuilder.h> … … 295 295 ASSERT(element()->hasShadowRoot()); 296 296 ExceptionCode ec = 0; 297 element()->shadow Tree()->oldestShadowRoot()->appendChild(element()->multiple() ? UploadButtonElement::createForMultiple(element()->document()): UploadButtonElement::create(element()->document()), ec);297 element()->shadow()->oldestShadowRoot()->appendChild(element()->multiple() ? UploadButtonElement::createForMultiple(element()->document()): UploadButtonElement::create(element()->document()), ec); 298 298 } 299 299 … … 301 301 { 302 302 ASSERT(element()->hasShadowRoot()); 303 UploadButtonElement* button = static_cast<UploadButtonElement*>(element()->shadow Tree()->oldestShadowRoot()->firstChild());303 UploadButtonElement* button = static_cast<UploadButtonElement*>(element()->shadow()->oldestShadowRoot()->firstChild()); 304 304 if (button) 305 305 button->setValue(element()->multiple() ? fileButtonChooseMultipleFilesLabel() : fileButtonChooseFileLabel()); -
trunk/Source/WebCore/html/HTMLDetailsElement.cpp
r109721 r116277 24 24 #if ENABLE(DETAILS) 25 25 26 #include "ElementShadow.h" 26 27 #include "HTMLContentElement.h" 27 28 #include "HTMLNames.h" … … 32 33 #include "RenderBlock.h" 33 34 #include "ShadowRoot.h" 34 #include "ShadowTree.h"35 35 #include "Text.h" 36 36 … … 125 125 } 126 126 127 return static_cast<DetailsSummaryElement*>(shadow Tree()->oldestShadowRoot()->firstChild())->fallbackSummary();127 return static_cast<DetailsSummaryElement*>(shadow()->oldestShadowRoot()->firstChild())->fallbackSummary(); 128 128 } 129 129 -
trunk/Source/WebCore/html/HTMLKeygenElement.cpp
r111659 r116277 28 28 #include "Attribute.h" 29 29 #include "Document.h" 30 #include "ElementShadow.h" 30 31 #include "FormDataList.h" 31 32 #include "HTMLNames.h" … … 34 35 #include "SSLKeyGenerator.h" 35 36 #include "ShadowRoot.h" 36 #include "ShadowTree.h"37 37 #include "Text.h" 38 38 #include <wtf/StdLibExtras.h> … … 133 133 { 134 134 ASSERT(hasShadowRoot()); 135 ShadowRoot* shadow = shadowTree()->oldestShadowRoot();136 return shadow ? toHTMLSelectElement(shadow->firstChild()) : 0;135 ShadowRoot* root = this->shadow()->oldestShadowRoot(); 136 return root ? toHTMLSelectElement(root->firstChild()) : 0; 137 137 } 138 138 -
trunk/Source/WebCore/html/HTMLMediaElement.cpp
r115896 r116277 41 41 #include "CSSValueKeywords.h" 42 42 #include "DocumentLoader.h" 43 #include "ElementShadow.h" 43 44 #include "Event.h" 44 45 #include "EventNames.h" … … 76 77 #include "Settings.h" 77 78 #include "ShadowRoot.h" 78 #include "ShadowTree.h"79 79 #include "TimeRanges.h" 80 80 #include "UUID.h" … … 4070 4070 MediaControls* HTMLMediaElement::mediaControls() 4071 4071 { 4072 return toMediaControls(shadow Tree()->oldestShadowRoot()->firstChild());4072 return toMediaControls(shadow()->oldestShadowRoot()->firstChild()); 4073 4073 } 4074 4074 … … 4078 4078 return false; 4079 4079 4080 Node* node = shadow Tree()->oldestShadowRoot()->firstChild();4080 Node* node = shadow()->oldestShadowRoot()->firstChild(); 4081 4081 return node && node->isMediaControls(); 4082 4082 } -
trunk/Source/WebCore/html/HTMLSummaryElement.cpp
r110151 r116277 25 25 26 26 #include "DetailsMarkerControl.h" 27 #include "ElementShadow.h" 27 28 #include "HTMLContentElement.h" 28 29 #include "HTMLDetailsElement.h" … … 34 35 #include "RenderBlock.h" 35 36 #include "ShadowRoot.h" 36 #include "ShadowTree.h"37 37 38 38 namespace WebCore { -
trunk/Source/WebCore/html/HTMLTextAreaElement.cpp
r110320 r116277 31 31 #include "CSSValueKeywords.h" 32 32 #include "Document.h" 33 #include "ElementShadow.h" 33 34 #include "Event.h" 34 35 #include "EventNames.h" … … 39 40 #include "RenderTextControlMultiLine.h" 40 41 #include "ShadowRoot.h" 41 #include "ShadowTree.h"42 42 #include "Text.h" 43 43 #include "TextControlInnerElements.h" … … 295 295 HTMLElement* HTMLTextAreaElement::innerTextElement() const 296 296 { 297 Node* node = shadow Tree()->oldestShadowRoot()->firstChild();297 Node* node = shadow()->oldestShadowRoot()->firstChild(); 298 298 ASSERT(!node || node->hasTagName(divTag)); 299 299 return toHTMLElement(node); … … 473 473 if (placeholderText.isEmpty()) { 474 474 if (m_placeholder) { 475 shadow Tree()->oldestShadowRoot()->removeChild(m_placeholder.get(), ec);475 shadow()->oldestShadowRoot()->removeChild(m_placeholder.get(), ec); 476 476 ASSERT(!ec); 477 477 m_placeholder.clear(); … … 482 482 m_placeholder = HTMLDivElement::create(document()); 483 483 m_placeholder->setShadowPseudoId("-webkit-input-placeholder"); 484 shadow Tree()->oldestShadowRoot()->insertBefore(m_placeholder, shadowTree()->oldestShadowRoot()->firstChild()->nextSibling(), ec);484 shadow()->oldestShadowRoot()->insertBefore(m_placeholder, shadow()->oldestShadowRoot()->firstChild()->nextSibling(), ec); 485 485 ASSERT(!ec); 486 486 } -
trunk/Source/WebCore/html/InputType.cpp
r115704 r116277 36 36 #include "DateTimeInputType.h" 37 37 #include "DateTimeLocalInputType.h" 38 #include "ElementShadow.h" 38 39 #include "EmailInputType.h" 39 40 #include "ExceptionCode.h" … … 60 61 #include "SearchInputType.h" 61 62 #include "ShadowRoot.h" 62 #include "ShadowTree.h"63 63 #include "SubmitInputType.h" 64 64 #include "TelephoneInputType.h" … … 395 395 return; 396 396 397 ShadowRoot* root = element()->shadow Tree()->oldestShadowRoot();397 ShadowRoot* root = element()->shadow()->oldestShadowRoot(); 398 398 ASSERT(root); 399 399 root->removeAllChildren(); -
trunk/Source/WebCore/html/RangeInputType.cpp
r115704 r116277 34 34 35 35 #include "AXObjectCache.h" 36 #include "ElementShadow.h" 36 37 #include "HTMLDivElement.h" 37 38 #include "HTMLInputElement.h" … … 43 44 #include "RenderSlider.h" 44 45 #include "ShadowRoot.h" 45 #include "ShadowTree.h"46 46 #include "SliderThumbElement.h" 47 47 #include "StepRange.h" … … 162 162 return; 163 163 ASSERT(element()->hasShadowRoot()); 164 if (targetNode != element() && !targetNode->isDescendantOf(element()->shadow Tree()->oldestShadowRoot()))164 if (targetNode != element() && !targetNode->isDescendantOf(element()->shadow()->oldestShadowRoot())) 165 165 return; 166 166 SliderThumbElement* thumb = sliderThumbElementOf(element()); … … 248 248 container->appendChild(track.release(), ec); 249 249 container->appendChild(TrackLimiterElement::create(document), ec); 250 element()->shadow Tree()->oldestShadowRoot()->appendChild(container.release(), ec);250 element()->shadow()->oldestShadowRoot()->appendChild(container.release(), ec); 251 251 } 252 252 -
trunk/Source/WebCore/html/TextFieldInputType.cpp
r115704 r116277 36 36 #include "Chrome.h" 37 37 #include "ChromeClient.h" 38 #include "ElementShadow.h" 38 39 #include "FormDataList.h" 39 40 #include "Frame.h" … … 46 47 #include "RenderTheme.h" 47 48 #include "ShadowRoot.h" 48 #include "ShadowTree.h"49 49 #include "TextControlInnerElements.h" 50 50 #include "TextEvent.h" … … 237 237 m_innerText = TextControlInnerTextElement::create(document); 238 238 if (!createsContainer) { 239 element()->shadow Tree()->oldestShadowRoot()->appendChild(m_innerText, ec);240 return; 241 } 242 243 ShadowRoot* shadowRoot = element()->shadow Tree()->oldestShadowRoot();239 element()->shadow()->oldestShadowRoot()->appendChild(m_innerText, ec); 240 return; 241 } 242 243 ShadowRoot* shadowRoot = element()->shadow()->oldestShadowRoot(); 244 244 m_container = HTMLDivElement::create(document); 245 245 m_container->setShadowPseudoId("-webkit-textfield-decoration-container"); … … 406 406 m_placeholder = HTMLDivElement::create(element()->document()); 407 407 m_placeholder->setShadowPseudoId("-webkit-input-placeholder"); 408 element()->shadow Tree()->oldestShadowRoot()->insertBefore(m_placeholder, m_container ? m_container->nextSibling() : innerTextElement()->nextSibling(), ec);408 element()->shadow()->oldestShadowRoot()->insertBefore(m_placeholder, m_container ? m_container->nextSibling() : innerTextElement()->nextSibling(), ec); 409 409 ASSERT(!ec); 410 410 } -
trunk/Source/WebCore/html/ValidationMessage.cpp
r115215 r116277 34 34 #include "CSSPropertyNames.h" 35 35 #include "CSSValueKeywords.h" 36 #include "ElementShadow.h" 36 37 #include "ExceptionCodePlaceholder.h" 37 38 #include "FormAssociatedElement.h" … … 44 45 #include "Settings.h" 45 46 #include "ShadowRoot.h" 46 #include "ShadowTree.h"47 47 #include "StyleResolver.h" 48 48 #include "Text.h" … … 188 188 HTMLElement* host = toHTMLElement(m_element); 189 189 ExceptionCode ec; 190 host->shadow Tree()->oldestShadowRoot()->removeChild(m_bubble.get(), ec);190 host->shadow()->oldestShadowRoot()->removeChild(m_bubble.get(), ec); 191 191 m_bubble = 0; 192 192 } -
trunk/Source/WebCore/html/shadow/HTMLContentElement.cpp
r110014 r116277 29 29 30 30 #include "ContentSelectorQuery.h" 31 #include "ElementShadow.h" 31 32 #include "HTMLContentSelector.h" 32 33 #include "HTMLNames.h" … … 34 35 #include "RuntimeEnabledFeatures.h" 35 36 #include "ShadowRoot.h" 36 #include "ShadowTree.h"37 37 #include <wtf/StdLibExtras.h> 38 38 … … 91 91 if (attr->name() == selectAttr) { 92 92 if (ShadowRoot* root = toShadowRoot(shadowTreeRootNode())) 93 root-> tree()->setNeedsReattachHostChildrenAndShadow();93 root->owner()->setNeedsReattachHostChildrenAndShadow(); 94 94 } else 95 95 InsertionPoint::parseAttribute(attr); -
trunk/Source/WebCore/html/shadow/InsertionPoint.cpp
r114334 r116277 32 32 #include "InsertionPoint.h" 33 33 34 #include "ElementShadow.h" 34 35 #include "ShadowRoot.h" 35 #include "ShadowTree.h"36 36 37 37 namespace WebCore { … … 52 52 ShadowRoot* root = toShadowRoot(treeScope()->rootNode()); 53 53 if (doesSelectFromHostChildren()) { 54 distributeHostChildren(root-> tree());54 distributeHostChildren(root->owner()); 55 55 attachDistributedNode(); 56 56 } else if (!root->olderShadowRoot()->assignedTo()) { … … 68 68 ShadowRoot* root = toShadowRoot(shadowTreeRootNode()); 69 69 if (root && isActive()) { 70 ShadowTree* tree = root->tree();70 ElementShadow* shadow = root->owner(); 71 71 72 72 if (doesSelectFromHostChildren()) 73 clearDistribution( tree);73 clearDistribution(shadow); 74 74 else if (ShadowRoot* assignedShadowRoot = assignedFrom()) 75 75 clearAssignment(assignedShadowRoot); … … 77 77 // When shadow element is detached, shadow tree should be recreated to re-calculate selector for 78 78 // other insertion points. 79 tree->setNeedsReattachHostChildrenAndShadow();79 shadow->setNeedsReattachHostChildrenAndShadow(); 80 80 } 81 81 … … 118 118 } 119 119 120 inline void InsertionPoint::distributeHostChildren( ShadowTree* tree)120 inline void InsertionPoint::distributeHostChildren(ElementShadow* shadow) 121 121 { 122 if (! tree->selector().isSelecting()) {122 if (!shadow->selector().isSelecting()) { 123 123 // If HTMLContentSelector is not int selecting phase, it means InsertionPoint is attached from 124 // non- ShadowTree node. To run distribute algorithm, we have to reattach ShadowTree.125 tree->setNeedsReattachHostChildrenAndShadow();124 // non-ElementShadow node. To run distribute algorithm, we have to reattach ElementShadow. 125 shadow->setNeedsReattachHostChildrenAndShadow(); 126 126 return; 127 127 } 128 128 129 tree->selector().populateIfNecessary(tree->host());130 tree->selector().unselect(&m_selections);131 tree->selector().select(this, &m_selections);129 shadow->selector().populateIfNecessary(shadow->host()); 130 shadow->selector().unselect(&m_selections); 131 shadow->selector().select(this, &m_selections); 132 132 } 133 133 134 inline void InsertionPoint::clearDistribution( ShadowTree* tree)134 inline void InsertionPoint::clearDistribution(ElementShadow* shadow) 135 135 { 136 tree->selector().unselect(&m_selections);136 shadow->selector().unselect(&m_selections); 137 137 } 138 138 -
trunk/Source/WebCore/html/shadow/InsertionPoint.h
r114334 r116277 63 63 64 64 private: 65 void distributeHostChildren( ShadowTree*);66 void clearDistribution( ShadowTree*);65 void distributeHostChildren(ElementShadow*); 66 void clearDistribution(ElementShadow*); 67 67 void attachDistributedNode(); 68 68 -
trunk/Source/WebCore/html/shadow/SliderThumbElement.cpp
r112547 r116277 35 35 36 36 #include "CSSValueKeywords.h" 37 #include "ElementShadow.h" 37 38 #include "Event.h" 38 39 #include "Frame.h" … … 44 45 #include "RenderTheme.h" 45 46 #include "ShadowRoot.h" 46 #include "ShadowTree.h"47 47 #include "StepRange.h" 48 48 #include <wtf/MathExtras.h> … … 68 68 { 69 69 ASSERT(node); 70 ShadowRoot* shadow = node->toInputElement()->shadow Tree()->oldestShadowRoot();70 ShadowRoot* shadow = node->toInputElement()->shadow()->oldestShadowRoot(); 71 71 ASSERT(shadow); 72 72 Node* thumb = shadow->firstChild()->firstChild()->firstChild(); … … 145 145 RenderObject* trackRenderer = node()->firstChild()->renderer(); 146 146 if (!isVertical && input->renderer()->isSlider() && !inputHeight.isFixed() && !inputHeight.isPercent()) { 147 RenderObject* thumbRenderer = input->shadow Tree()->oldestShadowRoot()->firstChild()->firstChild()->firstChild()->renderer();147 RenderObject* thumbRenderer = input->shadow()->oldestShadowRoot()->firstChild()->firstChild()->firstChild()->renderer(); 148 148 if (thumbRenderer) { 149 149 style()->setHeight(thumbRenderer->style()->height()); … … 360 360 ASSERT(node); 361 361 ASSERT(node->toInputElement()->hasShadowRoot()); 362 ShadowRoot* shadow = node->toInputElement()->shadow Tree()->oldestShadowRoot();362 ShadowRoot* shadow = node->toInputElement()->shadow()->oldestShadowRoot(); 363 363 ASSERT(shadow); 364 364 Node* limiter = shadow->firstChild()->lastChild(); -
trunk/Source/WebCore/html/shadow/TextFieldDecorationElement.cpp
r112830 r116277 34 34 #include "CSSPropertyNames.h" 35 35 #include "CSSValueKeywords.h" 36 #include "ElementShadow.h" 36 37 #include "Event.h" 37 38 #include "HTMLInputElement.h" … … 40 41 #include "RenderImage.h" 41 42 #include "ShadowRoot.h" 42 #include "ShadowTree.h"43 43 44 44 namespace WebCore { … … 69 69 static inline void getDecorationRootAndDecoratedRoot(HTMLInputElement* input, ShadowRoot*& decorationRoot, ShadowRoot*& decoratedRoot) 70 70 { 71 ShadowRoot* existingRoot = input->shadow Tree()->youngestShadowRoot();71 ShadowRoot* existingRoot = input->shadow()->youngestShadowRoot(); 72 72 ShadowRoot* newRoot = 0; 73 73 while (existingRoot->childNodeCount() == 1 && existingRoot->firstChild()->hasTagName(shadowTag)) { -
trunk/Source/WebCore/inspector/InspectorDOMAgent.cpp
r115215 r116277 54 54 #include "DocumentFragment.h" 55 55 #include "DocumentType.h" 56 #include "ElementShadow.h" 56 57 #include "Event.h" 57 58 #include "EventContext.h" … … 83 84 #include "Settings.h" 84 85 #include "ShadowRoot.h" 85 #include "ShadowTree.h"86 86 #include "StylePropertySet.h" 87 87 #include "StyleResolver.h" … … 342 342 343 343 if (node->isElementNode() && toElement(node)->hasShadowRoot()) { 344 for (ShadowRoot* root = toElement(node)->shadow Tree()->youngestShadowRoot(); root; root = root->olderShadowRoot())344 for (ShadowRoot* root = toElement(node)->shadow()->youngestShadowRoot(); root; root = root->olderShadowRoot()) 345 345 unbind(root, nodesMap); 346 346 } … … 1229 1229 if (element->hasShadowRoot()) { 1230 1230 RefPtr<TypeBuilder::Array<TypeBuilder::DOM::Node> > shadowRoots = TypeBuilder::Array<TypeBuilder::DOM::Node>::create(); 1231 for (ShadowRoot* root = element->shadow Tree()->youngestShadowRoot(); root; root = root->olderShadowRoot())1231 for (ShadowRoot* root = element->shadow()->youngestShadowRoot(); root; root = root->olderShadowRoot()) 1232 1232 shadowRoots->addItem(buildObjectForNode(root, 0, nodesMap)); 1233 1233 value->setShadowRoots(shadowRoots); -
trunk/Source/WebCore/page/FocusController.cpp
r113990 r116277 35 35 #include "EditorClient.h" 36 36 #include "Element.h" 37 #include "ElementShadow.h" 37 38 #include "Event.h" 38 39 #include "EventHandler.h" … … 55 56 #include "Settings.h" 56 57 #include "ShadowRoot.h" 57 #include "ShadowTree.h"58 58 #include "SpatialNavigation.h" 59 59 #include "Widget.h" … … 127 127 TreeScope* scope = node->treeScope(); 128 128 if (scope->rootNode()->isShadowRoot()) 129 return FocusScope(toShadowRoot(scope->rootNode())-> tree()->youngestShadowRoot());129 return FocusScope(toShadowRoot(scope->rootNode())->owner()->youngestShadowRoot()); 130 130 return FocusScope(scope); 131 131 } … … 134 134 { 135 135 ASSERT(isShadowHost(node)); 136 return FocusScope(toElement(node)->shadow Tree()->youngestShadowRoot());136 return FocusScope(toElement(node)->shadow()->youngestShadowRoot()); 137 137 } 138 138 -
trunk/Source/WebCore/rendering/RenderFileUploadControl.cpp
r110761 r116277 22 22 #include "RenderFileUploadControl.h" 23 23 24 #include "ElementShadow.h" 24 25 #include "FileList.h" 25 26 #include "GraphicsContext.h" … … 33 34 #include "RenderTheme.h" 34 35 #include "ShadowRoot.h" 35 #include "ShadowTree.h"36 36 #include "TextRun.h" 37 37 #include "VisiblePosition.h" … … 226 226 ASSERT(input->hasShadowRoot()); 227 227 228 Node* buttonNode = input->shadow Tree()->oldestShadowRoot()->firstChild();228 Node* buttonNode = input->shadow()->oldestShadowRoot()->firstChild(); 229 229 return buttonNode && buttonNode->isHTMLElement() && buttonNode->hasTagName(inputTag) ? static_cast<HTMLInputElement*>(buttonNode) : 0; 230 230 } -
trunk/Source/WebCore/svg/SVGTRefElement.cpp
r115053 r116277 25 25 #include "SVGTRefElement.h" 26 26 27 #include "ElementShadow.h" 27 28 #include "EventListener.h" 28 29 #include "EventNames.h" … … 33 34 #include "RenderSVGResource.h" 34 35 #include "ShadowRoot.h" 35 #include "ShadowTree.h"36 36 #include "SVGDocument.h" 37 37 #include "SVGElementInstance.h" … … 166 166 167 167 ASSERT(hasShadowRoot()); 168 ShadowRoot* root = shadow Tree()->oldestShadowRoot();168 ShadowRoot* root = shadow()->oldestShadowRoot(); 169 169 if (!root->firstChild()) 170 170 root->appendChild(SVGShadowText::create(document(), textContent), ASSERT_NO_EXCEPTION); … … 182 182 183 183 ASSERT(hasShadowRoot()); 184 Node* container = shadow Tree()->oldestShadowRoot()->firstChild();184 Node* container = shadow()->oldestShadowRoot()->firstChild(); 185 185 if (container) 186 186 container->setTextContent(emptyContent, ignore); -
trunk/Source/WebCore/svg/SVGUseElement.cpp
r115730 r116277 31 31 #include "CachedResourceLoader.h" 32 32 #include "Document.h" 33 #include "ElementShadow.h" 33 34 #include "Event.h" 34 35 #include "EventListener.h" … … 39 40 #include "RenderSVGTransformableContainer.h" 40 41 #include "ShadowRoot.h" 41 #include "ShadowTree.h"42 42 #include "SVGElementInstance.h" 43 43 #include "SVGElementRareData.h" … … 394 394 { 395 395 // FIXME: We should try to optimize this, to at least allow partial reclones. 396 if (ShadowRoot* shadowTreeRootElement = shadow Tree()->oldestShadowRoot())396 if (ShadowRoot* shadowTreeRootElement = shadow()->oldestShadowRoot()) 397 397 shadowTreeRootElement->removeAllChildren(); 398 398 … … 481 481 ASSERT(m_targetElementInstance->correspondingElement() == target); 482 482 483 ShadowRoot* shadowTreeRootElement = shadow Tree()->oldestShadowRoot();483 ShadowRoot* shadowTreeRootElement = shadow()->oldestShadowRoot(); 484 484 ASSERT(shadowTreeRootElement); 485 485 … … 696 696 removeDisallowedElementsFromSubtree(newChild.get()); 697 697 698 shadow Tree()->oldestShadowRoot()->appendChild(newChild.release());698 shadow()->oldestShadowRoot()->appendChild(newChild.release()); 699 699 } 700 700 -
trunk/Source/WebCore/testing/Internals.cpp
r116246 r116277 36 36 #include "DocumentMarkerController.h" 37 37 #include "Element.h" 38 #include "ElementShadow.h" 38 39 #include "ExceptionCode.h" 39 40 #include "Frame.h" … … 58 59 #include "Settings.h" 59 60 #include "ShadowRoot.h" 60 #include "ShadowTree.h"61 61 #include "SpellChecker.h" 62 62 #include "TextIterator.h" … … 304 304 305 305 if (host->hasShadowRoot()) 306 return host->shadow Tree()->youngestShadowRoot();306 return host->shadow()->youngestShadowRoot(); 307 307 308 308 return ShadowRoot::create(host, ec).get(); … … 326 326 return 0; 327 327 328 return host->shadow Tree()->youngestShadowRoot();328 return host->shadow()->youngestShadowRoot(); 329 329 } 330 330 … … 339 339 return 0; 340 340 341 return host->shadow Tree()->oldestShadowRoot();341 return host->shadow()->oldestShadowRoot(); 342 342 } 343 343 … … 370 370 371 371 if (host->hasShadowRoot()) 372 host->shadow Tree()->removeAllShadowRoots();372 host->shadow()->removeAllShadowRoots(); 373 373 } 374 374 -
trunk/Source/WebKit2/ChangeLog
r116246 r116277 1 2012-05-06 MORITA Hajime <morrita@google.com> 2 3 https://bugs.webkit.org/show_bug.cgi?id=85265 4 [Shadow DOM] ShadowTree needs a better name 5 6 Reviewed by Dimitri Glazkov. 7 8 * win/WebKit2.def: Updated exported symbol names according to the rename. 9 * win/WebKit2CFLite.def: Updated exported symbol names according to the rename. 10 1 11 2012-05-06 Gyuyoung Kim <gyuyoung.kim@samsung.com> 2 12 -
trunk/Source/WebKit2/win/WebKit2.def
r116246 r116277 202 202 ?placeholderShouldBeVisible@HTMLTextFormControlElement@WebCore@@QBE_NXZ 203 203 ?rangeFromLocationAndLength@TextIterator@WebCore@@SA?AV?$PassRefPtr@VRange@WebCore@@@WTF@@PAVElement@2@HH_N@Z 204 ?removeAllShadowRoots@ ShadowTree@WebCore@@QAEXXZ204 ?removeAllShadowRoots@ElementShadow@WebCore@@QAEXXZ 205 205 ?remove@String@WTF@@QAEXIH@Z 206 206 ?reverseFind@StringImpl@WTF@@QAEI_WI@Z … … 230 230 ?settings@Frame@WebCore@@QBEPAVSettings@2@XZ 231 231 ?setFixedElementsLayoutRelativeToFrame@Settings@WebCore@@QAEX_N@Z 232 ?shadow Tree@Element@WebCore@@QBEPAVShadowTree@2@XZ232 ?shadow@Element@WebCore@@QBEPAVElementShadow@2@XZ 233 233 ?substring@String@WTF@@QBE?AV12@II@Z 234 234 ?suggestedValue@HTMLInputElement@WebCore@@QBEABVString@WTF@@XZ -
trunk/Source/WebKit2/win/WebKit2CFLite.def
r115559 r116277 195 195 ?placeholderShouldBeVisible@HTMLTextFormControlElement@WebCore@@QBE_NXZ 196 196 ?rangeFromLocationAndLength@TextIterator@WebCore@@SA?AV?$PassRefPtr@VRange@WebCore@@@WTF@@PAVElement@2@HH_N@Z 197 ?removeAllShadowRoots@ ShadowTree@WebCore@@QAEXXZ197 ?removeAllShadowRoots@ElementShadow@WebCore@@QAEXXZ 198 198 ?remove@String@WTF@@QAEXIH@Z 199 199 ?reverseFind@StringImpl@WTF@@QAEI_WI@Z … … 223 223 ?settings@Frame@WebCore@@QBEPAVSettings@2@XZ 224 224 ?setFixedElementsLayoutRelativeToFrame@Settings@WebCore@@QAEX_N@Z 225 ?shadow Tree@Element@WebCore@@QBEPAVShadowTree@2@XZ225 ?shadow@Element@WebCore@@QBEPAVElementShadow@2@XZ 226 226 ?substring@String@WTF@@QBE?AV12@II@Z 227 227 ?suggestedValue@HTMLInputElement@WebCore@@QBEABVString@WTF@@XZ -
trunk/Source/autotools/symbols.filter
r116246 r116277 44 44 _ZN7WebCore10ClientRectC1ERKNS_7IntRectE; 45 45 _ZN7WebCore10ShadowRoot6createEPNS_7ElementERi; 46 _ZN7WebCore1 0ShadowTree20removeAllShadowRootsEv;46 _ZN7WebCore13ElementShadow20removeAllShadowRootsEv; 47 47 _ZN7WebCore11EventTarget17toGeneratedStreamEv; 48 48 _ZN7WebCore11EventTarget8toStreamEv; … … 99 99 _ZNK7WebCore5Frame8settingsEv; 100 100 _ZNK7WebCore6JSNode21pushEventHandlerScopeEPN3JSC9ExecStateEPNS1_14ScopeChainNodeE; 101 _ZNK7WebCore7Element 10shadowTreeEv;101 _ZNK7WebCore7Element6shadowEv; 102 102 _ZNK7WebCore7Element13hasShadowRootEv; 103 103 _ZNK7WebCore8Document4pageEv;
Note: See TracChangeset
for help on using the changeset viewer.