Index: Source/core/dom/Document.cpp |
diff --git a/Source/core/dom/Document.cpp b/Source/core/dom/Document.cpp |
index a4c18e6c55a4ec94077bae9da86bac54677d1fde..7621cecde680a0dc88fdf64879540d592afcc5c8 100644 |
--- a/Source/core/dom/Document.cpp |
+++ b/Source/core/dom/Document.cpp |
@@ -5741,6 +5741,20 @@ void Document::getTransitionElementData(Vector<TransitionElementData>& elementDa |
} |
} |
+void Document::hideTransitionElements(const AtomicString& cssSelector) |
+{ |
+ TrackExceptionState exceptionState; |
+ RefPtr<StaticNodeList> nodeList = querySelectorAll(cssSelector, exceptionState); |
+ 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(); |