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

Side by Side Diff: Source/core/frame/LocalFrame.cpp

Issue 419563003: Adding a word to dictionary should remove spelling markers (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebased to a newer master Created 6 years, 4 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) 1998, 1999 Torben Weis <weis@kde.org> 2 * Copyright (C) 1998, 1999 Torben Weis <weis@kde.org>
3 * 1999 Lars Knoll <knoll@kde.org> 3 * 1999 Lars Knoll <knoll@kde.org>
4 * 1999 Antti Koivisto <koivisto@kde.org> 4 * 1999 Antti Koivisto <koivisto@kde.org>
5 * 2000 Simon Hausmann <hausmann@kde.org> 5 * 2000 Simon Hausmann <hausmann@kde.org>
6 * 2000 Stefan Schimanski <1Stein@gmx.de> 6 * 2000 Stefan Schimanski <1Stein@gmx.de>
7 * 2001 George Staikos <staikos@kde.org> 7 * 2001 George Staikos <staikos@kde.org>
8 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r ights reserved. 8 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r ights reserved.
9 * Copyright (C) 2005 Alexey Proskuryakov <ap@nypop.com> 9 * Copyright (C) 2005 Alexey Proskuryakov <ap@nypop.com>
10 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) 10 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies)
(...skipping 528 matching lines...) Expand 10 before | Expand all | Expand 10 after
539 continue; 539 continue;
540 if (equalIgnoringFragmentIdentifier(toLocalFrame(frame)->document()->url (), url)) { 540 if (equalIgnoringFragmentIdentifier(toLocalFrame(frame)->document()->url (), url)) {
541 if (foundSelfReference) 541 if (foundSelfReference)
542 return false; 542 return false;
543 foundSelfReference = true; 543 foundSelfReference = true;
544 } 544 }
545 } 545 }
546 return true; 546 return true;
547 } 547 }
548 548
549 void LocalFrame::removeSpellingMarkersUnderWords(const Vector<String>& words)
550 {
551 spellChecker().removeSpellingMarkersUnderWords(words);
552 }
553
549 struct ScopedFramePaintingState { 554 struct ScopedFramePaintingState {
550 ScopedFramePaintingState(LocalFrame* frame, Node* node) 555 ScopedFramePaintingState(LocalFrame* frame, Node* node)
551 : frame(frame) 556 : frame(frame)
552 , node(node) 557 , node(node)
553 , paintBehavior(frame->view()->paintBehavior()) 558 , paintBehavior(frame->view()->paintBehavior())
554 { 559 {
555 ASSERT(!node || node->renderer()); 560 ASSERT(!node || node->renderer());
556 if (node) 561 if (node)
557 node->renderer()->updateDragState(true); 562 node->renderer()->updateDragState(true);
558 } 563 }
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
660 LocalFrame* LocalFrame::localFrameRoot() 665 LocalFrame* LocalFrame::localFrameRoot()
661 { 666 {
662 LocalFrame* curFrame = this; 667 LocalFrame* curFrame = this;
663 while (curFrame && curFrame->tree().parent() && curFrame->tree().parent()->i sLocalFrame()) 668 while (curFrame && curFrame->tree().parent() && curFrame->tree().parent()->i sLocalFrame())
664 curFrame = toLocalFrame(curFrame->tree().parent()); 669 curFrame = toLocalFrame(curFrame->tree().parent());
665 670
666 return curFrame; 671 return curFrame;
667 } 672 }
668 673
669 } // namespace blink 674 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698