OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). | 2 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). |
3 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 3 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
4 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 4 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
5 * (C) 2001 Dirk Mueller (mueller@kde.org) | 5 * (C) 2001 Dirk Mueller (mueller@kde.org) |
6 * Copyright (C) 2004, 2005, 2006, 2007, 2009, 2010, 2011 Apple Inc. All rights
reserved. | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2009, 2010, 2011 Apple Inc. All rights
reserved. |
7 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) | 7 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) |
8 * Copyright (C) 2010 Google Inc. All rights reserved. | 8 * Copyright (C) 2010 Google Inc. All rights reserved. |
9 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) | 9 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) |
10 * | 10 * |
(...skipping 935 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
946 } | 946 } |
947 | 947 |
948 void HTMLSelectElement::scrollToOptionTask() | 948 void HTMLSelectElement::scrollToOptionTask() |
949 { | 949 { |
950 HTMLOptionElement* option = m_optionToScrollTo.release(); | 950 HTMLOptionElement* option = m_optionToScrollTo.release(); |
951 if (!option || !inShadowIncludingDocument()) | 951 if (!option || !inShadowIncludingDocument()) |
952 return; | 952 return; |
953 // optionRemoved() makes sure m_optionToScrollTo doesn't have an option with | 953 // optionRemoved() makes sure m_optionToScrollTo doesn't have an option with |
954 // another owner. | 954 // another owner. |
955 ASSERT(option->ownerSelectElement() == this); | 955 ASSERT(option->ownerSelectElement() == this); |
956 document().updateLayoutIgnorePendingStylesheets(); | 956 document().updateStyleAndLayoutIgnorePendingStylesheets(); |
957 if (!layoutObject() || !layoutObject()->isListBox()) | 957 if (!layoutObject() || !layoutObject()->isListBox()) |
958 return; | 958 return; |
959 LayoutRect bounds = option->boundingBox(); | 959 LayoutRect bounds = option->boundingBox(); |
960 toLayoutListBox(layoutObject())->scrollToRect(bounds); | 960 toLayoutListBox(layoutObject())->scrollToRect(bounds); |
961 } | 961 } |
962 | 962 |
963 void HTMLSelectElement::optionSelectionStateChanged(HTMLOptionElement* option, b
ool optionIsSelected) | 963 void HTMLSelectElement::optionSelectionStateChanged(HTMLOptionElement* option, b
ool optionIsSelected) |
964 { | 964 { |
965 ASSERT(option->ownerSelectElement() == this); | 965 ASSERT(option->ownerSelectElement() == this); |
966 if (optionIsSelected) | 966 if (optionIsSelected) |
(...skipping 1096 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2063 } | 2063 } |
2064 | 2064 |
2065 void HTMLSelectElement::didMutateSubtree() | 2065 void HTMLSelectElement::didMutateSubtree() |
2066 { | 2066 { |
2067 DCHECK(popupIsVisible()); | 2067 DCHECK(popupIsVisible()); |
2068 DCHECK(m_popup); | 2068 DCHECK(m_popup); |
2069 m_popup->updateFromElement(PopupMenu::ByDOMChange); | 2069 m_popup->updateFromElement(PopupMenu::ByDOMChange); |
2070 } | 2070 } |
2071 | 2071 |
2072 } // namespace blink | 2072 } // namespace blink |
OLD | NEW |