Backport r866967 by tmcguire from trunk to the 4.1 branch: Make the "clear" action undo-aware. PLEASEFIXTHEBUGKEYWORD: 172031
Changed paths: