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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « Source/core/dom/Element.h ('k') | Source/core/dom/ElementRareData.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 2424 matching lines...) Expand 10 before | Expand all | Expand 10 after
2435 const ShadowRoot* shadowRoot = containingShadowRoot(); 2435 const ShadowRoot* shadowRoot = containingShadowRoot();
2436 while (shadowRoot) { 2436 while (shadowRoot) {
2437 const Element* ancestorShadowHost = shadowRoot->shadowHost(); 2437 const Element* ancestorShadowHost = shadowRoot->shadowHost();
2438 if (ancestorShadowHost == shadowHost) 2438 if (ancestorShadowHost == shadowHost)
2439 return true; 2439 return true;
2440 shadowRoot = ancestorShadowHost->containingShadowRoot(); 2440 shadowRoot = ancestorShadowHost->containingShadowRoot();
2441 } 2441 }
2442 return false; 2442 return false;
2443 } 2443 }
2444 2444
2445 LayoutSize Element::minimumSizeForResizing() const
2446 {
2447 return hasRareData() ? elementRareData()->minimumSizeForResizing() : default MinimumSizeForResizing();
2448 }
2449
2450 void Element::setMinimumSizeForResizing(const LayoutSize& size)
2451 {
2452 if (!hasRareData() && size == defaultMinimumSizeForResizing())
2453 return;
2454 ensureElementRareData().setMinimumSizeForResizing(size);
2455 }
2456
2445 RenderStyle* Element::computedStyle(PseudoId pseudoElementSpecifier) 2457 RenderStyle* Element::computedStyle(PseudoId pseudoElementSpecifier)
2446 { 2458 {
2447 if (PseudoElement* element = pseudoElement(pseudoElementSpecifier)) 2459 if (PseudoElement* element = pseudoElement(pseudoElementSpecifier))
2448 return element->computedStyle(); 2460 return element->computedStyle();
2449 2461
2450 // FIXME: Find and use the renderer from the pseudo element instead of the a ctual element so that the 'length' 2462 // FIXME: Find and use the renderer from the pseudo element instead of the a ctual element so that the 'length'
2451 // properties, which are only known by the renderer because it did the layou t, will be correct and so that the 2463 // properties, which are only known by the renderer because it did the layou t, will be correct and so that the
2452 // values returned for the ":selection" pseudo-element will be correct. 2464 // values returned for the ":selection" pseudo-element will be correct.
2453 if (RenderStyle* usedStyle = renderStyle()) { 2465 if (RenderStyle* usedStyle = renderStyle()) {
2454 if (pseudoElementSpecifier) { 2466 if (pseudoElementSpecifier) {
(...skipping 866 matching lines...) Expand 10 before | Expand all | Expand 10 after
3321 3333
3322 void Element::trace(Visitor* visitor) 3334 void Element::trace(Visitor* visitor)
3323 { 3335 {
3324 if (hasRareData()) 3336 if (hasRareData())
3325 visitor->trace(elementRareData()); 3337 visitor->trace(elementRareData());
3326 3338
3327 ContainerNode::trace(visitor); 3339 ContainerNode::trace(visitor);
3328 } 3340 }
3329 3341
3330 } // namespace WebCore 3342 } // namespace WebCore
OLDNEW
« 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