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

Unified Diff: third_party/WebKit/Source/core/html/forms/TextControlInnerElements.cpp

Issue 2913093002: Revert of [css-align] Don't resolve 'auto' values for computed style. (Closed)
Patch Set: Created 3 years, 7 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: third_party/WebKit/Source/core/html/forms/TextControlInnerElements.cpp
diff --git a/third_party/WebKit/Source/core/html/forms/TextControlInnerElements.cpp b/third_party/WebKit/Source/core/html/forms/TextControlInnerElements.cpp
index 8fa138da4e62d8a7c9b4520a4bfbaf3c0c563a75..15d79bea17c74173b4a917ba07485a014883d267 100644
--- a/third_party/WebKit/Source/core/html/forms/TextControlInnerElements.cpp
+++ b/third_party/WebKit/Source/core/html/forms/TextControlInnerElements.cpp
@@ -89,6 +89,9 @@
style->SetUserModify(EUserModify::kReadOnly);
style->SetUnique();
+ if (const ComputedStyle* parent_style = ParentComputedStyle())
+ StyleAdjuster::AdjustStyleForAlignment(*style, *parent_style);
+
return style.Release();
}
@@ -146,6 +149,8 @@
// Using StyleAdjuster::adjustComputedStyle updates unwanted style. We'd like
// to apply only editing-related and alignment-related.
StyleAdjuster::AdjustStyleForEditing(*inner_editor_style);
+ if (const ComputedStyle* parent_style = ParentComputedStyle())
+ StyleAdjuster::AdjustStyleForAlignment(*inner_editor_style, *parent_style);
return inner_editor_style.Release();
}
« no previous file with comments | « third_party/WebKit/Source/core/css/resolver/StyleAdjuster.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutBox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698