OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2013, Google Inc. All rights reserved. | 2 * Copyright (C) 2013, Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 16 matching lines...) Expand all Loading... |
27 */ | 27 */ |
28 | 28 |
29 #include "config.h" | 29 #include "config.h" |
30 #include "core/accessibility/AXInlineTextBox.h" | 30 #include "core/accessibility/AXInlineTextBox.h" |
31 | 31 |
32 #include "core/accessibility/AXObjectCache.h" | 32 #include "core/accessibility/AXObjectCache.h" |
33 #include "core/dom/Range.h" | 33 #include "core/dom/Range.h" |
34 #include "core/rendering/RenderText.h" | 34 #include "core/rendering/RenderText.h" |
35 #include "platform/LayoutUnit.h" | 35 #include "platform/LayoutUnit.h" |
36 | 36 |
37 using namespace std; | |
38 | 37 |
39 namespace WebCore { | 38 namespace WebCore { |
40 | 39 |
41 using namespace HTMLNames; | 40 using namespace HTMLNames; |
42 | 41 |
43 AXInlineTextBox::AXInlineTextBox(PassRefPtr<AbstractInlineTextBox> inlineTextBox
) | 42 AXInlineTextBox::AXInlineTextBox(PassRefPtr<AbstractInlineTextBox> inlineTextBox
) |
44 : m_inlineTextBox(inlineTextBox) | 43 : m_inlineTextBox(inlineTextBox) |
45 { | 44 { |
46 RenderText* renderText = m_inlineTextBox->renderText(); | 45 RenderText* renderText = m_inlineTextBox->renderText(); |
47 m_axObjectCache = renderText->document().axObjectCache(); | 46 m_axObjectCache = renderText->document().axObjectCache(); |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 case AbstractInlineTextBox::TopToBottom: | 144 case AbstractInlineTextBox::TopToBottom: |
146 return AccessibilityTextDirectionTopToBottom; | 145 return AccessibilityTextDirectionTopToBottom; |
147 case AbstractInlineTextBox::BottomToTop: | 146 case AbstractInlineTextBox::BottomToTop: |
148 return AccessibilityTextDirectionBottomToTop; | 147 return AccessibilityTextDirectionBottomToTop; |
149 } | 148 } |
150 | 149 |
151 return AccessibilityTextDirectionLeftToRight; | 150 return AccessibilityTextDirectionLeftToRight; |
152 } | 151 } |
153 | 152 |
154 } // namespace WebCore | 153 } // namespace WebCore |
OLD | NEW |