OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2005, 2006, 2007, 2008 Apple 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 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 564 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
575 { | 575 { |
576 if (selection.isRange()) | 576 if (selection.isRange()) |
577 applyCommandToComposite(DeleteSelectionCommand::create(selection, smartD
elete, mergeBlocksAfterDelete, expandForSpecialElements, sanitizeMarkup)); | 577 applyCommandToComposite(DeleteSelectionCommand::create(selection, smartD
elete, mergeBlocksAfterDelete, expandForSpecialElements, sanitizeMarkup)); |
578 } | 578 } |
579 | 579 |
580 void CompositeEditCommand::removeCSSProperty(PassRefPtrWillBeRawPtr<Element> ele
ment, CSSPropertyID property) | 580 void CompositeEditCommand::removeCSSProperty(PassRefPtrWillBeRawPtr<Element> ele
ment, CSSPropertyID property) |
581 { | 581 { |
582 applyCommandToComposite(RemoveCSSPropertyCommand::create(document(), element
, property)); | 582 applyCommandToComposite(RemoveCSSPropertyCommand::create(document(), element
, property)); |
583 } | 583 } |
584 | 584 |
585 void CompositeEditCommand::removeNodeAttribute(PassRefPtrWillBeRawPtr<Element> e
lement, const QualifiedName& attribute) | 585 void CompositeEditCommand::removeElementAttribute(PassRefPtrWillBeRawPtr<Element
> element, const QualifiedName& attribute) |
586 { | 586 { |
587 setNodeAttribute(element, attribute, AtomicString()); | 587 setNodeAttribute(element, attribute, AtomicString()); |
588 } | 588 } |
589 | 589 |
590 void CompositeEditCommand::setNodeAttribute(PassRefPtrWillBeRawPtr<Element> elem
ent, const QualifiedName& attribute, const AtomicString& value) | 590 void CompositeEditCommand::setNodeAttribute(PassRefPtrWillBeRawPtr<Element> elem
ent, const QualifiedName& attribute, const AtomicString& value) |
591 { | 591 { |
592 applyCommandToComposite(SetNodeAttributeCommand::create(element, attribute,
value)); | 592 applyCommandToComposite(SetNodeAttributeCommand::create(element, attribute,
value)); |
593 } | 593 } |
594 | 594 |
595 static inline bool containsOnlyWhitespace(const String& text) | 595 static inline bool containsOnlyWhitespace(const String& text) |
(...skipping 903 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1499 } | 1499 } |
1500 | 1500 |
1501 void CompositeEditCommand::trace(Visitor* visitor) | 1501 void CompositeEditCommand::trace(Visitor* visitor) |
1502 { | 1502 { |
1503 visitor->trace(m_commands); | 1503 visitor->trace(m_commands); |
1504 visitor->trace(m_composition); | 1504 visitor->trace(m_composition); |
1505 EditCommand::trace(visitor); | 1505 EditCommand::trace(visitor); |
1506 } | 1506 } |
1507 | 1507 |
1508 } // namespace blink | 1508 } // namespace blink |
OLD | NEW |