Chromium Code Reviews| Index: Source/core/testing/Internals.cpp |
| diff --git a/Source/core/testing/Internals.cpp b/Source/core/testing/Internals.cpp |
| index f312c9065ea572bb4fa5ec9c5ff465903a591a6a..30c6d1559448b35a1fd520c92b89c1735a8a468b 100644 |
| --- a/Source/core/testing/Internals.cpp |
| +++ b/Source/core/testing/Internals.cpp |
| @@ -2375,4 +2375,18 @@ void Internals::setNetworkConnectionInfo(const String& type, ExceptionState& exc |
| networkStateNotifier().setWebConnectionTypeForTest(webtype); |
| } |
| +String Internals::serializeNavigationMarkup(Document* document, ExceptionState& exceptionState) |
| +{ |
| + Vector<Document::TransitionElementData> elementData; |
| + frame()->document()->getTransitionElementData(&elementData, exceptionState); |
|
esprehn
2014/06/13 08:47:06
pass vector by reference.
oystein (OOO til 10th of July)
2014/06/17 21:07:06
Done.
|
| + |
| + String markup; |
| + Vector<Document::TransitionElementData>::iterator iter = elementData.begin(); |
| + for (; iter != elementData.end(); ++iter) { |
| + markup = markup + iter->markup; |
| + } |
|
esprehn
2014/06/13 08:47:06
no braces.
oystein (OOO til 10th of July)
2014/06/17 21:07:06
Done.
|
| + |
| + return markup; |
| +} |
| + |
| } // namespace WebCore |