OLD | NEW |
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 2224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2235 return; | 2235 return; |
2236 } | 2236 } |
2237 networkStateNotifier().setWebConnectionTypeForTest(webtype); | 2237 networkStateNotifier().setWebConnectionTypeForTest(webtype); |
2238 } | 2238 } |
2239 | 2239 |
2240 unsigned Internals::countHitRegions(CanvasRenderingContext2D* context) | 2240 unsigned Internals::countHitRegions(CanvasRenderingContext2D* context) |
2241 { | 2241 { |
2242 return context->hitRegionsCount(); | 2242 return context->hitRegionsCount(); |
2243 } | 2243 } |
2244 | 2244 |
2245 PassRefPtrWillBeRawPtr<ClientRect> Internals::boundsInRootViewSpace(Element* ele
ment) | 2245 PassRefPtrWillBeRawPtr<ClientRect> Internals::boundsInViewportSpace(Element* ele
ment) |
2246 { | 2246 { |
2247 ASSERT(element); | 2247 ASSERT(element); |
2248 return ClientRect::create(element->boundsInRootViewSpace()); | 2248 return ClientRect::create(element->boundsInViewportSpace()); |
2249 } | 2249 } |
2250 | 2250 |
2251 String Internals::serializeNavigationMarkup() | 2251 String Internals::serializeNavigationMarkup() |
2252 { | 2252 { |
2253 Vector<Document::TransitionElementData> elementData; | 2253 Vector<Document::TransitionElementData> elementData; |
2254 frame()->document()->getTransitionElementData(elementData); | 2254 frame()->document()->getTransitionElementData(elementData); |
2255 | 2255 |
2256 StringBuilder markup; | 2256 StringBuilder markup; |
2257 for (const auto& element : elementData) | 2257 for (const auto& element : elementData) |
2258 markup.append(element.markup); | 2258 markup.append(element.markup); |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2336 { | 2336 { |
2337 ThreadState::current()->schedulePreciseGC(); | 2337 ThreadState::current()->schedulePreciseGC(); |
2338 } | 2338 } |
2339 | 2339 |
2340 ValueIterable<int>::IterationSource* Internals::startIteration(ScriptState*, Exc
eptionState&) | 2340 ValueIterable<int>::IterationSource* Internals::startIteration(ScriptState*, Exc
eptionState&) |
2341 { | 2341 { |
2342 return new InternalsIterationSource(); | 2342 return new InternalsIterationSource(); |
2343 } | 2343 } |
2344 | 2344 |
2345 } // namespace blink | 2345 } // namespace blink |
OLD | NEW |