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 1677 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1688 exceptionState.throwDOMException(InvalidAccessError, "No render layer ca
n be obtained from the provided element."); | 1688 exceptionState.throwDOMException(InvalidAccessError, "No render layer ca
n be obtained from the provided element."); |
1689 return 0; | 1689 return 0; |
1690 } | 1690 } |
1691 | 1691 |
1692 // We used to compute isUnclippedDescendant only when acceleratedCompositing
ForOverflowScrollEnabled, | 1692 // We used to compute isUnclippedDescendant only when acceleratedCompositing
ForOverflowScrollEnabled, |
1693 // but now we compute it all the time. | 1693 // but now we compute it all the time. |
1694 // FIXME: Remove this if statement and rebaseline the tests that make this a
ssumption. | 1694 // FIXME: Remove this if statement and rebaseline the tests that make this a
ssumption. |
1695 if (!layer->compositor()->acceleratedCompositingForOverflowScrollEnabled()) | 1695 if (!layer->compositor()->acceleratedCompositingForOverflowScrollEnabled()) |
1696 return false; | 1696 return false; |
1697 | 1697 |
1698 return layer->ancestorDependentProperties().isUnclippedDescendant; | 1698 return layer->compositingInputs().isUnclippedDescendant; |
1699 } | 1699 } |
1700 | 1700 |
1701 String Internals::layerTreeAsText(Document* document, unsigned flags, ExceptionS
tate& exceptionState) const | 1701 String Internals::layerTreeAsText(Document* document, unsigned flags, ExceptionS
tate& exceptionState) const |
1702 { | 1702 { |
1703 if (!document || !document->frame()) { | 1703 if (!document || !document->frame()) { |
1704 exceptionState.throwDOMException(InvalidAccessError, document ? "The doc
ument's frame cannot be retrieved." : "The document provided is invalid."); | 1704 exceptionState.throwDOMException(InvalidAccessError, document ? "The doc
ument's frame cannot be retrieved." : "The document provided is invalid."); |
1705 return String(); | 1705 return String(); |
1706 } | 1706 } |
1707 | 1707 |
1708 document->view()->updateLayoutAndStyleForPainting(); | 1708 document->view()->updateLayoutAndStyleForPainting(); |
(...skipping 659 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2368 } else if (type == "none") { | 2368 } else if (type == "none") { |
2369 webtype = blink::ConnectionTypeNone; | 2369 webtype = blink::ConnectionTypeNone; |
2370 } else { | 2370 } else { |
2371 exceptionState.throwDOMException(NotFoundError, ExceptionMessages::faile
dToEnumerate("connection type", type)); | 2371 exceptionState.throwDOMException(NotFoundError, ExceptionMessages::faile
dToEnumerate("connection type", type)); |
2372 return; | 2372 return; |
2373 } | 2373 } |
2374 networkStateNotifier().setWebConnectionTypeForTest(webtype); | 2374 networkStateNotifier().setWebConnectionTypeForTest(webtype); |
2375 } | 2375 } |
2376 | 2376 |
2377 } // namespace WebCore | 2377 } // namespace WebCore |
OLD | NEW |