| 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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 { | 57 { |
| 58 return adoptRef(new AXInlineTextBox(inlineTextBox)); | 58 return adoptRef(new AXInlineTextBox(inlineTextBox)); |
| 59 } | 59 } |
| 60 | 60 |
| 61 void AXInlineTextBox::init() | 61 void AXInlineTextBox::init() |
| 62 { | 62 { |
| 63 } | 63 } |
| 64 | 64 |
| 65 void AXInlineTextBox::detach() | 65 void AXInlineTextBox::detach() |
| 66 { | 66 { |
| 67 m_inlineTextBox = 0; | 67 m_inlineTextBox = nullptr; |
| 68 m_axObjectCache = 0; | 68 m_axObjectCache = 0; |
| 69 AXObject::detach(); | 69 AXObject::detach(); |
| 70 } | 70 } |
| 71 | 71 |
| 72 LayoutRect AXInlineTextBox::elementRect() const | 72 LayoutRect AXInlineTextBox::elementRect() const |
| 73 { | 73 { |
| 74 if (!m_inlineTextBox) | 74 if (!m_inlineTextBox) |
| 75 return LayoutRect(); | 75 return LayoutRect(); |
| 76 | 76 |
| 77 return m_inlineTextBox->bounds(); | 77 return m_inlineTextBox->bounds(); |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 case AbstractInlineTextBox::TopToBottom: | 145 case AbstractInlineTextBox::TopToBottom: |
| 146 return AccessibilityTextDirectionTopToBottom; | 146 return AccessibilityTextDirectionTopToBottom; |
| 147 case AbstractInlineTextBox::BottomToTop: | 147 case AbstractInlineTextBox::BottomToTop: |
| 148 return AccessibilityTextDirectionBottomToTop; | 148 return AccessibilityTextDirectionBottomToTop; |
| 149 } | 149 } |
| 150 | 150 |
| 151 return AccessibilityTextDirectionLeftToRight; | 151 return AccessibilityTextDirectionLeftToRight; |
| 152 } | 152 } |
| 153 | 153 |
| 154 } // namespace WebCore | 154 } // namespace WebCore |
| OLD | NEW |