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

Unified Diff: Source/core/html/HTMLTextAreaElement.cpp

Issue 1025213002: Begin tracking why layout is invalidated (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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
Index: Source/core/html/HTMLTextAreaElement.cpp
diff --git a/Source/core/html/HTMLTextAreaElement.cpp b/Source/core/html/HTMLTextAreaElement.cpp
index 8f7d9dc176bf6a8c8b6d993acedc112c9e523bae..9028d656f8ac2c20a365bc4b824a91b6bf66a3e2 100644
--- a/Source/core/html/HTMLTextAreaElement.cpp
+++ b/Source/core/html/HTMLTextAreaElement.cpp
@@ -162,7 +162,7 @@ void HTMLTextAreaElement::parseAttribute(const QualifiedName& name, const Atomic
if (m_rows != rows) {
m_rows = rows;
if (layoutObject())
- layoutObject()->setNeedsLayoutAndPrefWidthsRecalcAndFullPaintInvalidation();
+ layoutObject()->setNeedsLayoutAndPrefWidthsRecalcAndFullPaintInvalidation(LayoutInvalidationReason::AttributeChanged);
}
} else if (name == colsAttr) {
int cols = 0;
@@ -171,7 +171,7 @@ void HTMLTextAreaElement::parseAttribute(const QualifiedName& name, const Atomic
if (m_cols != cols) {
m_cols = cols;
if (LayoutObject* layoutObject = this->layoutObject())
- layoutObject->setNeedsLayoutAndPrefWidthsRecalcAndFullPaintInvalidation();
+ layoutObject->setNeedsLayoutAndPrefWidthsRecalcAndFullPaintInvalidation(LayoutInvalidationReason::AttributeChanged);
}
} else if (name == wrapAttr) {
// The virtual/physical values were a Netscape extension of HTML 3.0, now deprecated.
@@ -186,7 +186,7 @@ void HTMLTextAreaElement::parseAttribute(const QualifiedName& name, const Atomic
if (wrap != m_wrap) {
m_wrap = wrap;
if (LayoutObject* layoutObject = this->layoutObject())
- layoutObject->setNeedsLayoutAndPrefWidthsRecalcAndFullPaintInvalidation();
+ layoutObject->setNeedsLayoutAndPrefWidthsRecalcAndFullPaintInvalidation(LayoutInvalidationReason::AttributeChanged);
}
} else if (name == accesskeyAttr) {
// ignore for the moment

Powered by Google App Engine
This is Rietveld 408576698