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

Side by Side Diff: third_party/WebKit/Source/core/html/TextControlElement.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) 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 Apple Inc. All rights reserved. 5 * Copyright (C) 2004, 2005, 2006, 2007 Apple Inc. All rights reserved.
6 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) 6 * (C) 2006 Alexey Proskuryakov (ap@nypop.com)
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 #include "core/page/Page.h" 52 #include "core/page/Page.h"
53 #include "platform/heap/Handle.h" 53 #include "platform/heap/Handle.h"
54 #include "platform/text/TextBoundaries.h" 54 #include "platform/text/TextBoundaries.h"
55 #include "wtf/text/StringBuilder.h" 55 #include "wtf/text/StringBuilder.h"
56 56
57 namespace blink { 57 namespace blink {
58 58
59 using namespace HTMLNames; 59 using namespace HTMLNames;
60 60
61 TextControlElement::TextControlElement(const QualifiedName& tagName, 61 TextControlElement::TextControlElement(const QualifiedName& tagName,
62 Document& doc, 62 Document& doc)
63 HTMLFormElement* form) 63 : HTMLFormControlElementWithState(tagName, doc),
64 : HTMLFormControlElementWithState(tagName, doc, form),
65 m_lastChangeWasUserEdit(false), 64 m_lastChangeWasUserEdit(false),
66 m_cachedSelectionStart(0), 65 m_cachedSelectionStart(0),
67 m_cachedSelectionEnd(0) { 66 m_cachedSelectionEnd(0) {
68 m_cachedSelectionDirection = 67 m_cachedSelectionDirection =
69 doc.frame() && 68 doc.frame() &&
70 doc.frame() 69 doc.frame()
71 ->editor() 70 ->editor()
72 .behavior() 71 .behavior()
73 .shouldConsiderSelectionAsDirectional() 72 .shouldConsiderSelectionAsDirectional()
74 ? SelectionHasForwardDirection 73 ? SelectionHasForwardDirection
(...skipping 1090 matching lines...) Expand 10 before | Expand all | Expand 10 after
1165 1164
1166 void TextControlElement::copyNonAttributePropertiesFromElement( 1165 void TextControlElement::copyNonAttributePropertiesFromElement(
1167 const Element& source) { 1166 const Element& source) {
1168 const TextControlElement& sourceElement = 1167 const TextControlElement& sourceElement =
1169 static_cast<const TextControlElement&>(source); 1168 static_cast<const TextControlElement&>(source);
1170 m_lastChangeWasUserEdit = sourceElement.m_lastChangeWasUserEdit; 1169 m_lastChangeWasUserEdit = sourceElement.m_lastChangeWasUserEdit;
1171 HTMLFormControlElement::copyNonAttributePropertiesFromElement(source); 1170 HTMLFormControlElement::copyNonAttributePropertiesFromElement(source);
1172 } 1171 }
1173 1172
1174 } // namespace blink 1173 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/html/TextControlElement.h ('k') | third_party/WebKit/Source/core/html/forms/FileInputType.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698