OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 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 | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
259 // TODO(editing-dev): The use of updateStyleAndLayoutIgnorePendingStylesheets | 259 // TODO(editing-dev): The use of updateStyleAndLayoutIgnorePendingStylesheets |
260 // needs to be audited. See http://crbug.com/590369 for more details. | 260 // needs to be audited. See http://crbug.com/590369 for more details. |
261 GetFrame().GetDocument()->UpdateStyleAndLayoutIgnorePendingStylesheets(); | 261 GetFrame().GetDocument()->UpdateStyleAndLayoutIgnorePendingStylesheets(); |
262 | 262 |
263 TextCheckingRequestData request_data = processing_request_->Data(); | 263 TextCheckingRequestData request_data = processing_request_->Data(); |
264 if (request_data.Sequence() == sequence) { | 264 if (request_data.Sequence() == sequence) { |
265 DocumentMarker::MarkerTypes markers = | 265 DocumentMarker::MarkerTypes markers = |
266 DocumentMarker::SpellCheckClientMarkers(); | 266 DocumentMarker::SpellCheckClientMarkers(); |
267 if (processing_request_->IsValid()) { | 267 if (processing_request_->IsValid()) { |
268 Range* checking_range = processing_request_->CheckingRange(); | 268 Range* checking_range = processing_request_->CheckingRange(); |
269 GetFrame().GetDocument()->Markers().RemoveMarkers( | 269 GetFrame().GetDocument()->Markers().RemoveMarkersInRange( |
270 EphemeralRange(checking_range), markers); | 270 EphemeralRange(checking_range), markers); |
271 } | 271 } |
272 } | 272 } |
273 DidCheck(sequence, results); | 273 DidCheck(sequence, results); |
274 } | 274 } |
275 | 275 |
276 void SpellCheckRequester::DidCheckCancel(int sequence) { | 276 void SpellCheckRequester::DidCheckCancel(int sequence) { |
277 Vector<TextCheckingResult> results; | 277 Vector<TextCheckingResult> results; |
278 DidCheck(sequence, results); | 278 DidCheck(sequence, results); |
279 } | 279 } |
280 | 280 |
281 DEFINE_TRACE(SpellCheckRequester) { | 281 DEFINE_TRACE(SpellCheckRequester) { |
282 visitor->Trace(frame_); | 282 visitor->Trace(frame_); |
283 visitor->Trace(processing_request_); | 283 visitor->Trace(processing_request_); |
284 visitor->Trace(request_queue_); | 284 visitor->Trace(request_queue_); |
285 } | 285 } |
286 | 286 |
287 } // namespace blink | 287 } // namespace blink |
OLD | NEW |