OLD | NEW |
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 2415 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2426 const ShadowRoot* shadowRoot = containingShadowRoot(); | 2426 const ShadowRoot* shadowRoot = containingShadowRoot(); |
2427 while (shadowRoot) { | 2427 while (shadowRoot) { |
2428 const Element* ancestorShadowHost = shadowRoot->shadowHost(); | 2428 const Element* ancestorShadowHost = shadowRoot->shadowHost(); |
2429 if (ancestorShadowHost == shadowHost) | 2429 if (ancestorShadowHost == shadowHost) |
2430 return true; | 2430 return true; |
2431 shadowRoot = ancestorShadowHost->containingShadowRoot(); | 2431 shadowRoot = ancestorShadowHost->containingShadowRoot(); |
2432 } | 2432 } |
2433 return false; | 2433 return false; |
2434 } | 2434 } |
2435 | 2435 |
2436 LayoutSize Element::minimumSizeForResizing() const | |
2437 { | |
2438 return hasRareData() ? elementRareData()->minimumSizeForResizing() : default
MinimumSizeForResizing(); | |
2439 } | |
2440 | |
2441 void Element::setMinimumSizeForResizing(const LayoutSize& size) | |
2442 { | |
2443 if (!hasRareData() && size == defaultMinimumSizeForResizing()) | |
2444 return; | |
2445 ensureElementRareData().setMinimumSizeForResizing(size); | |
2446 } | |
2447 | |
2448 RenderStyle* Element::computedStyle(PseudoId pseudoElementSpecifier) | 2436 RenderStyle* Element::computedStyle(PseudoId pseudoElementSpecifier) |
2449 { | 2437 { |
2450 if (PseudoElement* element = pseudoElement(pseudoElementSpecifier)) | 2438 if (PseudoElement* element = pseudoElement(pseudoElementSpecifier)) |
2451 return element->computedStyle(); | 2439 return element->computedStyle(); |
2452 | 2440 |
2453 // FIXME: Find and use the renderer from the pseudo element instead of the a
ctual element so that the 'length' | 2441 // FIXME: Find and use the renderer from the pseudo element instead of the a
ctual element so that the 'length' |
2454 // properties, which are only known by the renderer because it did the layou
t, will be correct and so that the | 2442 // properties, which are only known by the renderer because it did the layou
t, will be correct and so that the |
2455 // values returned for the ":selection" pseudo-element will be correct. | 2443 // values returned for the ":selection" pseudo-element will be correct. |
2456 if (RenderStyle* usedStyle = renderStyle()) { | 2444 if (RenderStyle* usedStyle = renderStyle()) { |
2457 if (pseudoElementSpecifier) { | 2445 if (pseudoElementSpecifier) { |
(...skipping 857 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3315 || isHTMLObjectElement(*this) | 3303 || isHTMLObjectElement(*this) |
3316 || isHTMLAppletElement(*this) | 3304 || isHTMLAppletElement(*this) |
3317 || isHTMLCanvasElement(*this)) | 3305 || isHTMLCanvasElement(*this)) |
3318 return false; | 3306 return false; |
3319 if (FullscreenElementStack::isActiveFullScreenElement(this)) | 3307 if (FullscreenElementStack::isActiveFullScreenElement(this)) |
3320 return false; | 3308 return false; |
3321 return true; | 3309 return true; |
3322 } | 3310 } |
3323 | 3311 |
3324 } // namespace WebCore | 3312 } // namespace WebCore |
OLD | NEW |