Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(143)

Side by Side Diff: Source/core/editing/TextCheckingHelper.cpp

Issue 150653006: Remove the Vector::append overload that takes a Vector (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « Source/core/dom/StyleSheetCollection.cpp ('k') | Source/core/html/canvas/CanvasRenderingContext2D.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698