| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2007 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) | 3 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 243 , m_end(end) | 243 , m_end(end) |
| 244 { | 244 { |
| 245 } | 245 } |
| 246 | 246 |
| 247 TextCheckingHelper::~TextCheckingHelper() | 247 TextCheckingHelper::~TextCheckingHelper() |
| 248 { | 248 { |
| 249 } | 249 } |
| 250 | 250 |
| 251 String TextCheckingHelper::findFirstMisspelling(int& firstMisspellingOffset, boo
l markAll) | 251 String TextCheckingHelper::findFirstMisspelling(int& firstMisspellingOffset, boo
l markAll) |
| 252 { | 252 { |
| 253 // TODO(dglazkov): The use of updateLayoutIgnorePendingStylesheets needs to
be audited. | 253 // TODO(dglazkov): The use of updateStyleAndLayoutIgnorePendingStylesheets n
eeds to be audited. |
| 254 // see http://crbug.com/590369 for more details. | 254 // see http://crbug.com/590369 for more details. |
| 255 m_start.document()->updateLayoutIgnorePendingStylesheets(); | 255 m_start.document()->updateStyleAndLayoutIgnorePendingStylesheets(); |
| 256 | 256 |
| 257 WordAwareIterator it(m_start, m_end); | 257 WordAwareIterator it(m_start, m_end); |
| 258 firstMisspellingOffset = 0; | 258 firstMisspellingOffset = 0; |
| 259 | 259 |
| 260 String firstMisspelling; | 260 String firstMisspelling; |
| 261 int currentChunkOffset = 0; | 261 int currentChunkOffset = 0; |
| 262 | 262 |
| 263 while (!it.atEnd()) { | 263 while (!it.atEnd()) { |
| 264 int length = it.length(); | 264 int length = it.length(); |
| 265 | 265 |
| (...skipping 320 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 586 return false; | 586 return false; |
| 587 | 587 |
| 588 const Settings* settings = frame->settings(); | 588 const Settings* settings = frame->settings(); |
| 589 if (!settings) | 589 if (!settings) |
| 590 return false; | 590 return false; |
| 591 | 591 |
| 592 return settings->unifiedTextCheckerEnabled(); | 592 return settings->unifiedTextCheckerEnabled(); |
| 593 } | 593 } |
| 594 | 594 |
| 595 } // namespace blink | 595 } // namespace blink |
| OLD | NEW |