| OLD | NEW | 
|---|
| 1 /* | 1 /* | 
| 2  * Copyright (C) 2012 Google Inc. All rights reserved. | 2  * Copyright (C) 2012 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 314 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 325     SetNodeValueAction(Node* node, const String& value) | 325     SetNodeValueAction(Node* node, const String& value) | 
| 326         : InspectorHistory::Action("SetNodeValue") | 326         : InspectorHistory::Action("SetNodeValue") | 
| 327         , m_node(node) | 327         , m_node(node) | 
| 328         , m_value(value) | 328         , m_value(value) | 
| 329     { | 329     { | 
| 330     } | 330     } | 
| 331 | 331 | 
| 332     virtual bool perform(ExceptionState&) | 332     virtual bool perform(ExceptionState&) | 
| 333     { | 333     { | 
| 334         m_oldValue = m_node->nodeValue(); | 334         m_oldValue = m_node->nodeValue(); | 
| 335         return redo(IGNORE_EXCEPTION_STATE); | 335         return redo(IGNORE_EXCEPTION); | 
| 336     } | 336     } | 
| 337 | 337 | 
| 338     virtual bool undo(ExceptionState&) | 338     virtual bool undo(ExceptionState&) | 
| 339     { | 339     { | 
| 340         m_node->setNodeValue(m_oldValue); | 340         m_node->setNodeValue(m_oldValue); | 
| 341         return true; | 341         return true; | 
| 342     } | 342     } | 
| 343 | 343 | 
| 344     virtual bool redo(ExceptionState&) | 344     virtual bool redo(ExceptionState&) | 
| 345     { | 345     { | 
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 451 bool DOMEditor::replaceWholeText(Text* textNode, const String& text, ErrorString
     * errorString) | 451 bool DOMEditor::replaceWholeText(Text* textNode, const String& text, ErrorString
     * errorString) | 
| 452 { | 452 { | 
| 453     TrackExceptionState es; | 453     TrackExceptionState es; | 
| 454     bool result = replaceWholeText(textNode, text, es); | 454     bool result = replaceWholeText(textNode, text, es); | 
| 455     populateErrorString(es, errorString); | 455     populateErrorString(es, errorString); | 
| 456     return result; | 456     return result; | 
| 457 } | 457 } | 
| 458 | 458 | 
| 459 } // namespace WebCore | 459 } // namespace WebCore | 
| 460 | 460 | 
| OLD | NEW | 
|---|