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

Unified Diff: Source/core/testing/Internals.cpp

Issue 19543014: Direct composite canvas background if possible. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: re-uploading patch Created 7 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: Source/core/testing/Internals.cpp
diff --git a/Source/core/testing/Internals.cpp b/Source/core/testing/Internals.cpp
index 6823d005bb0d7c473c377887dc3236406aa5c52b..7ddbc9e736e232cb22a8eca8e4104a8af8a08ee3 100644
--- a/Source/core/testing/Internals.cpp
+++ b/Source/core/testing/Internals.cpp
@@ -1599,12 +1599,9 @@ String Internals::elementLayerTreeAsText(Element* element, unsigned flags, Excep
}
RenderLayer* layer = toRenderBox(renderer)->layer();
- if (!layer) {
- ec = InvalidAccessError;
- return String();
- }
-
- if (!layer->backing() || !layer->backing()->graphicsLayer()) {
+ if (!layer
+ || !layer->backing()
+ || !layer->backing()->graphicsLayer()) {
// Don't raise exception in these cases which may be normally used in tests.
return String();
}

Powered by Google App Engine
This is Rietveld 408576698