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

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

Issue 316053007: Navigation transitions: Added notifyTransitionsShown and setupTransitionsView to WebLocalFrame (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Review fix Created 6 years, 5 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/Document.h ('k') | Source/core/loader/DocumentLoader.cpp » ('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 5c7f65d37cf2b7c6b9784ed87c61b932455a89d2..48f1bb0115039fb59a23500b56a49b4e46d66373 100644
--- a/Source/core/dom/Document.cpp
+++ b/Source/core/dom/Document.cpp
@@ -5721,6 +5721,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();
« no previous file with comments | « Source/core/dom/Document.h ('k') | Source/core/loader/DocumentLoader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698