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

Unified Diff: Source/core/dom/Element.cpp

Issue 336143002: Revert of Textarea resize-able only to larger; min-height and min-width properly set (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase Created 6 years, 6 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/dom/Element.h ('k') | Source/core/dom/ElementRareData.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/Element.cpp
diff --git a/Source/core/dom/Element.cpp b/Source/core/dom/Element.cpp
index f5ded5750405ad5834ed86b45fd40a488183e1d2..74d3965142bd8e6dea27cf522c36500443f7d29d 100644
--- a/Source/core/dom/Element.cpp
+++ b/Source/core/dom/Element.cpp
@@ -2442,6 +2442,18 @@ bool Element::isInDescendantTreeOf(const Element* shadowHost) const
return false;
}
+LayoutSize Element::minimumSizeForResizing() const
+{
+ return hasRareData() ? elementRareData()->minimumSizeForResizing() : defaultMinimumSizeForResizing();
+}
+
+void Element::setMinimumSizeForResizing(const LayoutSize& size)
+{
+ if (!hasRareData() && size == defaultMinimumSizeForResizing())
+ return;
+ ensureElementRareData().setMinimumSizeForResizing(size);
+}
+
RenderStyle* Element::computedStyle(PseudoId pseudoElementSpecifier)
{
if (PseudoElement* element = pseudoElement(pseudoElementSpecifier))
« no previous file with comments | « Source/core/dom/Element.h ('k') | Source/core/dom/ElementRareData.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698