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

Unified Diff: Source/core/testing/Internals.cpp

Issue 476553002: Navigation transitions: Hide transition elements by setting CSS opacity rather than display. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Test fix Created 6 years, 4 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/testing/Internals.h ('k') | Source/core/testing/Internals.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/testing/Internals.cpp
diff --git a/Source/core/testing/Internals.cpp b/Source/core/testing/Internals.cpp
index 10b9f59653280f99c142f7e9730b84d68a76d807..702e7a0b72b78dc9fce1feda1d6f33851622cdff 100644
--- a/Source/core/testing/Internals.cpp
+++ b/Source/core/testing/Internals.cpp
@@ -2263,7 +2263,7 @@ unsigned Internals::countHitRegions(CanvasRenderingContext2D* context)
return context->hitRegionsCount();
}
-String Internals::serializeNavigationMarkup(Document* document)
+String Internals::serializeNavigationMarkup()
{
Vector<Document::TransitionElementData> elementData;
frame()->document()->getTransitionElementData(elementData);
@@ -2276,4 +2276,14 @@ String Internals::serializeNavigationMarkup(Document* document)
return markup.toString();
}
+void Internals::hideAllTransitionElements()
+{
+ Vector<Document::TransitionElementData> elementData;
+ frame()->document()->getTransitionElementData(elementData);
+
+ Vector<Document::TransitionElementData>::iterator iter = elementData.begin();
+ for (; iter != elementData.end(); ++iter)
+ frame()->document()->hideTransitionElements(AtomicString(iter->selector));
+}
+
} // namespace blink
« no previous file with comments | « Source/core/testing/Internals.h ('k') | Source/core/testing/Internals.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698