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

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

Issue 53373003: Remove display:run-in as per https://groups.google.com/a/chromium.org/forum/#!topic/blink-dev/_tHSX… (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fix test Created 7 years, 1 month 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/rendering/RenderListBox.h ('k') | Source/core/rendering/RenderMarquee.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) 2006, 2007, 2008, 2011 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2008, 2011 Apple Inc. All rights reserved.
3 * 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/) 3 * 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/)
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 8 *
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 } 141 }
142 m_optionsWidth = static_cast<int>(ceilf(width)); 142 m_optionsWidth = static_cast<int>(ceilf(width));
143 m_optionsChanged = false; 143 m_optionsChanged = false;
144 144
145 setHasVerticalScrollbar(true); 145 setHasVerticalScrollbar(true);
146 146
147 setNeedsLayoutAndPrefWidthsRecalc(); 147 setNeedsLayoutAndPrefWidthsRecalc();
148 } 148 }
149 } 149 }
150 150
151 bool RenderListBox::canBeReplacedWithInlineRunIn() const
152 {
153 return false;
154 }
155
156 void RenderListBox::selectionChanged() 151 void RenderListBox::selectionChanged()
157 { 152 {
158 repaint(); 153 repaint();
159 if (!m_inAutoscroll) { 154 if (!m_inAutoscroll) {
160 if (m_optionsChanged || needsLayout()) 155 if (m_optionsChanged || needsLayout())
161 m_scrollToRevealSelectionAfterLayout = true; 156 m_scrollToRevealSelectionAfterLayout = true;
162 else 157 else
163 scrollToRevealSelection(); 158 scrollToRevealSelection();
164 } 159 }
165 160
(...skipping 762 matching lines...) Expand 10 before | Expand all | Expand 10 after
928 923
929 if (m_vBar) 924 if (m_vBar)
930 m_vBar->styleChanged(); 925 m_vBar->styleChanged();
931 926
932 // Force an update since we know the scrollbars have changed things. 927 // Force an update since we know the scrollbars have changed things.
933 if (document().hasAnnotatedRegions()) 928 if (document().hasAnnotatedRegions())
934 document().setAnnotatedRegionsDirty(true); 929 document().setAnnotatedRegionsDirty(true);
935 } 930 }
936 931
937 } // namespace WebCore 932 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderListBox.h ('k') | Source/core/rendering/RenderMarquee.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698