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

Unified Diff: Source/core/testing/Internals.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: 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
Index: Source/core/testing/Internals.cpp
diff --git a/Source/core/testing/Internals.cpp b/Source/core/testing/Internals.cpp
index 3a66ea25ed797a55370d1f140493c352c281df6b..99d9dd2a1099fd79fd410aa68ce80e2ee4a8d73d 100644
--- a/Source/core/testing/Internals.cpp
+++ b/Source/core/testing/Internals.cpp
@@ -2277,7 +2277,17 @@ void Internals::hideAllTransitionElements()
Vector<Document::TransitionElementData>::iterator iter = elementData.begin();
for (; iter != elementData.end(); ++iter)
- frame()->document()->hideTransitionElements(AtomicString(iter->selector));
+ frame()->document()->updateTransitionElementOpacity(AtomicString(iter->selector), 0.0);
+}
+
+void Internals::showAllTransitionElements()
+{
+ Vector<Document::TransitionElementData> elementData;
+ frame()->document()->getTransitionElementData(elementData);
+
+ Vector<Document::TransitionElementData>::iterator iter = elementData.begin();
+ for (; iter != elementData.end(); ++iter)
+ frame()->document()->updateTransitionElementOpacity(AtomicString(iter->selector), 1.0);
}
void Internals::forcePluginPlaceholder(HTMLElement* element, PassRefPtrWillBeRawPtr<DocumentFragment> fragment, ExceptionState& exceptionState)

Powered by Google App Engine
This is Rietveld 408576698