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 2472 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2483 return new InternalsIterationSource(); | 2483 return new InternalsIterationSource(); |
2484 } | 2484 } |
2485 | 2485 |
2486 bool Internals::isUseCounted(Document* document, int useCounterId) | 2486 bool Internals::isUseCounted(Document* document, int useCounterId) |
2487 { | 2487 { |
2488 if (useCounterId < 0 || useCounterId >= UseCounter::NumberOfFeatures) | 2488 if (useCounterId < 0 || useCounterId >= UseCounter::NumberOfFeatures) |
2489 return false; | 2489 return false; |
2490 return UseCounter::isCounted(*document, static_cast<UseCounter::Feature>(use
CounterId)); | 2490 return UseCounter::isCounted(*document, static_cast<UseCounter::Feature>(use
CounterId)); |
2491 } | 2491 } |
2492 | 2492 |
| 2493 bool Internals::isCSSPropertyUseCounted(Document* document, const String& proper
tyName) |
| 2494 { |
| 2495 return UseCounter::isCounted(*document, propertyName); |
| 2496 } |
| 2497 |
2493 String Internals::unscopeableAttribute() | 2498 String Internals::unscopeableAttribute() |
2494 { | 2499 { |
2495 return "unscopeableAttribute"; | 2500 return "unscopeableAttribute"; |
2496 } | 2501 } |
2497 | 2502 |
2498 String Internals::unscopeableMethod() | 2503 String Internals::unscopeableMethod() |
2499 { | 2504 { |
2500 return "unscopeableMethod"; | 2505 return "unscopeableMethod"; |
2501 } | 2506 } |
2502 | 2507 |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2560 } | 2565 } |
2561 | 2566 |
2562 int Internals::getScrollAnimationState(Node* node) const | 2567 int Internals::getScrollAnimationState(Node* node) const |
2563 { | 2568 { |
2564 if (ScrollableArea* scrollableArea = scrollableAreaForNode(node)) | 2569 if (ScrollableArea* scrollableArea = scrollableAreaForNode(node)) |
2565 return static_cast<int>(scrollableArea->scrollAnimator().m_runState); | 2570 return static_cast<int>(scrollableArea->scrollAnimator().m_runState); |
2566 return -1; | 2571 return -1; |
2567 } | 2572 } |
2568 | 2573 |
2569 } // namespace blink | 2574 } // namespace blink |
OLD | NEW |