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

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

Issue 2561043002: Clean-up after Form Association Refactoring (Closed)
Patch Set: Removed constructorNeedsFormElement from scripts and HTMLTagNames Created 4 years 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 1522 matching lines...) Expand 10 before | Expand all | Expand 10 after
1533 return HTMLDivElement::create(document); 1533 return HTMLDivElement::create(document);
1534 case EditorParagraphSeparatorIsP: 1534 case EditorParagraphSeparatorIsP:
1535 return HTMLParagraphElement::create(document); 1535 return HTMLParagraphElement::create(document);
1536 } 1536 }
1537 1537
1538 NOTREACHED(); 1538 NOTREACHED();
1539 return nullptr; 1539 return nullptr;
1540 } 1540 }
1541 1541
1542 HTMLElement* createHTMLElement(Document& document, const QualifiedName& name) { 1542 HTMLElement* createHTMLElement(Document& document, const QualifiedName& name) {
1543 return HTMLElementFactory::createHTMLElement(name.localName(), document, 0, 1543 return HTMLElementFactory::createHTMLElement(name.localName(), document,
1544 CreatedByCloneNode); 1544 CreatedByCloneNode);
1545 } 1545 }
1546 1546
1547 bool isTabHTMLSpanElement(const Node* node) { 1547 bool isTabHTMLSpanElement(const Node* node) {
1548 if (!isHTMLSpanElement(node) || 1548 if (!isHTMLSpanElement(node) ||
1549 toHTMLSpanElement(node)->getAttribute(classAttr) != AppleTabSpanClass) 1549 toHTMLSpanElement(node)->getAttribute(classAttr) != AppleTabSpanClass)
1550 return false; 1550 return false;
1551 UseCounter::count(node->document(), UseCounter::EditingAppleTabSpanClass); 1551 UseCounter::count(node->document(), UseCounter::EditingAppleTabSpanClass);
1552 return true; 1552 return true;
1553 } 1553 }
(...skipping 588 matching lines...) Expand 10 before | Expand all | Expand 10 after
2142 return InputType::DeleteWordBackward; 2142 return InputType::DeleteWordBackward;
2143 if (granularity == LineBoundary) 2143 if (granularity == LineBoundary)
2144 return InputType::DeleteLineBackward; 2144 return InputType::DeleteLineBackward;
2145 return InputType::DeleteContentBackward; 2145 return InputType::DeleteContentBackward;
2146 default: 2146 default:
2147 return InputType::None; 2147 return InputType::None;
2148 } 2148 }
2149 } 2149 }
2150 2150
2151 } // namespace blink 2151 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/custom/CustomElement.cpp ('k') | third_party/WebKit/Source/core/html/HTMLButtonElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698