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 2061 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2072 "The document provided is invalid."); | 2072 "The document provided is invalid."); |
2073 return String(); | 2073 return String(); |
2074 } | 2074 } |
2075 | 2075 |
2076 document->frame()->view()->updateAllLifecyclePhases(); | 2076 document->frame()->view()->updateAllLifecyclePhases(); |
2077 | 2077 |
2078 Page* page = document->page(); | 2078 Page* page = document->page(); |
2079 if (!page) | 2079 if (!page) |
2080 return String(); | 2080 return String(); |
2081 | 2081 |
2082 return page->mainThreadScrollingReasonsAsText(); | 2082 return page->mainThreadScrollingReasonsAsText(document->frame()); |
2083 } | 2083 } |
2084 | 2084 |
2085 ClientRectList* Internals::nonFastScrollableRects( | 2085 ClientRectList* Internals::nonFastScrollableRects( |
2086 Document* document, | 2086 Document* document, |
2087 ExceptionState& exceptionState) const { | 2087 ExceptionState& exceptionState) const { |
2088 ASSERT(document); | 2088 ASSERT(document); |
2089 if (!document->frame()) { | 2089 if (!document->frame()) { |
2090 exceptionState.throwDOMException(InvalidAccessError, | 2090 exceptionState.throwDOMException(InvalidAccessError, |
2091 "The document provided is invalid."); | 2091 "The document provided is invalid."); |
2092 return nullptr; | 2092 return nullptr; |
(...skipping 1000 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3093 | 3093 |
3094 void Internals::crash() { | 3094 void Internals::crash() { |
3095 CHECK(false) << "Intentional crash"; | 3095 CHECK(false) << "Intentional crash"; |
3096 } | 3096 } |
3097 | 3097 |
3098 void Internals::setIsLowEndDevice(bool isLowEndDevice) { | 3098 void Internals::setIsLowEndDevice(bool isLowEndDevice) { |
3099 MemoryCoordinator::setIsLowEndDeviceForTesting(isLowEndDevice); | 3099 MemoryCoordinator::setIsLowEndDeviceForTesting(isLowEndDevice); |
3100 } | 3100 } |
3101 | 3101 |
3102 } // namespace blink | 3102 } // namespace blink |
OLD | NEW |