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

Side by Side Diff: Source/core/html/HTMLInputElement.cpp

Issue 21694005: Spell check whole content of an editable element when it gets focused. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: style & spurious comment removal. Created 7 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
« no previous file with comments | « Source/core/editing/Editor.cpp ('k') | Source/core/html/HTMLTextAreaElement.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2001 Dirk Mueller (mueller@kde.org) 4 * (C) 2001 Dirk Mueller (mueller@kde.org)
5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r ights reserved. 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r ights reserved.
6 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) 6 * (C) 2006 Alexey Proskuryakov (ap@nypop.com)
7 * Copyright (C) 2007 Samuel Weinig (sam@webkit.org) 7 * Copyright (C) 2007 Samuel Weinig (sam@webkit.org)
8 * Copyright (C) 2010 Google Inc. All rights reserved. 8 * Copyright (C) 2010 Google Inc. All rights reserved.
9 * Copyright (C) 2008 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/) 9 * Copyright (C) 2008 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/)
10 * Copyright (C) 2012 Samsung Electronics. All rights reserved. 10 * Copyright (C) 2012 Samsung Electronics. All rights reserved.
(...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after
356 } else 356 } else
357 HTMLTextFormControlElement::updateFocusAppearance(restorePreviousSelecti on); 357 HTMLTextFormControlElement::updateFocusAppearance(restorePreviousSelecti on);
358 } 358 }
359 359
360 void HTMLInputElement::beginEditing() 360 void HTMLInputElement::beginEditing()
361 { 361 {
362 if (!isTextField()) 362 if (!isTextField())
363 return; 363 return;
364 364
365 if (Frame* frame = document()->frame()) 365 if (Frame* frame = document()->frame())
366 frame->editor()->textFieldDidBeginEditing(this); 366 frame->editor()->textAreaOrTextFieldDidBeginEditing(this);
367 } 367 }
368 368
369 void HTMLInputElement::endEditing() 369 void HTMLInputElement::endEditing()
370 { 370 {
371 if (!isTextField()) 371 if (!isTextField())
372 return; 372 return;
373 373
374 if (Frame* frame = document()->frame()) 374 if (Frame* frame = document()->frame())
375 frame->editor()->textFieldDidEndEditing(this); 375 frame->editor()->textFieldDidEndEditing(this);
376 } 376 }
(...skipping 1491 matching lines...) Expand 10 before | Expand all | Expand 10 after
1868 } 1868 }
1869 1869
1870 #if ENABLE(INPUT_MULTIPLE_FIELDS_UI) 1870 #if ENABLE(INPUT_MULTIPLE_FIELDS_UI)
1871 PassRefPtr<RenderStyle> HTMLInputElement::customStyleForRenderer() 1871 PassRefPtr<RenderStyle> HTMLInputElement::customStyleForRenderer()
1872 { 1872 {
1873 return m_inputType->customStyleForRenderer(originalStyleForRenderer()); 1873 return m_inputType->customStyleForRenderer(originalStyleForRenderer());
1874 } 1874 }
1875 #endif 1875 #endif
1876 1876
1877 } // namespace 1877 } // namespace
OLDNEW
« no previous file with comments | « Source/core/editing/Editor.cpp ('k') | Source/core/html/HTMLTextAreaElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698