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

Unified Diff: Source/core/dom/ElementRareData.h

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.cpp ('k') | Source/core/dom/ElementRareData.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/ElementRareData.h
diff --git a/Source/core/dom/ElementRareData.h b/Source/core/dom/ElementRareData.h
index 473ddfb72b4c35a27e3018e2f97ff980b222af90..cb3d3d34260662d7f94e7e61145a377edc499992 100644
--- a/Source/core/dom/ElementRareData.h
+++ b/Source/core/dom/ElementRareData.h
@@ -97,6 +97,9 @@ public:
DatasetDOMStringMap* dataset() const { return m_dataset.get(); }
void setDataset(PassOwnPtrWillBeRawPtr<DatasetDOMStringMap> dataset) { m_dataset = dataset; }
+ LayoutSize minimumSizeForResizing() const { return m_minimumSizeForResizing; }
+ void setMinimumSizeForResizing(LayoutSize size) { m_minimumSizeForResizing = size; }
+
IntSize savedLayerScrollOffset() const { return m_savedLayerScrollOffset; }
void setSavedLayerScrollOffset(IntSize size) { m_savedLayerScrollOffset = size; }
@@ -125,6 +128,7 @@ public:
private:
short m_tabindex;
+ LayoutSize m_minimumSizeForResizing;
IntSize m_savedLayerScrollOffset;
OwnPtrWillBeMember<DatasetDOMStringMap> m_dataset;
@@ -145,9 +149,15 @@ private:
explicit ElementRareData(RenderObject*);
};
+inline IntSize defaultMinimumSizeForResizing()
+{
+ return IntSize(LayoutUnit::max(), LayoutUnit::max());
+}
+
inline ElementRareData::ElementRareData(RenderObject* renderer)
: NodeRareData(renderer)
, m_tabindex(0)
+ , m_minimumSizeForResizing(defaultMinimumSizeForResizing())
{
m_isElementRareData = true;
}
« no previous file with comments | « Source/core/dom/Element.cpp ('k') | Source/core/dom/ElementRareData.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698