| 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 are | 5  * modification, are permitted provided that the following conditions are | 
| 6  * met: | 6  * met: | 
| 7  * | 7  * | 
| 8  *     * Redistributions of source code must retain the above copyright | 8  *     * 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  *     * Redistributions in binary form must reproduce the above | 10  *     * Redistributions in binary form must reproduce the above | 
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 71     g_abstract_inline_text_box_map_->erase(inline_text_box); | 71     g_abstract_inline_text_box_map_->erase(inline_text_box); | 
| 72   } | 72   } | 
| 73 } | 73 } | 
| 74 | 74 | 
| 75 AbstractInlineTextBox::~AbstractInlineTextBox() { | 75 AbstractInlineTextBox::~AbstractInlineTextBox() { | 
| 76   DCHECK(!line_layout_item_); | 76   DCHECK(!line_layout_item_); | 
| 77   DCHECK(!inline_text_box_); | 77   DCHECK(!inline_text_box_); | 
| 78 } | 78 } | 
| 79 | 79 | 
| 80 void AbstractInlineTextBox::Detach() { | 80 void AbstractInlineTextBox::Detach() { | 
| 81   if (Node* node = line_layout_item_.GetNode()) { | 81   if (Node* node = GetNode()) { | 
| 82     if (AXObjectCache* cache = node->GetDocument().ExistingAXObjectCache()) | 82     if (AXObjectCache* cache = node->GetDocument().ExistingAXObjectCache()) | 
| 83       cache->Remove(this); | 83       cache->Remove(this); | 
| 84   } | 84   } | 
| 85 | 85 | 
| 86   line_layout_item_ = LineLayoutText(nullptr); | 86   line_layout_item_ = LineLayoutText(nullptr); | 
| 87   inline_text_box_ = nullptr; | 87   inline_text_box_ = nullptr; | 
| 88 } | 88 } | 
| 89 | 89 | 
| 90 PassRefPtr<AbstractInlineTextBox> AbstractInlineTextBox::NextInlineTextBox() | 90 PassRefPtr<AbstractInlineTextBox> AbstractInlineTextBox::NextInlineTextBox() | 
| 91     const { | 91     const { | 
| (...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 216 | 216 | 
| 217   InlineBox* previous = inline_text_box_->PrevOnLine(); | 217   InlineBox* previous = inline_text_box_->PrevOnLine(); | 
| 218   if (previous && previous->IsInlineTextBox()) | 218   if (previous && previous->IsInlineTextBox()) | 
| 219     return GetOrCreate(ToInlineTextBox(previous)->GetLineLayoutItem(), | 219     return GetOrCreate(ToInlineTextBox(previous)->GetLineLayoutItem(), | 
| 220                        ToInlineTextBox(previous)); | 220                        ToInlineTextBox(previous)); | 
| 221 | 221 | 
| 222   return nullptr; | 222   return nullptr; | 
| 223 } | 223 } | 
| 224 | 224 | 
| 225 }  // namespace blink | 225 }  // namespace blink | 
| OLD | NEW | 
|---|