| 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 1531 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1542 exceptionState.throwDOMException(InvalidAccessError, renderer ? "The pro
vided element's renderer is not a box." : "The provided element has no renderer.
"); | 1542 exceptionState.throwDOMException(InvalidAccessError, renderer ? "The pro
vided element's renderer is not a box." : "The provided element has no renderer.
"); |
| 1543 return 0; | 1543 return 0; |
| 1544 } | 1544 } |
| 1545 | 1545 |
| 1546 RenderLayer* layer = toRenderBox(renderer)->layer(); | 1546 RenderLayer* layer = toRenderBox(renderer)->layer(); |
| 1547 if (!layer) { | 1547 if (!layer) { |
| 1548 exceptionState.throwDOMException(InvalidAccessError, "No render layer ca
n be obtained from the provided element."); | 1548 exceptionState.throwDOMException(InvalidAccessError, "No render layer ca
n be obtained from the provided element."); |
| 1549 return 0; | 1549 return 0; |
| 1550 } | 1550 } |
| 1551 | 1551 |
| 1552 // We used to compute isUnclippedDescendant only when acceleratedCompositing
ForOverflowScrollEnabled, | 1552 // We used to compute isUnclippedDescendant only when preferCompositingToLCD
TextEnabled, |
| 1553 // but now we compute it all the time. | 1553 // but now we compute it all the time. |
| 1554 // FIXME: Remove this if statement and rebaseline the tests that make this a
ssumption. | 1554 // FIXME: Remove this if statement and rebaseline the tests that make this a
ssumption. |
| 1555 if (!layer->compositor()->acceleratedCompositingForOverflowScrollEnabled()) | 1555 if (!layer->compositor()->preferCompositingToLCDTextEnabled()) |
| 1556 return false; | 1556 return false; |
| 1557 | 1557 |
| 1558 return layer->isUnclippedDescendant(); | 1558 return layer->isUnclippedDescendant(); |
| 1559 } | 1559 } |
| 1560 | 1560 |
| 1561 String Internals::layerTreeAsText(Document* document, unsigned flags, ExceptionS
tate& exceptionState) const | 1561 String Internals::layerTreeAsText(Document* document, unsigned flags, ExceptionS
tate& exceptionState) const |
| 1562 { | 1562 { |
| 1563 ASSERT(document); | 1563 ASSERT(document); |
| 1564 if (!document->frame()) { | 1564 if (!document->frame()) { |
| 1565 exceptionState.throwDOMException(InvalidAccessError, "The document provi
ded is invalid."); | 1565 exceptionState.throwDOMException(InvalidAccessError, "The document provi
ded is invalid."); |
| (...skipping 654 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2220 { | 2220 { |
| 2221 Vector<Document::TransitionElementData> elementData; | 2221 Vector<Document::TransitionElementData> elementData; |
| 2222 frame()->document()->getTransitionElementData(elementData); | 2222 frame()->document()->getTransitionElementData(elementData); |
| 2223 | 2223 |
| 2224 Vector<Document::TransitionElementData>::iterator iter = elementData.begin()
; | 2224 Vector<Document::TransitionElementData>::iterator iter = elementData.begin()
; |
| 2225 for (; iter != elementData.end(); ++iter) | 2225 for (; iter != elementData.end(); ++iter) |
| 2226 frame()->document()->hideTransitionElements(AtomicString(iter->selector)
); | 2226 frame()->document()->hideTransitionElements(AtomicString(iter->selector)
); |
| 2227 } | 2227 } |
| 2228 | 2228 |
| 2229 } // namespace blink | 2229 } // namespace blink |
| OLD | NEW |