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

Side by Side Diff: Source/core/html/HTMLSelectElement.h

Issue 791533004: Don't updateRenderTree in the middle of a DOM insertion. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased Created 6 years 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/html/HTMLOptionElement.cpp ('k') | Source/core/html/HTMLSelectElement.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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) 2000 Dirk Mueller (mueller@kde.org) 5 * (C) 2000 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 * Copyright (C) 2010 Google Inc. All rights reserved. 7 * Copyright (C) 2010 Google Inc. All rights reserved.
8 * 8 *
9 * This library is free software; you can redistribute it and/or 9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Library General Public 10 * modify it under the terms of the GNU Library General Public
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 169
170 virtual bool isOptionalFormControl() const override { return !isRequiredForm Control(); } 170 virtual bool isOptionalFormControl() const override { return !isRequiredForm Control(); }
171 virtual bool isRequiredFormControl() const override; 171 virtual bool isRequiredFormControl() const override;
172 172
173 bool hasPlaceholderLabelOption() const; 173 bool hasPlaceholderLabelOption() const;
174 174
175 enum SelectOptionFlag { 175 enum SelectOptionFlag {
176 DeselectOtherOptions = 1 << 0, 176 DeselectOtherOptions = 1 << 0,
177 DispatchInputAndChangeEvent = 1 << 1, 177 DispatchInputAndChangeEvent = 1 << 1,
178 UserDriven = 1 << 2, 178 UserDriven = 1 << 2,
179 DelayScrollToSelection = 1 << 3,
180 }; 179 };
181 typedef unsigned SelectOptionFlags; 180 typedef unsigned SelectOptionFlags;
182 void selectOption(int optionIndex, SelectOptionFlags = 0); 181 void selectOption(int optionIndex, SelectOptionFlags = 0);
183 void deselectItemsWithoutValidation(HTMLElement* elementToExclude = 0); 182 void deselectItemsWithoutValidation(HTMLElement* elementToExclude = 0);
184 void parseMultipleAttribute(const AtomicString&); 183 void parseMultipleAttribute(const AtomicString&);
185 int lastSelectedListIndex() const; 184 int lastSelectedListIndex() const;
186 void updateSelectedState(int listIndex, bool multi, bool shift); 185 void updateSelectedState(int listIndex, bool multi, bool shift);
187 void menuListDefaultEventHandler(Event*); 186 void menuListDefaultEventHandler(Event*);
188 void handlePopupOpenKeyboardEvent(Event*); 187 void handlePopupOpenKeyboardEvent(Event*);
189 bool shouldOpenPopupForKeyDownEvent(KeyboardEvent*); 188 bool shouldOpenPopupForKeyDownEvent(KeyboardEvent*);
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 int m_size; 223 int m_size;
225 int m_lastOnChangeIndex; 224 int m_lastOnChangeIndex;
226 int m_activeSelectionAnchorIndex; 225 int m_activeSelectionAnchorIndex;
227 int m_activeSelectionEndIndex; 226 int m_activeSelectionEndIndex;
228 bool m_isProcessingUserDrivenChange; 227 bool m_isProcessingUserDrivenChange;
229 bool m_multiple; 228 bool m_multiple;
230 bool m_activeSelectionState; 229 bool m_activeSelectionState;
231 mutable bool m_shouldRecalcListItems; 230 mutable bool m_shouldRecalcListItems;
232 int m_suggestedIndex; 231 int m_suggestedIndex;
233 bool m_isAutofilledByPreview; 232 bool m_isAutofilledByPreview;
234 bool m_scrollToSelectionLater;
235 }; 233 };
236 234
237 } // namespace blink 235 } // namespace blink
238 236
239 #endif // HTMLSelectElement_h 237 #endif // HTMLSelectElement_h
OLDNEW
« no previous file with comments | « Source/core/html/HTMLOptionElement.cpp ('k') | Source/core/html/HTMLSelectElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698