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

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

Issue 620753006: Rendering API cleanup (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Patch for landing Created 6 years, 2 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
« no previous file with comments | « Source/core/rendering/RenderListBox.h ('k') | Source/core/rendering/RenderMarquee.h » ('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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 #include "core/frame/LocalFrame.h" 42 #include "core/frame/LocalFrame.h"
43 #include "core/html/HTMLOptGroupElement.h" 43 #include "core/html/HTMLOptGroupElement.h"
44 #include "core/html/HTMLOptionElement.h" 44 #include "core/html/HTMLOptionElement.h"
45 #include "core/html/HTMLSelectElement.h" 45 #include "core/html/HTMLSelectElement.h"
46 #include "core/page/EventHandler.h" 46 #include "core/page/EventHandler.h"
47 #include "core/page/FocusController.h" 47 #include "core/page/FocusController.h"
48 #include "core/page/Page.h" 48 #include "core/page/Page.h"
49 #include "core/page/SpatialNavigation.h" 49 #include "core/page/SpatialNavigation.h"
50 #include "core/rendering/HitTestResult.h" 50 #include "core/rendering/HitTestResult.h"
51 #include "core/rendering/PaintInfo.h" 51 #include "core/rendering/PaintInfo.h"
52 #include "core/rendering/RenderScrollbar.h"
53 #include "core/rendering/RenderText.h" 52 #include "core/rendering/RenderText.h"
54 #include "core/rendering/RenderTheme.h" 53 #include "core/rendering/RenderTheme.h"
55 #include "core/rendering/RenderView.h" 54 #include "core/rendering/RenderView.h"
56 #include "core/rendering/TextRunConstructor.h" 55 #include "core/rendering/TextRunConstructor.h"
57 #include "platform/fonts/FontCache.h" 56 #include "platform/fonts/FontCache.h"
58 #include "platform/graphics/GraphicsContext.h" 57 #include "platform/graphics/GraphicsContext.h"
59 #include "platform/scroll/Scrollbar.h"
60 #include "platform/text/BidiTextRun.h" 58 #include "platform/text/BidiTextRun.h"
61 #include <math.h> 59 #include <math.h>
62 60
63 namespace blink { 61 namespace blink {
64 62
65 using namespace HTMLNames; 63 using namespace HTMLNames;
66 64
67 // Default size when the multiple attribute is present but size attribute is abs ent. 65 // Default size when the multiple attribute is present but size attribute is abs ent.
68 const int defaultSize = 4; 66 const int defaultSize = 4;
69 67
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 } 133 }
136 134
137 void RenderListBox::computeIntrinsicLogicalWidths(LayoutUnit& minLogicalWidth, L ayoutUnit& maxLogicalWidth) const 135 void RenderListBox::computeIntrinsicLogicalWidths(LayoutUnit& minLogicalWidth, L ayoutUnit& maxLogicalWidth) const
138 { 136 {
139 RenderBlockFlow::computeIntrinsicLogicalWidths(minLogicalWidth, maxLogicalWi dth); 137 RenderBlockFlow::computeIntrinsicLogicalWidths(minLogicalWidth, maxLogicalWi dth);
140 if (style()->width().isPercent()) 138 if (style()->width().isPercent())
141 minLogicalWidth = 0; 139 minLogicalWidth = 0;
142 } 140 }
143 141
144 } // namespace blink 142 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderListBox.h ('k') | Source/core/rendering/RenderMarquee.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698