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

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

Issue 1916283003: [K6] Replace bind() + GCed pointers with retainedRef() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@Kuroneko_5c
Patch Set: Rebase Created 4 years, 7 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) 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 1205 matching lines...) Expand 10 before | Expand all | Expand 10 after
1216 1216
1217 if (evt->isKeyboardEvent() && evt->type() == EventTypeNames::keyup) { 1217 if (evt->isKeyboardEvent() && evt->type() == EventTypeNames::keyup) {
1218 m_inputTypeView->handleKeyupEvent(toKeyboardEvent(evt)); 1218 m_inputTypeView->handleKeyupEvent(toKeyboardEvent(evt));
1219 if (evt->defaultHandled()) 1219 if (evt->defaultHandled())
1220 return; 1220 return;
1221 } 1221 }
1222 1222
1223 if (m_inputTypeView->shouldSubmitImplicitly(evt)) { 1223 if (m_inputTypeView->shouldSubmitImplicitly(evt)) {
1224 // FIXME: Remove type check. 1224 // FIXME: Remove type check.
1225 if (type() == InputTypeNames::search) 1225 if (type() == InputTypeNames::search)
1226 document().postTask(BLINK_FROM_HERE, createSameThreadTask(&HTMLInput Element::onSearch, this)); 1226 document().postTask(BLINK_FROM_HERE, createSameThreadTask(&HTMLInput Element::onSearch, retainedRef(this)));
1227 // Form submission finishes editing, just as loss of focus does. 1227 // Form submission finishes editing, just as loss of focus does.
1228 // If there was a change, send the event now. 1228 // If there was a change, send the event now.
1229 if (wasChangedSinceLastFormControlChangeEvent()) 1229 if (wasChangedSinceLastFormControlChangeEvent())
1230 dispatchFormControlChangeEvent(); 1230 dispatchFormControlChangeEvent();
1231 1231
1232 HTMLFormElement* formForSubmission = m_inputTypeView->formForSubmission( ); 1232 HTMLFormElement* formForSubmission = m_inputTypeView->formForSubmission( );
1233 // Form may never have been present, or may have been destroyed by code responding to the change event. 1233 // Form may never have been present, or may have been destroyed by code responding to the change event.
1234 if (formForSubmission) 1234 if (formForSubmission)
1235 formForSubmission->submitImplicitly(evt, canTriggerImplicitSubmissio n()); 1235 formForSubmission->submitImplicitly(evt, canTriggerImplicitSubmissio n());
1236 1236
(...skipping 680 matching lines...) Expand 10 before | Expand all | Expand 10 after
1917 void HTMLInputElement::ensurePrimaryContent() 1917 void HTMLInputElement::ensurePrimaryContent()
1918 { 1918 {
1919 m_inputTypeView->ensurePrimaryContent(); 1919 m_inputTypeView->ensurePrimaryContent();
1920 } 1920 }
1921 1921
1922 bool HTMLInputElement::hasFallbackContent() const 1922 bool HTMLInputElement::hasFallbackContent() const
1923 { 1923 {
1924 return m_inputTypeView->hasFallbackContent(); 1924 return m_inputTypeView->hasFallbackContent();
1925 } 1925 }
1926 } // namespace blink 1926 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp ('k') | third_party/WebKit/Source/core/html/HTMLSelectElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698