Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(628)

Side by Side Diff: third_party/WebKit/Source/core/testing/Internals.cpp

Issue 2238883006: SPv2: Use GeometryMapper to implement PaintLayerClipper. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: none Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « third_party/WebKit/Source/core/paint/PaintLayerPainter.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/paint/PaintLayerPainter.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698