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

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

Issue 2292433002: CL for perf tryjob on linux (Closed)
Patch Set: Created 4 years, 3 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 1409 matching lines...) Expand 10 before | Expand all | Expand 10 after
1420 case EditorParagraphSeparatorIsP: 1420 case EditorParagraphSeparatorIsP:
1421 return HTMLParagraphElement::create(document); 1421 return HTMLParagraphElement::create(document);
1422 } 1422 }
1423 1423
1424 NOTREACHED(); 1424 NOTREACHED();
1425 return nullptr; 1425 return nullptr;
1426 } 1426 }
1427 1427
1428 HTMLElement* createHTMLElement(Document& document, const QualifiedName& name) 1428 HTMLElement* createHTMLElement(Document& document, const QualifiedName& name)
1429 { 1429 {
1430 return HTMLElementFactory::createHTMLElement(name.localName(), document, 0, CreatedByCloneNode); 1430 return HTMLElementFactory::createHTMLElement(name.localName(), document, 0, 0, CreatedByCloneNode);
1431 } 1431 }
1432 1432
1433 bool isTabHTMLSpanElement(const Node* node) 1433 bool isTabHTMLSpanElement(const Node* node)
1434 { 1434 {
1435 if (!isHTMLSpanElement(node) || toHTMLSpanElement(node)->getAttribute(classA ttr) != AppleTabSpanClass) 1435 if (!isHTMLSpanElement(node) || toHTMLSpanElement(node)->getAttribute(classA ttr) != AppleTabSpanClass)
1436 return false; 1436 return false;
1437 UseCounter::count(node->document(), UseCounter::EditingAppleTabSpanClass); 1437 UseCounter::count(node->document(), UseCounter::EditingAppleTabSpanClass);
1438 return true; 1438 return true;
1439 } 1439 }
1440 1440
(...skipping 475 matching lines...) Expand 10 before | Expand all | Expand 10 after
1916 return InputType::DeleteWordBackward; 1916 return InputType::DeleteWordBackward;
1917 if (granularity == LineBoundary) 1917 if (granularity == LineBoundary)
1918 return InputType::DeleteLineBackward; 1918 return InputType::DeleteLineBackward;
1919 return InputType::DeleteContentBackward; 1919 return InputType::DeleteContentBackward;
1920 default: 1920 default:
1921 return InputType::None; 1921 return InputType::None;
1922 } 1922 }
1923 } 1923 }
1924 1924
1925 } // namespace blink 1925 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698