Minor cleanups to IndentOutdentCommand and related code
authortimothy_horton@apple.com <timothy_horton@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 7 Jan 2017 02:59:12 +0000 (02:59 +0000)
committertimothy_horton@apple.com <timothy_horton@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 7 Jan 2017 02:59:12 +0000 (02:59 +0000)
commit7808d65b6c4df2b301766baf7aa425eae7fcdf12
treedabc60ac3d3d0421f414224b0c534d1e378a394b
parente6d56f947b3f7dfb777cfadf1c87339d56c50470
Minor cleanups to IndentOutdentCommand and related code
https://bugs.webkit.org/show_bug.cgi?id=166791

Reviewed by Simon Fraser.

Source/WebCore:

* editing/IndentOutdentCommand.cpp:
(WebCore::IndentOutdentCommand::IndentOutdentCommand):
(WebCore::IndentOutdentCommand::outdentRegion):
* editing/IndentOutdentCommand.h:
(WebCore::IndentOutdentCommand::create):
Remove the unused m_marginInPixels and fix the copyright header.

Tools:

* WebEditingTester/EditingOperations.m:
(editingOperations):
Add the outdent operation to WebEditingTester.

LayoutTests:

* editing/execCommand/19653-1-expected.txt:
* editing/execCommand/19653-1.html:
Adjust this indenting test. It had a mislabeled test case (it outdents, not indents),
and also was copy-pasted wrong (it wasn't indented in the first place).

However, since this technically reduces test coverage, keep the existing
(but now correctly labeled) test case, since it caught a bug in code I was changing.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@210466 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/editing/execCommand/19653-1-expected.txt
LayoutTests/editing/execCommand/19653-1.html
Source/WebCore/ChangeLog
Source/WebCore/editing/IndentOutdentCommand.cpp
Source/WebCore/editing/IndentOutdentCommand.h
Tools/ChangeLog
Tools/WebEditingTester/EditingOperations.m