| 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 612 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 623 inline_style->PropertyCount()) { | 623 inline_style->PropertyCount()) { |
| 624 SetNodeAttribute(element, styleAttr, | 624 SetNodeAttribute(element, styleAttr, |
| 625 AtomicString(new_inline_style->Style()->AsText())); | 625 AtomicString(new_inline_style->Style()->AsText())); |
| 626 } | 626 } |
| 627 | 627 |
| 628 GetDocument().UpdateStyleAndLayoutIgnorePendingStylesheets(); | 628 GetDocument().UpdateStyleAndLayoutIgnorePendingStylesheets(); |
| 629 | 629 |
| 630 // FIXME: Tolerate differences in id, class, and style attributes. | 630 // FIXME: Tolerate differences in id, class, and style attributes. |
| 631 if (element->parentNode() && IsNonTableCellHTMLBlockElement(element) && | 631 if (element->parentNode() && IsNonTableCellHTMLBlockElement(element) && |
| 632 AreIdenticalElements(*element, *element->parentNode()) && | 632 AreIdenticalElements(*element, *element->parentNode()) && |
| 633 VisiblePosition::FirstPositionInNode(element->parentNode()) | 633 VisiblePosition::FirstPositionInNode(*element->parentNode()) |
| 634 .DeepEquivalent() == | 634 .DeepEquivalent() == |
| 635 VisiblePosition::FirstPositionInNode(element).DeepEquivalent() && | 635 VisiblePosition::FirstPositionInNode(*element).DeepEquivalent() && |
| 636 VisiblePosition::LastPositionInNode(element->parentNode()) | 636 VisiblePosition::LastPositionInNode(element->parentNode()) |
| 637 .DeepEquivalent() == | 637 .DeepEquivalent() == |
| 638 VisiblePosition::LastPositionInNode(element).DeepEquivalent()) { | 638 VisiblePosition::LastPositionInNode(element).DeepEquivalent()) { |
| 639 inserted_nodes.WillRemoveNodePreservingChildren(*element); | 639 inserted_nodes.WillRemoveNodePreservingChildren(*element); |
| 640 RemoveNodePreservingChildren(element, editing_state); | 640 RemoveNodePreservingChildren(element, editing_state); |
| 641 if (editing_state->IsAborted()) | 641 if (editing_state->IsAborted()) |
| 642 return; | 642 return; |
| 643 continue; | 643 continue; |
| 644 } | 644 } |
| 645 | 645 |
| (...skipping 1364 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2010 visitor->Trace(start_of_inserted_content_); | 2010 visitor->Trace(start_of_inserted_content_); |
| 2011 visitor->Trace(end_of_inserted_content_); | 2011 visitor->Trace(end_of_inserted_content_); |
| 2012 visitor->Trace(insertion_style_); | 2012 visitor->Trace(insertion_style_); |
| 2013 visitor->Trace(document_fragment_); | 2013 visitor->Trace(document_fragment_); |
| 2014 visitor->Trace(start_of_inserted_range_); | 2014 visitor->Trace(start_of_inserted_range_); |
| 2015 visitor->Trace(end_of_inserted_range_); | 2015 visitor->Trace(end_of_inserted_range_); |
| 2016 CompositeEditCommand::Trace(visitor); | 2016 CompositeEditCommand::Trace(visitor); |
| 2017 } | 2017 } |
| 2018 | 2018 |
| 2019 } // namespace blink | 2019 } // namespace blink |
| OLD | NEW |