Index: third_party/WebKit/Source/core/html/HTMLTextAreaElement.cpp |
diff --git a/third_party/WebKit/Source/core/html/HTMLTextAreaElement.cpp b/third_party/WebKit/Source/core/html/HTMLTextAreaElement.cpp |
index 924d4db8765e4c888dcfb13aaf9e9c88bdff7a45..f1b2e25f5e530917a385eddf1e90a267193f30ed 100644 |
--- a/third_party/WebKit/Source/core/html/HTMLTextAreaElement.cpp |
+++ b/third_party/WebKit/Source/core/html/HTMLTextAreaElement.cpp |
@@ -163,7 +163,7 @@ void HTMLTextAreaElement::parseAttribute(const QualifiedName& name, const Atomic |
rows = defaultRows; |
if (m_rows != rows) { |
m_rows = rows; |
- if (layoutObject()) |
+ if (hasLayoutObject()) |
layoutObject()->setNeedsLayoutAndPrefWidthsRecalcAndFullPaintInvalidation(LayoutInvalidationReason::AttributeChanged); |
} |
} else if (name == colsAttr) { |