| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserv
ed. | 2 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserv
ed. |
| 3 * Copyright (C) 2008, 2009, 2010, 2011 Google Inc. All rights reserved. | 3 * Copyright (C) 2008, 2009, 2010, 2011 Google Inc. All rights reserved. |
| 4 * Copyright (C) 2011 Igalia S.L. | 4 * Copyright (C) 2011 Igalia S.L. |
| 5 * Copyright (C) 2011 Motorola Mobility. All rights reserved. | 5 * Copyright (C) 2011 Motorola Mobility. All rights reserved. |
| 6 * | 6 * |
| 7 * Redistribution and use in source and binary forms, with or without | 7 * Redistribution and use in source and binary forms, with or without |
| 8 * modification, are permitted provided that the following conditions | 8 * modification, are permitted provided that the following conditions |
| 9 * are met: | 9 * are met: |
| 10 * 1. Redistributions of source code must retain the above copyright | 10 * 1. Redistributions of source code must retain the above copyright |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 AttributeChange(PassRefPtr<Element> element, const QualifiedName& name, cons
t String& value) | 72 AttributeChange(PassRefPtr<Element> element, const QualifiedName& name, cons
t String& value) |
| 73 : m_element(element), m_name(name), m_value(value) | 73 : m_element(element), m_name(name), m_value(value) |
| 74 { | 74 { |
| 75 } | 75 } |
| 76 | 76 |
| 77 void apply() | 77 void apply() |
| 78 { | 78 { |
| 79 m_element->setAttribute(m_name, AtomicString(m_value)); | 79 m_element->setAttribute(m_name, AtomicString(m_value)); |
| 80 } | 80 } |
| 81 | 81 |
| 82 void trace(Visitor* visitor) | |
| 83 { | |
| 84 visitor->trace(m_element); | |
| 85 } | |
| 86 | |
| 87 private: | 82 private: |
| 88 RefPtr<Element> m_element; | 83 RefPtr<Element> m_element; |
| 89 QualifiedName m_name; | 84 QualifiedName m_name; |
| 90 String m_value; | 85 String m_value; |
| 91 }; | 86 }; |
| 92 | 87 |
| 93 } // namespace blink | 88 } // namespace blink |
| 94 | 89 |
| 95 WTF_ALLOW_INIT_WITH_MEM_FUNCTIONS(blink::AttributeChange); | 90 WTF_ALLOW_INIT_WITH_MEM_FUNCTIONS(blink::AttributeChange); |
| 96 | 91 |
| (...skipping 462 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 559 if (!next || !next->isTextNode()) | 554 if (!next || !next->isTextNode()) |
| 560 return; | 555 return; |
| 561 | 556 |
| 562 RefPtr<Text> textNext = toText(next); | 557 RefPtr<Text> textNext = toText(next); |
| 563 textNode->appendData(textNext->data()); | 558 textNode->appendData(textNext->data()); |
| 564 if (textNext->parentNode()) // Might have been removed by mutation event. | 559 if (textNext->parentNode()) // Might have been removed by mutation event. |
| 565 textNext->remove(exceptionState); | 560 textNext->remove(exceptionState); |
| 566 } | 561 } |
| 567 | 562 |
| 568 } | 563 } |
| OLD | NEW |