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

Side by Side Diff: Source/core/rendering/RenderListBox.h

Issue 189543012: Update <select> when any of its <option> children has "display: none" (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Patch without setTimeout Created 6 years, 9 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 * This file is part of the select element renderer in WebCore. 2 * This file is part of the select element renderer in WebCore.
3 * 3 *
4 * Copyright (C) 2006, 2007, 2009 Apple Inc. All rights reserved. 4 * Copyright (C) 2006, 2007, 2009 Apple Inc. All rights reserved.
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions 7 * modification, are permitted provided that the following conditions
8 * are met: 8 * are met:
9 * 9 *
10 * 1. Redistributions of source code must retain the above copyright 10 * 1. Redistributions of source code must retain the above copyright
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 void paintItemBackground(PaintInfo&, const LayoutPoint&, int listIndex); 147 void paintItemBackground(PaintInfo&, const LayoutPoint&, int listIndex);
148 void scrollToRevealSelection(); 148 void scrollToRevealSelection();
149 149
150 bool m_optionsChanged; 150 bool m_optionsChanged;
151 bool m_scrollToRevealSelectionAfterLayout; 151 bool m_scrollToRevealSelectionAfterLayout;
152 bool m_inAutoscroll; 152 bool m_inAutoscroll;
153 int m_optionsWidth; 153 int m_optionsWidth;
154 int m_indexOffset; 154 int m_indexOffset;
155 155
156 RefPtr<Scrollbar> m_vBar; 156 RefPtr<Scrollbar> m_vBar;
157 Vector<int> m_listItemIndex;
esprehn 2014/03/21 20:43:39 It seems unfortunate to keep this Vector the size
spartha 2014/03/21 21:29:03 Yeah, totally agree. The only reason I want to use
157 }; 158 };
158 159
159 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderListBox, isListBox()); 160 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderListBox, isListBox());
160 161
161 } // namepace WebCore 162 } // namepace WebCore
162 163
163 #endif // RenderListBox_h 164 #endif // RenderListBox_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698