Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(118)

Side by Side Diff: Source/core/inspector/DOMEditor.cpp

Issue 22417002: Rename ASSERT_NO_EXCEPTION_STATE and IGNORE_EXCEPTION_STATE (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/html/track/TextTrackRegion.cpp ('k') | Source/core/inspector/DOMPatchSupport.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « Source/core/html/track/TextTrackRegion.cpp ('k') | Source/core/inspector/DOMPatchSupport.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698