| 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 541 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 552 findBadGrammars(client, characters.data(), 0, grammarCheckLength, gramma
rResult); | 552 findBadGrammars(client, characters.data(), 0, grammarCheckLength, gramma
rResult); |
| 553 } | 553 } |
| 554 | 554 |
| 555 if (grammarResult.size()) | 555 if (grammarResult.size()) |
| 556 results.swap(grammarResult); | 556 results.swap(grammarResult); |
| 557 | 557 |
| 558 if (spellingResult.size()) { | 558 if (spellingResult.size()) { |
| 559 if (results.isEmpty()) | 559 if (results.isEmpty()) |
| 560 results.swap(spellingResult); | 560 results.swap(spellingResult); |
| 561 else | 561 else |
| 562 results.append(spellingResult); | 562 results.appendVector(spellingResult); |
| 563 } | 563 } |
| 564 } | 564 } |
| 565 | 565 |
| 566 bool unifiedTextCheckerEnabled(const Frame* frame) | 566 bool unifiedTextCheckerEnabled(const Frame* frame) |
| 567 { | 567 { |
| 568 if (!frame) | 568 if (!frame) |
| 569 return false; | 569 return false; |
| 570 | 570 |
| 571 const Settings* settings = frame->settings(); | 571 const Settings* settings = frame->settings(); |
| 572 if (!settings) | 572 if (!settings) |
| 573 return false; | 573 return false; |
| 574 | 574 |
| 575 return settings->unifiedTextCheckerEnabled(); | 575 return settings->unifiedTextCheckerEnabled(); |
| 576 } | 576 } |
| 577 | 577 |
| 578 } | 578 } |
| OLD | NEW |