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

Unified Diff: Source/core/dom/Document.cpp

Issue 465483002: Merge NamedNodesCollection and StaticNodeList classes (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase Created 6 years, 4 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/dom/ContainerNode.cpp ('k') | Source/core/dom/MutationRecord.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/Document.cpp
diff --git a/Source/core/dom/Document.cpp b/Source/core/dom/Document.cpp
index 4884d90ac84c4aaded799d3cf75fce1855b06286..31fa3eaf232ae0fcb181779ffe66f2b9ab14d0ea 100644
--- a/Source/core/dom/Document.cpp
+++ b/Source/core/dom/Document.cpp
@@ -5692,18 +5692,18 @@ void Document::getTransitionElementData(Vector<TransitionElementData>& elementDa
TrackExceptionState exceptionState;
AtomicString selector(metaElementContents.substring(0, firstSemicolon));
- RefPtrWillBeRawPtr<StaticNodeList> nodeList = querySelectorAll(selector, exceptionState);
- if (!nodeList || exceptionState.hadException())
+ RefPtrWillBeRawPtr<StaticElementList> elementList = querySelectorAll(selector, exceptionState);
+ if (!elementList || exceptionState.hadException())
continue;
- unsigned nodeListLength = nodeList->length();
+ unsigned nodeListLength = elementList->length();
if (!nodeListLength)
continue;
StringBuilder markup;
for (unsigned nodeIndex = 0; nodeIndex < nodeListLength; ++nodeIndex) {
- Node* node = nodeList->item(nodeIndex);
- markup.append(createStyledMarkupForNavigationTransition(node));
+ Element* element = elementList->item(nodeIndex);
+ markup.append(createStyledMarkupForNavigationTransition(element));
}
TransitionElementData newElements;
@@ -5717,13 +5717,13 @@ void Document::getTransitionElementData(Vector<TransitionElementData>& elementDa
void Document::hideTransitionElements(const AtomicString& cssSelector)
{
TrackExceptionState exceptionState;
- RefPtrWillBeRawPtr<StaticNodeList> nodeList = querySelectorAll(cssSelector, exceptionState);
- if (nodeList && !exceptionState.hadException()) {
- unsigned nodeListLength = nodeList->length();
+ RefPtrWillBeRawPtr<StaticElementList> elementList = querySelectorAll(cssSelector, exceptionState);
+ if (elementList && !exceptionState.hadException()) {
+ unsigned nodeListLength = elementList->length();
for (unsigned nodeIndex = 0; nodeIndex < nodeListLength; ++nodeIndex) {
- Node* node = nodeList->item(nodeIndex);
- toElement(node)->setInlineStyleProperty(CSSPropertyDisplay, CSSValueNone);
+ Element* element = elementList->item(nodeIndex);
+ element->setInlineStyleProperty(CSSPropertyDisplay, CSSValueNone);
}
}
}
« no previous file with comments | « Source/core/dom/ContainerNode.cpp ('k') | Source/core/dom/MutationRecord.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698