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

Side by Side Diff: third_party/WebKit/Source/core/editing/EditingUtilities.cpp

Issue 2002063003: Change "bool createdByParser" of createElement() to enum (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@cestate
Patch Set: Add ImportNode Created 4 years, 6 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) 2004, 2005, 2006, 2007 Apple Inc. All rights reserved. 2 * Copyright (C) 2004, 2005, 2006, 2007 Apple 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 1308 matching lines...) Expand 10 before | Expand all | Expand 10 after
1319 case EditorParagraphSeparatorIsP: 1319 case EditorParagraphSeparatorIsP:
1320 return HTMLParagraphElement::create(document); 1320 return HTMLParagraphElement::create(document);
1321 } 1321 }
1322 1322
1323 ASSERT_NOT_REACHED(); 1323 ASSERT_NOT_REACHED();
1324 return nullptr; 1324 return nullptr;
1325 } 1325 }
1326 1326
1327 HTMLElement* createHTMLElement(Document& document, const QualifiedName& name) 1327 HTMLElement* createHTMLElement(Document& document, const QualifiedName& name)
1328 { 1328 {
1329 return HTMLElementFactory::createHTMLElement(name.localName(), document, 0, false); 1329 return HTMLElementFactory::createHTMLElement(name.localName(), document, 0, CreatedByCloneNode);
1330 } 1330 }
1331 1331
1332 bool isTabHTMLSpanElement(const Node* node) 1332 bool isTabHTMLSpanElement(const Node* node)
1333 { 1333 {
1334 if (!isHTMLSpanElement(node) || toHTMLSpanElement(node)->getAttribute(classA ttr) != AppleTabSpanClass) 1334 if (!isHTMLSpanElement(node) || toHTMLSpanElement(node)->getAttribute(classA ttr) != AppleTabSpanClass)
1335 return false; 1335 return false;
1336 UseCounter::count(node->document(), UseCounter::EditingAppleTabSpanClass); 1336 UseCounter::count(node->document(), UseCounter::EditingAppleTabSpanClass);
1337 return true; 1337 return true;
1338 } 1338 }
1339 1339
(...skipping 420 matching lines...) Expand 10 before | Expand all | Expand 10 after
1760 { 1760 {
1761 if (!RuntimeEnabledFeatures::inputEventEnabled()) 1761 if (!RuntimeEnabledFeatures::inputEventEnabled())
1762 return DispatchEventResult::NotCanceled; 1762 return DispatchEventResult::NotCanceled;
1763 if (!target) 1763 if (!target)
1764 return DispatchEventResult::NotCanceled; 1764 return DispatchEventResult::NotCanceled;
1765 InputEvent* beforeInputEvent = InputEvent::createBeforeInput(inputType, data , InputEvent::EventCancelable::IsCancelable, InputEvent::EventIsComposing::NotCo mposing); 1765 InputEvent* beforeInputEvent = InputEvent::createBeforeInput(inputType, data , InputEvent::EventCancelable::IsCancelable, InputEvent::EventIsComposing::NotCo mposing);
1766 return target->dispatchEvent(beforeInputEvent); 1766 return target->dispatchEvent(beforeInputEvent);
1767 } 1767 }
1768 1768
1769 } // namespace blink 1769 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698