| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2005, 2006, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2005, 2006, 2008 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2009, 2010, 2011 Google Inc. All rights reserved. | 3 * Copyright (C) 2009, 2010, 2011 Google Inc. All rights reserved. |
| 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 * 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 #include "wtf/Vector.h" | 63 #include "wtf/Vector.h" |
| 64 | 64 |
| 65 namespace blink { | 65 namespace blink { |
| 66 | 66 |
| 67 using namespace HTMLNames; | 67 using namespace HTMLNames; |
| 68 | 68 |
| 69 enum EFragmentType { EmptyFragment, SingleTextNodeFragment, TreeFragment }; | 69 enum EFragmentType { EmptyFragment, SingleTextNodeFragment, TreeFragment }; |
| 70 | 70 |
| 71 // --- ReplacementFragment helper class | 71 // --- ReplacementFragment helper class |
| 72 | 72 |
| 73 class ReplacementFragment FINAL { | 73 class ReplacementFragment final { |
| 74 WTF_MAKE_NONCOPYABLE(ReplacementFragment); | 74 WTF_MAKE_NONCOPYABLE(ReplacementFragment); |
| 75 STACK_ALLOCATED(); | 75 STACK_ALLOCATED(); |
| 76 public: | 76 public: |
| 77 ReplacementFragment(Document*, DocumentFragment*, const VisibleSelection&); | 77 ReplacementFragment(Document*, DocumentFragment*, const VisibleSelection&); |
| 78 | 78 |
| 79 Node* firstChild() const; | 79 Node* firstChild() const; |
| 80 Node* lastChild() const; | 80 Node* lastChild() const; |
| 81 | 81 |
| 82 bool isEmpty() const; | 82 bool isEmpty() const; |
| 83 | 83 |
| (...skipping 1457 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1541 void ReplaceSelectionCommand::trace(Visitor* visitor) | 1541 void ReplaceSelectionCommand::trace(Visitor* visitor) |
| 1542 { | 1542 { |
| 1543 visitor->trace(m_startOfInsertedContent); | 1543 visitor->trace(m_startOfInsertedContent); |
| 1544 visitor->trace(m_endOfInsertedContent); | 1544 visitor->trace(m_endOfInsertedContent); |
| 1545 visitor->trace(m_insertionStyle); | 1545 visitor->trace(m_insertionStyle); |
| 1546 visitor->trace(m_documentFragment); | 1546 visitor->trace(m_documentFragment); |
| 1547 CompositeEditCommand::trace(visitor); | 1547 CompositeEditCommand::trace(visitor); |
| 1548 } | 1548 } |
| 1549 | 1549 |
| 1550 } // namespace blink | 1550 } // namespace blink |
| OLD | NEW |