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

Side by Side 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: 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * Copyright (C) 2013 Apple Inc. All rights reserved. 3 * Copyright (C) 2013 Apple Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 8 *
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 2245 matching lines...) Expand 10 before | Expand all | Expand 10 after
2256 return; 2256 return;
2257 } 2257 }
2258 networkStateNotifier().setWebConnectionTypeForTest(webtype); 2258 networkStateNotifier().setWebConnectionTypeForTest(webtype);
2259 } 2259 }
2260 2260
2261 unsigned Internals::countHitRegions(CanvasRenderingContext2D* context) 2261 unsigned Internals::countHitRegions(CanvasRenderingContext2D* context)
2262 { 2262 {
2263 return context->hitRegionsCount(); 2263 return context->hitRegionsCount();
2264 } 2264 }
2265 2265
2266 String Internals::serializeNavigationMarkup(Document* document) 2266 String Internals::serializeNavigationMarkup()
2267 { 2267 {
2268 Vector<Document::TransitionElementData> elementData; 2268 Vector<Document::TransitionElementData> elementData;
2269 frame()->document()->getTransitionElementData(elementData); 2269 frame()->document()->getTransitionElementData(elementData);
2270 2270
2271 StringBuilder markup; 2271 StringBuilder markup;
2272 Vector<Document::TransitionElementData>::iterator iter = elementData.begin() ; 2272 Vector<Document::TransitionElementData>::iterator iter = elementData.begin() ;
2273 for (; iter != elementData.end(); ++iter) 2273 for (; iter != elementData.end(); ++iter)
2274 markup.append(iter->markup); 2274 markup.append(iter->markup);
2275 2275
2276 return markup.toString(); 2276 return markup.toString();
2277 } 2277 }
2278 2278
2279 void Internals::hideAllTransitionElements()
2280 {
2281 Vector<Document::TransitionElementData> elementData;
2282 frame()->document()->getTransitionElementData(elementData);
2283
2284 Vector<Document::TransitionElementData>::iterator iter = elementData.begin() ;
2285 for (; iter != elementData.end(); ++iter)
2286 frame()->document()->hideTransitionElements(AtomicString(iter->selector) );
2287 }
2288
2279 } // namespace blink 2289 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698