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

Side by Side Diff: third_party/WebKit/Source/core/html/HTMLSelectElement.cpp

Issue 1896793002: Rename (updateLayout/updateStyle).*.() to updateStyleAndLayout.*.() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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
OLDNEW
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 931 matching lines...) Expand 10 before | Expand all | Expand 10 after
942 } 942 }
943 943
944 void HTMLSelectElement::scrollToOptionTask() 944 void HTMLSelectElement::scrollToOptionTask()
945 { 945 {
946 HTMLOptionElement* option = m_optionToScrollTo.release(); 946 HTMLOptionElement* option = m_optionToScrollTo.release();
947 if (!option || !inShadowIncludingDocument()) 947 if (!option || !inShadowIncludingDocument())
948 return; 948 return;
949 // optionRemoved() makes sure m_optionToScrollTo doesn't have an option with 949 // optionRemoved() makes sure m_optionToScrollTo doesn't have an option with
950 // another owner. 950 // another owner.
951 ASSERT(option->ownerSelectElement() == this); 951 ASSERT(option->ownerSelectElement() == this);
952 document().updateLayoutIgnorePendingStylesheets(); 952 document().updateStyleAndLayoutIgnorePendingStylesheets();
953 if (!layoutObject() || !layoutObject()->isListBox()) 953 if (!layoutObject() || !layoutObject()->isListBox())
954 return; 954 return;
955 LayoutRect bounds = option->boundingBox(); 955 LayoutRect bounds = option->boundingBox();
956 toLayoutListBox(layoutObject())->scrollToRect(bounds); 956 toLayoutListBox(layoutObject())->scrollToRect(bounds);
957 } 957 }
958 958
959 void HTMLSelectElement::optionSelectionStateChanged(HTMLOptionElement* option, b ool optionIsSelected) 959 void HTMLSelectElement::optionSelectionStateChanged(HTMLOptionElement* option, b ool optionIsSelected)
960 { 960 {
961 ASSERT(option->ownerSelectElement() == this); 961 ASSERT(option->ownerSelectElement() == this);
962 if (optionIsSelected) 962 if (optionIsSelected)
(...skipping 1025 matching lines...) Expand 10 before | Expand all | Expand 10 after
1988 m_popupIsVisible = false; 1988 m_popupIsVisible = false;
1989 m_popup = nullptr; 1989 m_popup = nullptr;
1990 } 1990 }
1991 1991
1992 void HTMLSelectElement::resetTypeAheadSessionForTesting() 1992 void HTMLSelectElement::resetTypeAheadSessionForTesting()
1993 { 1993 {
1994 m_typeAhead.resetSession(); 1994 m_typeAhead.resetSession();
1995 } 1995 }
1996 1996
1997 } // namespace blink 1997 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698