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

Unified Diff: Source/core/rendering/RenderTreeAsText.cpp

Issue 23717008: Remove useless null checks from Node::document() call sites (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 4 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/RenderObject.h ('k') | Source/core/svg/SVGElementRareData.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/RenderTreeAsText.cpp
diff --git a/Source/core/rendering/RenderTreeAsText.cpp b/Source/core/rendering/RenderTreeAsText.cpp
index e22b2c969142bef354d194e91a6778daa43ccda2..59c2959cfcb4e820592021a4c14802879f10abaf 100644
--- a/Source/core/rendering/RenderTreeAsText.cpp
+++ b/Source/core/rendering/RenderTreeAsText.cpp
@@ -804,7 +804,7 @@ String externalRepresentation(Element* element, RenderAsTextBehavior behavior)
{
// Doesn't support printing mode.
ASSERT(!(behavior & RenderAsTextPrintingMode));
- if (!(behavior & RenderAsTextDontUpdateLayout) && element->document())
+ if (!(behavior & RenderAsTextDontUpdateLayout))
element->document()->updateLayout();
RenderObject* renderer = element->renderer();
« no previous file with comments | « Source/core/rendering/RenderObject.h ('k') | Source/core/svg/SVGElementRareData.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698