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 1702 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1713 if (!layer | 1713 if (!layer |
1714 || !layer->hasCompositedLayerMapping() | 1714 || !layer->hasCompositedLayerMapping() |
1715 || !layer->compositedLayerMapping()->mainGraphicsLayer()) { | 1715 || !layer->compositedLayerMapping()->mainGraphicsLayer()) { |
1716 // Don't raise exception in these cases which may be normally used in te
sts. | 1716 // Don't raise exception in these cases which may be normally used in te
sts. |
1717 return String(); | 1717 return String(); |
1718 } | 1718 } |
1719 | 1719 |
1720 return layer->compositedLayerMapping()->mainGraphicsLayer()->layerTreeAsText
(flags); | 1720 return layer->compositedLayerMapping()->mainGraphicsLayer()->layerTreeAsText
(flags); |
1721 } | 1721 } |
1722 | 1722 |
| 1723 bool Internals::isStackingContext(Element* element) const |
| 1724 { |
| 1725 return element->layoutObject()->style()->isStackingContext(); |
| 1726 } |
| 1727 |
1723 String Internals::scrollingStateTreeAsText(Document*) const | 1728 String Internals::scrollingStateTreeAsText(Document*) const |
1724 { | 1729 { |
1725 return String(); | 1730 return String(); |
1726 } | 1731 } |
1727 | 1732 |
1728 String Internals::mainThreadScrollingReasons(Document* document, ExceptionState&
exceptionState) const | 1733 String Internals::mainThreadScrollingReasons(Document* document, ExceptionState&
exceptionState) const |
1729 { | 1734 { |
1730 ASSERT(document); | 1735 ASSERT(document); |
1731 if (!document->frame()) { | 1736 if (!document->frame()) { |
1732 exceptionState.throwDOMException(InvalidAccessError, "The document provi
ded is invalid."); | 1737 exceptionState.throwDOMException(InvalidAccessError, "The document provi
ded is invalid."); |
(...skipping 831 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2564 } | 2569 } |
2565 | 2570 |
2566 String Internals::getProgrammaticScrollAnimationState(Node* node) const | 2571 String Internals::getProgrammaticScrollAnimationState(Node* node) const |
2567 { | 2572 { |
2568 if (ScrollableArea* scrollableArea = scrollableAreaForNode(node)) | 2573 if (ScrollableArea* scrollableArea = scrollableAreaForNode(node)) |
2569 return scrollableArea->programmaticScrollAnimator().runStateAsText(); | 2574 return scrollableArea->programmaticScrollAnimator().runStateAsText(); |
2570 return String(); | 2575 return String(); |
2571 } | 2576 } |
2572 | 2577 |
2573 } // namespace blink | 2578 } // namespace blink |
OLD | NEW |