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

Side by Side Diff: Source/core/dom/Element.cpp

Issue 239983004: 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: Addresses the changes asked in patch set 3 Created 6 years, 8 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2001 Peter Kelly (pmk@post.com) 4 * (C) 2001 Peter Kelly (pmk@post.com)
5 * (C) 2001 Dirk Mueller (mueller@kde.org) 5 * (C) 2001 Dirk Mueller (mueller@kde.org)
6 * (C) 2007 David Smith (catfish.man@gmail.com) 6 * (C) 2007 David Smith (catfish.man@gmail.com)
7 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012, 2013 Apple Inc. All rights reserved. 7 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012, 2013 Apple Inc. All rights reserved.
8 * (C) 2007 Eric Seidel (eric@webkit.org) 8 * (C) 2007 Eric Seidel (eric@webkit.org)
9 * 9 *
10 * This library is free software; you can redistribute it and/or 10 * This library is free software; you can redistribute it and/or
(...skipping 2355 matching lines...) Expand 10 before | Expand all | Expand 10 after
2366 const ShadowRoot* shadowRoot = containingShadowRoot(); 2366 const ShadowRoot* shadowRoot = containingShadowRoot();
2367 while (shadowRoot) { 2367 while (shadowRoot) {
2368 const Element* ancestorShadowHost = shadowRoot->shadowHost(); 2368 const Element* ancestorShadowHost = shadowRoot->shadowHost();
2369 if (ancestorShadowHost == shadowHost) 2369 if (ancestorShadowHost == shadowHost)
2370 return true; 2370 return true;
2371 shadowRoot = ancestorShadowHost->containingShadowRoot(); 2371 shadowRoot = ancestorShadowHost->containingShadowRoot();
2372 } 2372 }
2373 return false; 2373 return false;
2374 } 2374 }
2375 2375
2376 LayoutSize Element::minimumSizeForResizing() const
2377 {
2378 return hasRareData() ? elementRareData()->minimumSizeForResizing() : default MinimumSizeForResizing();
2379 }
2380
2381 void Element::setMinimumSizeForResizing(const LayoutSize& size)
2382 {
2383 if (!hasRareData() && size == defaultMinimumSizeForResizing())
2384 return;
2385 ensureElementRareData().setMinimumSizeForResizing(size);
2386 }
2387
2388 RenderStyle* Element::computedStyle(PseudoId pseudoElementSpecifier) 2376 RenderStyle* Element::computedStyle(PseudoId pseudoElementSpecifier)
2389 { 2377 {
2390 if (PseudoElement* element = pseudoElement(pseudoElementSpecifier)) 2378 if (PseudoElement* element = pseudoElement(pseudoElementSpecifier))
2391 return element->computedStyle(); 2379 return element->computedStyle();
2392 2380
2393 // FIXME: Find and use the renderer from the pseudo element instead of the a ctual element so that the 'length' 2381 // FIXME: Find and use the renderer from the pseudo element instead of the a ctual element so that the 'length'
2394 // properties, which are only known by the renderer because it did the layou t, will be correct and so that the 2382 // properties, which are only known by the renderer because it did the layou t, will be correct and so that the
2395 // values returned for the ":selection" pseudo-element will be correct. 2383 // values returned for the ":selection" pseudo-element will be correct.
2396 if (RenderStyle* usedStyle = renderStyle()) { 2384 if (RenderStyle* usedStyle = renderStyle()) {
2397 if (pseudoElementSpecifier) { 2385 if (pseudoElementSpecifier) {
(...skipping 857 matching lines...) Expand 10 before | Expand all | Expand 10 after
3255 || isHTMLObjectElement(*this) 3243 || isHTMLObjectElement(*this)
3256 || isHTMLAppletElement(*this) 3244 || isHTMLAppletElement(*this)
3257 || isHTMLCanvasElement(*this)) 3245 || isHTMLCanvasElement(*this))
3258 return false; 3246 return false;
3259 if (FullscreenElementStack::isActiveFullScreenElement(this)) 3247 if (FullscreenElementStack::isActiveFullScreenElement(this))
3260 return false; 3248 return false;
3261 return true; 3249 return true;
3262 } 3250 }
3263 3251
3264 } // namespace WebCore 3252 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698