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

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

Issue 654953002: Navigation transitions (web to native app): Get names and rects of transition elements (Step 2) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase Created 6 years, 2 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/FrameLoader.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 69ac933bf334b8c45e8b1a1b1cc96dcf5aafa332..c013c374c3ab332bae5d6fa3930641560e573022 100644
--- a/Source/core/dom/Document.cpp
+++ b/Source/core/dom/Document.cpp
@@ -60,6 +60,7 @@
#include "core/dom/AddConsoleMessageTask.h"
#include "core/dom/Attr.h"
#include "core/dom/CDATASection.h"
+#include "core/dom/ClientRect.h"
#include "core/dom/Comment.h"
#include "core/dom/ContextFeatures.h"
#include "core/dom/DOMImplementation.h"
@@ -5616,13 +5617,15 @@ void Document::getTransitionElementData(Vector<TransitionElementData>& elementDa
if (!nodeListLength)
continue;
+ TransitionElementData newElements;
StringBuilder markup;
for (unsigned nodeIndex = 0; nodeIndex < nodeListLength; ++nodeIndex) {
Element* element = elementList->item(nodeIndex);
markup.append(createStyledMarkupForNavigationTransition(element));
+ newElements.rects.append(element->boundsInRootViewSpace());
+ newElements.names.append(element->getIdAttribute().string());
esprehn 2014/10/24 21:59:11 Using querySelector doesn't mean that these have i
Zhen Wang 2014/10/27 14:14:45 Checking if the element has ID now. Using empty st
}
- TransitionElementData newElements;
newElements.scope = metaElementContents.substring(firstSemicolon + 1).stripWhiteSpace();
newElements.selector = selector;
newElements.markup = markup.toString();
« no previous file with comments | « Source/core/dom/Document.h ('k') | Source/core/loader/FrameLoader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698