Title: [86656] trunk/Source/WebCore
- Revision
- 86656
- Author
- [email protected]
- Date
- 2011-05-16 22:55:27 -0700 (Mon, 16 May 2011)
Log Message
2011-05-16 MORITA Hajime <[email protected]>
Unreviewed build fix for r86647, which broke SUPPORT_AUTOCORRECTION_PANEL.
* editing/SpellingCorrectionController.cpp:
(WebCore::markersHaveIdenticalDescription):
(WebCore::SpellingCorrectionController::recordSpellcheckerResponseForModifiedCorrection):
(WebCore::SpellingCorrectionController::processMarkersOnTextToBeReplacedByResult):
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (86655 => 86656)
--- trunk/Source/WebCore/ChangeLog 2011-05-17 05:11:49 UTC (rev 86655)
+++ trunk/Source/WebCore/ChangeLog 2011-05-17 05:55:27 UTC (rev 86656)
@@ -1,3 +1,12 @@
+2011-05-16 MORITA Hajime <[email protected]>
+
+ Unreviewed build fix for r86647, which broke SUPPORT_AUTOCORRECTION_PANEL.
+
+ * editing/SpellingCorrectionController.cpp:
+ (WebCore::markersHaveIdenticalDescription):
+ (WebCore::SpellingCorrectionController::recordSpellcheckerResponseForModifiedCorrection):
+ (WebCore::SpellingCorrectionController::processMarkersOnTextToBeReplacedByResult):
+
2011-05-16 Kent Tamura <[email protected]>
Fix Leopard build.
Modified: trunk/Source/WebCore/editing/SpellingCorrectionController.cpp (86655 => 86656)
--- trunk/Source/WebCore/editing/SpellingCorrectionController.cpp 2011-05-17 05:11:49 UTC (rev 86655)
+++ trunk/Source/WebCore/editing/SpellingCorrectionController.cpp 2011-05-17 05:55:27 UTC (rev 86656)
@@ -77,9 +77,9 @@
if (markers.isEmpty())
return true;
- const String& description = markers[0].description;
+ const String& description = markers[0].description();
for (size_t i = 1; i < markers.size(); ++i) {
- if (description != markers[i].description)
+ if (description != markers[i].description())
return false;
}
return true;
@@ -500,7 +500,7 @@
// Spelling corrected text has been edited. We need to determine whether user has reverted it to original text or
// edited it to something else, and notify spellchecker accordingly.
- if (markersHaveIdenticalDescription(correctedOnceMarkers) && correctedOnceMarkers[0].description == corrected)
+ if (markersHaveIdenticalDescription(correctedOnceMarkers) && correctedOnceMarkers[0].description() == corrected)
client()->recordAutocorrectionResponse(EditorClient::AutocorrectionReverted, corrected, correction);
else
client()->recordAutocorrectionResponse(EditorClient::AutocorrectionEdited, corrected, correction);
@@ -553,7 +553,7 @@
Vector<DocumentMarker> markers = markerController->markersInRange(precedingCharacterRange.get(), DocumentMarker::DeletedAutocorrection);
for (size_t i = 0; i < markers.size(); ++i) {
- if (markers[i].description == stringToBeReplaced)
+ if (markers[i].description() == stringToBeReplaced)
return false;
}
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes