| 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 2364 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2375 const ShadowRoot* shadowRoot = containingShadowRoot(); | 2375 const ShadowRoot* shadowRoot = containingShadowRoot(); |
| 2376 while (shadowRoot) { | 2376 while (shadowRoot) { |
| 2377 const Element* ancestorShadowHost = shadowRoot->shadowHost(); | 2377 const Element* ancestorShadowHost = shadowRoot->shadowHost(); |
| 2378 if (ancestorShadowHost == shadowHost) | 2378 if (ancestorShadowHost == shadowHost) |
| 2379 return true; | 2379 return true; |
| 2380 shadowRoot = ancestorShadowHost->containingShadowRoot(); | 2380 shadowRoot = ancestorShadowHost->containingShadowRoot(); |
| 2381 } | 2381 } |
| 2382 return false; | 2382 return false; |
| 2383 } | 2383 } |
| 2384 | 2384 |
| 2385 LayoutSize Element::minimumSizeForResizing() const | |
| 2386 { | |
| 2387 return hasRareData() ? elementRareData()->minimumSizeForResizing() : default
MinimumSizeForResizing(); | |
| 2388 } | |
| 2389 | |
| 2390 void Element::setMinimumSizeForResizing(const LayoutSize& size) | |
| 2391 { | |
| 2392 if (!hasRareData() && size == defaultMinimumSizeForResizing()) | |
| 2393 return; | |
| 2394 ensureElementRareData().setMinimumSizeForResizing(size); | |
| 2395 } | |
| 2396 | |
| 2397 RenderStyle* Element::computedStyle(PseudoId pseudoElementSpecifier) | 2385 RenderStyle* Element::computedStyle(PseudoId pseudoElementSpecifier) |
| 2398 { | 2386 { |
| 2399 if (PseudoElement* element = pseudoElement(pseudoElementSpecifier)) | 2387 if (PseudoElement* element = pseudoElement(pseudoElementSpecifier)) |
| 2400 return element->computedStyle(); | 2388 return element->computedStyle(); |
| 2401 | 2389 |
| 2402 // FIXME: Find and use the renderer from the pseudo element instead of the a
ctual element so that the 'length' | 2390 // FIXME: Find and use the renderer from the pseudo element instead of the a
ctual element so that the 'length' |
| 2403 // properties, which are only known by the renderer because it did the layou
t, will be correct and so that the | 2391 // properties, which are only known by the renderer because it did the layou
t, will be correct and so that the |
| 2404 // values returned for the ":selection" pseudo-element will be correct. | 2392 // values returned for the ":selection" pseudo-element will be correct. |
| 2405 if (RenderStyle* usedStyle = renderStyle()) { | 2393 if (RenderStyle* usedStyle = renderStyle()) { |
| 2406 if (pseudoElementSpecifier) { | 2394 if (pseudoElementSpecifier) { |
| (...skipping 857 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3264 || isHTMLObjectElement(*this) | 3252 || isHTMLObjectElement(*this) |
| 3265 || isHTMLAppletElement(*this) | 3253 || isHTMLAppletElement(*this) |
| 3266 || isHTMLCanvasElement(*this)) | 3254 || isHTMLCanvasElement(*this)) |
| 3267 return false; | 3255 return false; |
| 3268 if (FullscreenElementStack::isActiveFullScreenElement(this)) | 3256 if (FullscreenElementStack::isActiveFullScreenElement(this)) |
| 3269 return false; | 3257 return false; |
| 3270 return true; | 3258 return true; |
| 3271 } | 3259 } |
| 3272 | 3260 |
| 3273 } // namespace WebCore | 3261 } // namespace WebCore |
| OLD | NEW |