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 2979 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2990 | 2990 |
2991 return frame()->view()->getScrollableArea()->getScrollOffset().height(); | 2991 return frame()->view()->getScrollableArea()->getScrollOffset().height(); |
2992 } | 2992 } |
2993 | 2993 |
2994 ValueIterable<int>::IterationSource* Internals::startIteration( | 2994 ValueIterable<int>::IterationSource* Internals::startIteration( |
2995 ScriptState*, | 2995 ScriptState*, |
2996 ExceptionState&) { | 2996 ExceptionState&) { |
2997 return new InternalsIterationSource(); | 2997 return new InternalsIterationSource(); |
2998 } | 2998 } |
2999 | 2999 |
3000 bool Internals::isUseCounted(Document* document, int useCounterId) { | 3000 bool Internals::isUseCounted(Document* document, uint32_t useCounterId) { |
3001 if (useCounterId < 0 || useCounterId >= UseCounter::NumberOfFeatures) | 3001 if (useCounterId >= UseCounter::NumberOfFeatures) |
3002 return false; | 3002 return false; |
3003 return UseCounter::isCounted(*document, | 3003 return UseCounter::isCounted(*document, |
3004 static_cast<UseCounter::Feature>(useCounterId)); | 3004 static_cast<UseCounter::Feature>(useCounterId)); |
3005 } | 3005 } |
3006 | 3006 |
3007 bool Internals::isCSSPropertyUseCounted(Document* document, | 3007 bool Internals::isCSSPropertyUseCounted(Document* document, |
3008 const String& propertyName) { | 3008 const String& propertyName) { |
3009 return UseCounter::isCounted(*document, propertyName); | 3009 return UseCounter::isCounted(*document, propertyName); |
3010 } | 3010 } |
3011 | 3011 |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3085 | 3085 |
3086 void Internals::crash() { | 3086 void Internals::crash() { |
3087 CHECK(false) << "Intentional crash"; | 3087 CHECK(false) << "Intentional crash"; |
3088 } | 3088 } |
3089 | 3089 |
3090 void Internals::setIsLowEndDevice(bool isLowEndDevice) { | 3090 void Internals::setIsLowEndDevice(bool isLowEndDevice) { |
3091 MemoryCoordinator::setIsLowEndDeviceForTesting(isLowEndDevice); | 3091 MemoryCoordinator::setIsLowEndDeviceForTesting(isLowEndDevice); |
3092 } | 3092 } |
3093 | 3093 |
3094 } // namespace blink | 3094 } // namespace blink |
OLD | NEW |