| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |