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

Side by Side Diff: Source/WebKit/chromium/src/ContextMenuClientImpl.cpp

Issue 19510005: [oilpan] Completely move HTMLFormControlElement's hierarchy to the managed heap Base URL: svn://svn.chromium.org/blink/branches/oilpan
Patch Set: Created 7 years, 5 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009, 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2009, 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * 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 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 320 matching lines...) Expand 10 before | Expand all | Expand 10 after
331 m_webView->spellCheckClient()->spellCheck( 331 m_webView->spellCheckClient()->spellCheck(
332 data.misspelledWord, misspelledOffset, misspelledLength, 332 data.misspelledWord, misspelledOffset, misspelledLength,
333 &data.dictionarySuggestions); 333 &data.dictionarySuggestions);
334 if (!misspelledLength) 334 if (!misspelledLength)
335 data.misspelledWord.reset(); 335 data.misspelledWord.reset();
336 } 336 }
337 } 337 }
338 } 338 }
339 HTMLFormElement* form = selectedFrame->selection()->currentForm(); 339 HTMLFormElement* form = selectedFrame->selection()->currentForm();
340 if (form && r.innerNonSharedNode()->hasTagName(HTMLNames::inputTag)) { 340 if (form && r.innerNonSharedNode()->hasTagName(HTMLNames::inputTag)) {
341 HTMLInputElement* selectedElement = static_cast<HTMLInputElement*>(r .innerNonSharedNode()); 341 Handle<HTMLInputElement> selectedElement(static_cast<HTMLInputElemen t*>(r.innerNonSharedNode()));
342 if (selectedElement) { 342 if (selectedElement) {
343 WebSearchableFormData ws = WebSearchableFormData(WebFormElement( form), WebInputElement(selectedElement)); 343 WebSearchableFormData ws = WebSearchableFormData(WebFormElement( form), WebInputElement(selectedElement));
344 if (ws.url().isValid()) 344 if (ws.url().isValid())
345 data.keywordURL = ws.url(); 345 data.keywordURL = ws.url();
346 } 346 }
347 } 347 }
348 } 348 }
349 349
350 #if OS(DARWIN) 350 #if OS(DARWIN)
351 if (selectedFrame->editor()->selectionHasStyle(CSSPropertyDirection, "ltr") != FalseTriState) 351 if (selectedFrame->editor()->selectionHasStyle(CSSPropertyDirection, "ltr") != FalseTriState)
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
410 outputItems[i] = subItems[i]; 410 outputItems[i] = subItems[i];
411 subMenuItems.swap(outputItems); 411 subMenuItems.swap(outputItems);
412 } 412 }
413 413
414 void ContextMenuClientImpl::populateCustomMenuItems(WebCore::ContextMenu* defaul tMenu, WebContextMenuData* data) 414 void ContextMenuClientImpl::populateCustomMenuItems(WebCore::ContextMenu* defaul tMenu, WebContextMenuData* data)
415 { 415 {
416 populateSubMenuItems(defaultMenu->items(), data->customItems); 416 populateSubMenuItems(defaultMenu->items(), data->customItems);
417 } 417 }
418 418
419 } // namespace WebKit 419 } // namespace WebKit
OLDNEW
« no previous file with comments | « Source/WebKit/chromium/src/ChromeClientImpl.cpp ('k') | Source/WebKit/chromium/src/EditorClientImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698