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 712 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
723 InvalidAccessError, | 723 InvalidAccessError, |
724 "The node argument doesn't particite in the flat tree."); | 724 "The node argument doesn't particite in the flat tree."); |
725 return 0; | 725 return 0; |
726 } | 726 } |
727 return FlatTreeTraversal::previous(*node); | 727 return FlatTreeTraversal::previous(*node); |
728 } | 728 } |
729 | 729 |
730 String Internals::elementLayoutTreeAsText(Element* element, | 730 String Internals::elementLayoutTreeAsText(Element* element, |
731 ExceptionState& exceptionState) { | 731 ExceptionState& exceptionState) { |
732 ASSERT(element); | 732 ASSERT(element); |
| 733 element->document().view()->updateAllLifecyclePhases(); |
| 734 |
733 String representation = externalRepresentation(element); | 735 String representation = externalRepresentation(element); |
734 if (representation.isEmpty()) { | 736 if (representation.isEmpty()) { |
735 exceptionState.throwDOMException( | 737 exceptionState.throwDOMException( |
736 InvalidAccessError, | 738 InvalidAccessError, |
737 "The element provided has no external representation."); | 739 "The element provided has no external representation."); |
738 return String(); | 740 return String(); |
739 } | 741 } |
740 | 742 |
741 return representation; | 743 return representation; |
742 } | 744 } |
(...skipping 2280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3023 return ClientRect::create(); | 3025 return ClientRect::create(); |
3024 | 3026 |
3025 return ClientRect::create(FloatRect(node->layoutObject()->visualRect())); | 3027 return ClientRect::create(FloatRect(node->layoutObject()->visualRect())); |
3026 } | 3028 } |
3027 | 3029 |
3028 void Internals::crash() { | 3030 void Internals::crash() { |
3029 CHECK(false) << "Intentional crash"; | 3031 CHECK(false) << "Intentional crash"; |
3030 } | 3032 } |
3031 | 3033 |
3032 } // namespace blink | 3034 } // namespace blink |
OLD | NEW |