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

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

Issue 715653004: Navigation transitions (web to native app): Hide/Show transition elements (Blink side) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: review fix Created 6 years, 1 month 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/testing/Internals.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 50bfccb701b158c6c80e287d9936e622c79077fb..7e148051480e00659aa313a6e399da3ad07d82e0 100644
--- a/Source/core/dom/Document.cpp
+++ b/Source/core/dom/Document.cpp
@@ -5659,6 +5659,20 @@ void Document::hideTransitionElements(const AtomicString& cssSelector)
}
}
+void Document::showTransitionElements(const AtomicString& cssSelector)
Nate Chapin 2014/11/11 22:18:56 It might be good to have a private helper to share
Zhen Wang 2014/11/11 22:55:58 Added a helper function, which updates element's o
+{
+ TrackExceptionState exceptionState;
+ RefPtrWillBeRawPtr<StaticElementList> elementList = querySelectorAll(cssSelector, exceptionState);
+ if (elementList && !exceptionState.hadException()) {
+ unsigned nodeListLength = elementList->length();
+
+ for (unsigned nodeIndex = 0; nodeIndex < nodeListLength; ++nodeIndex) {
+ Element* element = elementList->item(nodeIndex);
+ element->setInlineStyleProperty(CSSPropertyOpacity, 1.0, CSSPrimitiveValue::CSS_NUMBER);
+ }
+ }
+}
+
bool Document::hasFocus() const
{
Page* page = this->page();
« no previous file with comments | « Source/core/dom/Document.h ('k') | Source/core/testing/Internals.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698