Index: Source/core/dom/Document.cpp |
diff --git a/Source/core/dom/Document.cpp b/Source/core/dom/Document.cpp |
index 996a28e911bf13003b2f50d01cf4cf77b99a505b..acd121218ce2fad1856b23f65329ea06d566d75a 100644 |
--- a/Source/core/dom/Document.cpp |
+++ b/Source/core/dom/Document.cpp |
@@ -5734,6 +5734,20 @@ void Document::getTransitionElementData(Vector<TransitionElementData>& elementDa |
} |
} |
+void Document::hideTransitionElements(const String& cssSelector) |
+{ |
+ TrackExceptionState exceptionState; |
+ RefPtr<StaticNodeList> nodeList = querySelectorAll(AtomicString(cssSelector), exceptionState); |
abarth-chromium
2014/07/29 17:07:15
If we're going to use cssSelector as an AtomicStri
oystein (OOO til 10th of July)
2014/07/30 22:11:51
Done.
|
+ if (nodeList && !exceptionState.hadException()) { |
+ unsigned nodeListLength = nodeList->length(); |
+ |
+ for (unsigned nodeIndex = 0; nodeIndex < nodeListLength; ++nodeIndex) { |
+ Node* node = nodeList->item(nodeIndex); |
+ toElement(node)->setInlineStyleProperty(CSSPropertyDisplay, CSSValueNone); |
+ } |
+ } |
+} |
+ |
bool Document::hasFocus() const |
{ |
Page* page = this->page(); |