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 579 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
590 } | 590 } |
591 | 591 |
592 int Element::offsetHeight() | 592 int Element::offsetHeight() |
593 { | 593 { |
594 document().partialUpdateLayoutIgnorePendingStylesheets(this); | 594 document().partialUpdateLayoutIgnorePendingStylesheets(this); |
595 if (RenderBoxModelObject* renderer = renderBoxModelObject()) | 595 if (RenderBoxModelObject* renderer = renderBoxModelObject()) |
596 return adjustLayoutUnitForAbsoluteZoom(renderer->pixelSnappedOffsetHeigh
t(), *renderer).round(); | 596 return adjustLayoutUnitForAbsoluteZoom(renderer->pixelSnappedOffsetHeigh
t(), *renderer).round(); |
597 return 0; | 597 return 0; |
598 } | 598 } |
599 | 599 |
600 Element* Element::bindingsOffsetParent() | 600 Element* Element::offsetParentForBindings() |
601 { | 601 { |
602 Element* element = offsetParent(); | 602 Element* element = offsetParent(); |
603 if (!element || !element->isInShadowTree()) | 603 if (!element || !element->isInShadowTree()) |
604 return element; | 604 return element; |
605 return element->containingShadowRoot()->shouldExposeToBindings() ? element :
0; | 605 return element->containingShadowRoot()->shouldExposeToBindings() ? element :
0; |
606 } | 606 } |
607 | 607 |
608 Element* Element::offsetParent() | 608 Element* Element::offsetParent() |
609 { | 609 { |
610 document().updateLayoutIgnorePendingStylesheets(); | 610 document().updateLayoutIgnorePendingStylesheets(); |
(...skipping 3026 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3637 // Before doing so, we need to resolve issues in HTMLSelectElement::recalcLi
stItems | 3637 // Before doing so, we need to resolve issues in HTMLSelectElement::recalcLi
stItems |
3638 // and RenderMenuList::setText. See also https://bugs.webkit.org/show_bug.cg
i?id=88405 | 3638 // and RenderMenuList::setText. See also https://bugs.webkit.org/show_bug.cg
i?id=88405 |
3639 if (hasTagName(optionTag) || hasTagName(optgroupTag)) | 3639 if (hasTagName(optionTag) || hasTagName(optgroupTag)) |
3640 return false; | 3640 return false; |
3641 if (FullscreenElementStack::isActiveFullScreenElement(this)) | 3641 if (FullscreenElementStack::isActiveFullScreenElement(this)) |
3642 return false; | 3642 return false; |
3643 return true; | 3643 return true; |
3644 } | 3644 } |
3645 | 3645 |
3646 } // namespace WebCore | 3646 } // namespace WebCore |
OLD | NEW |