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

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

Issue 202813005: Add DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION() macro (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Slight clean up Created 6 years, 9 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/html/LabelableElement.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/RenderTableCol.cpp
diff --git a/Source/core/rendering/RenderTableCol.cpp b/Source/core/rendering/RenderTableCol.cpp
index 60d548ea1de3466c9301d26441ff6576cf25bb9f..1a9d9d7a9eacdb7a02de466e16b3f8b8ea724e4b 100644
--- a/Source/core/rendering/RenderTableCol.cpp
+++ b/Source/core/rendering/RenderTableCol.cpp
@@ -60,7 +60,7 @@ void RenderTableCol::updateFromElement()
{
unsigned oldSpan = m_span;
Node* n = node();
- if (n && isHTMLTableColElement(*n)) {
+ if (isHTMLTableColElement(n)) {
HTMLTableColElement& tc = toHTMLTableColElement(*n);
m_span = tc.span();
} else
« no previous file with comments | « Source/core/html/LabelableElement.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698