Improved some function names, at John's urging. No changes to the
functions themselves.
canPerformSpecialCaseAllContentDelete() --> handleSpecialCaseAllContentDelete()
canPerformSpecialCaseBRDelete() --> handleSpecialCaseBRDelete()
performGeneralDelete() --> handleGeneralDelete()
* khtml/editing/htmlediting.cpp:
(khtml::DeleteSelectionCommand::handleSpecialCaseAllContentDelete)
(khtml::DeleteSelectionCommand::handleSpecialCaseBRDelete)
(khtml::DeleteSelectionCommand::handleGeneralDelete)
(khtml::DeleteSelectionCommand::doApply)
* khtml/editing/htmlediting.h
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@7974
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2004-11-11 Ken Kocienda <kocienda@apple.com>
+
+ Reviewed by John
+
+ Improved some function names, at John's urging. No changes to the
+ functions themselves.
+
+ canPerformSpecialCaseAllContentDelete() --> handleSpecialCaseAllContentDelete()
+ canPerformSpecialCaseBRDelete() --> handleSpecialCaseBRDelete()
+ performGeneralDelete() --> handleGeneralDelete()
+
+ * khtml/editing/htmlediting.cpp:
+ (khtml::DeleteSelectionCommand::handleSpecialCaseAllContentDelete)
+ (khtml::DeleteSelectionCommand::handleSpecialCaseBRDelete)
+ (khtml::DeleteSelectionCommand::handleGeneralDelete)
+ (khtml::DeleteSelectionCommand::doApply)
+ * khtml/editing/htmlediting.h
+
2004-11-11 Ken Kocienda <kocienda@apple.com>
Reviewed by John
computedStyle->deref();
}
-bool DeleteSelectionCommand::canPerformSpecialCaseAllContentDelete()
+bool DeleteSelectionCommand::handleSpecialCaseAllContentDelete()
{
Position start = m_downstreamStart;
Position end = m_upstreamEnd;
return false;
}
-bool DeleteSelectionCommand::canPerformSpecialCaseBRDelete()
+bool DeleteSelectionCommand::handleSpecialCaseBRDelete()
{
// Check for special-case where the selection contains only a BR on a line by itself after another BR.
bool upstreamStartIsBR = m_startNode->id() == ID_BR;
return false;
}
-void DeleteSelectionCommand::performGeneralDelete()
+void DeleteSelectionCommand::handleGeneralDelete()
{
int startOffset = m_upstreamStart.offset();
saveTypingStyleState();
- if (!canPerformSpecialCaseAllContentDelete())
- if (!canPerformSpecialCaseBRDelete())
- performGeneralDelete();
+ if (!handleSpecialCaseAllContentDelete())
+ if (!handleSpecialCaseBRDelete())
+ handleGeneralDelete();
// Do block merge if start and end of selection are in different blocks.
moveNodesAfterNode();
void initializePositionData();
void saveTypingStyleState();
- bool canPerformSpecialCaseAllContentDelete();
- bool canPerformSpecialCaseBRDelete();
- void performGeneralDelete();
+ bool handleSpecialCaseAllContentDelete();
+ bool handleSpecialCaseBRDelete();
+ void handleGeneralDelete();
void fixupWhitespace();
void moveNodesAfterNode();
void calculateEndingPosition();