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

Side by Side Diff: Source/core/layout/LayoutListBox.cpp

Issue 940373003: Rename RenderText to LayoutText (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 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
« no previous file with comments | « Source/core/layout/LayoutInline.cpp ('k') | Source/core/layout/LayoutListMarker.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 29 matching lines...) Expand all
40 #include "core/dom/StyleEngine.h" 40 #include "core/dom/StyleEngine.h"
41 #include "core/editing/FrameSelection.h" 41 #include "core/editing/FrameSelection.h"
42 #include "core/frame/FrameView.h" 42 #include "core/frame/FrameView.h"
43 #include "core/frame/LocalFrame.h" 43 #include "core/frame/LocalFrame.h"
44 #include "core/html/HTMLDivElement.h" 44 #include "core/html/HTMLDivElement.h"
45 #include "core/html/HTMLOptGroupElement.h" 45 #include "core/html/HTMLOptGroupElement.h"
46 #include "core/html/HTMLOptionElement.h" 46 #include "core/html/HTMLOptionElement.h"
47 #include "core/html/HTMLSelectElement.h" 47 #include "core/html/HTMLSelectElement.h"
48 #include "core/layout/HitTestResult.h" 48 #include "core/layout/HitTestResult.h"
49 #include "core/layout/Layer.h" 49 #include "core/layout/Layer.h"
50 #include "core/layout/LayoutText.h"
50 #include "core/layout/LayoutTheme.h" 51 #include "core/layout/LayoutTheme.h"
51 #include "core/layout/LayoutView.h" 52 #include "core/layout/LayoutView.h"
52 #include "core/layout/PaintInfo.h" 53 #include "core/layout/PaintInfo.h"
53 #include "core/layout/TextRunConstructor.h" 54 #include "core/layout/TextRunConstructor.h"
54 #include "core/page/EventHandler.h" 55 #include "core/page/EventHandler.h"
55 #include "core/page/FocusController.h" 56 #include "core/page/FocusController.h"
56 #include "core/page/Page.h" 57 #include "core/page/Page.h"
57 #include "core/page/SpatialNavigation.h" 58 #include "core/page/SpatialNavigation.h"
58 #include "core/rendering/RenderText.h"
59 #include "platform/fonts/FontCache.h" 59 #include "platform/fonts/FontCache.h"
60 #include "platform/graphics/GraphicsContext.h" 60 #include "platform/graphics/GraphicsContext.h"
61 #include "platform/text/BidiTextRun.h" 61 #include "platform/text/BidiTextRun.h"
62 #include <math.h> 62 #include <math.h>
63 63
64 namespace blink { 64 namespace blink {
65 65
66 using namespace HTMLNames; 66 using namespace HTMLNames;
67 67
68 // Default size when the multiple attribute is present but size attribute is abs ent. 68 // Default size when the multiple attribute is present but size attribute is abs ent.
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 void LayoutListBox::scrollToRect(const LayoutRect& rect) 150 void LayoutListBox::scrollToRect(const LayoutRect& rect)
151 { 151 {
152 if (hasOverflowClip()) { 152 if (hasOverflowClip()) {
153 ASSERT(layer()); 153 ASSERT(layer());
154 ASSERT(layer()->scrollableArea()); 154 ASSERT(layer()->scrollableArea());
155 layer()->scrollableArea()->exposeRect(rect, ScrollAlignment::alignToEdge IfNeeded, ScrollAlignment::alignToEdgeIfNeeded); 155 layer()->scrollableArea()->exposeRect(rect, ScrollAlignment::alignToEdge IfNeeded, ScrollAlignment::alignToEdgeIfNeeded);
156 } 156 }
157 } 157 }
158 158
159 } // namespace blink 159 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/layout/LayoutInline.cpp ('k') | Source/core/layout/LayoutListMarker.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698