| 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 2045 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2056 "The document provided is invalid."); | 2056 "The document provided is invalid."); |
| 2057 return String(); | 2057 return String(); |
| 2058 } | 2058 } |
| 2059 | 2059 |
| 2060 document->frame()->view()->updateAllLifecyclePhases(); | 2060 document->frame()->view()->updateAllLifecyclePhases(); |
| 2061 | 2061 |
| 2062 Page* page = document->page(); | 2062 Page* page = document->page(); |
| 2063 if (!page) | 2063 if (!page) |
| 2064 return String(); | 2064 return String(); |
| 2065 | 2065 |
| 2066 return page->mainThreadScrollingReasonsAsText(); | 2066 return page->mainThreadScrollingReasonsAsText(*document->frame()); |
| 2067 } | 2067 } |
| 2068 | 2068 |
| 2069 ClientRectList* Internals::nonFastScrollableRects( | 2069 ClientRectList* Internals::nonFastScrollableRects( |
| 2070 Document* document, | 2070 Document* document, |
| 2071 ExceptionState& exceptionState) const { | 2071 ExceptionState& exceptionState) const { |
| 2072 ASSERT(document); | 2072 ASSERT(document); |
| 2073 if (!document->frame()) { | 2073 if (!document->frame()) { |
| 2074 exceptionState.throwDOMException(InvalidAccessError, | 2074 exceptionState.throwDOMException(InvalidAccessError, |
| 2075 "The document provided is invalid."); | 2075 "The document provided is invalid."); |
| 2076 return nullptr; | 2076 return nullptr; |
| (...skipping 982 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3059 | 3059 |
| 3060 void Internals::crash() { | 3060 void Internals::crash() { |
| 3061 CHECK(false) << "Intentional crash"; | 3061 CHECK(false) << "Intentional crash"; |
| 3062 } | 3062 } |
| 3063 | 3063 |
| 3064 void Internals::setIsLowEndDevice(bool isLowEndDevice) { | 3064 void Internals::setIsLowEndDevice(bool isLowEndDevice) { |
| 3065 MemoryCoordinator::setIsLowEndDeviceForTesting(isLowEndDevice); | 3065 MemoryCoordinator::setIsLowEndDeviceForTesting(isLowEndDevice); |
| 3066 } | 3066 } |
| 3067 | 3067 |
| 3068 } // namespace blink | 3068 } // namespace blink |
| OLD | NEW |