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

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: resolved layout test failures 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
« no previous file with comments | « Source/core/rendering/RenderVideo.h ('k') | public/platform/WebExternalTextureLayer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/testing/Internals.cpp
diff --git a/Source/core/testing/Internals.cpp b/Source/core/testing/Internals.cpp
index 574cdbf8250ca6e7fb1a1645bed26e54bf336b61..708ae9bb23130c7d845012e668221758fe4ea2fb 100644
--- a/Source/core/testing/Internals.cpp
+++ b/Source/core/testing/Internals.cpp
@@ -1600,12 +1600,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();
}
« no previous file with comments | « Source/core/rendering/RenderVideo.h ('k') | public/platform/WebExternalTextureLayer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698