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

Side by Side Diff: Source/core/html/HTMLTextFormControlElement.h

Issue 524593003: Resolve direction correctly when dir attribute is not in a defined state Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix failing test Created 6 years, 1 month 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) 2000 Dirk Mueller (mueller@kde.org) 4 * (C) 2000 Dirk Mueller (mueller@kde.org)
5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserved. 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserved.
6 * Copyright (C) 2009, 2010, 2011 Google Inc. All rights reserved. 6 * Copyright (C) 2009, 2010, 2011 Google Inc. All rights reserved.
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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 83
84 virtual String value() const = 0; 84 virtual String value() const = 0;
85 85
86 HTMLElement* innerEditorElement() const; 86 HTMLElement* innerEditorElement() const;
87 87
88 void selectionChanged(bool userTriggered); 88 void selectionChanged(bool userTriggered);
89 bool lastChangeWasUserEdit() const; 89 bool lastChangeWasUserEdit() const;
90 virtual void setInnerEditorValue(const String&); 90 virtual void setInnerEditorValue(const String&);
91 String innerEditorValue() const; 91 String innerEditorValue() const;
92 92
93 String directionForFormData() const;
94
95 void setTextAsOfLastFormControlChangeEvent(const String& text) { m_textAsOfL astFormControlChangeEvent = text; } 93 void setTextAsOfLastFormControlChangeEvent(const String& text) { m_textAsOfL astFormControlChangeEvent = text; }
96 94
97 // These functions don't cause synchronous layout and SpellChecker uses 95 // These functions don't cause synchronous layout and SpellChecker uses
98 // them to improve performance. 96 // them to improve performance.
99 // Passed |Position| must point inside of a text form control. 97 // Passed |Position| must point inside of a text form control.
100 static Position startOfWord(const Position&); 98 static Position startOfWord(const Position&);
101 static Position endOfWord(const Position&); 99 static Position endOfWord(const Position&);
102 static Position startOfSentence(const Position&); 100 static Position startOfSentence(const Position&);
103 static Position endOfSentence(const Position&); 101 static Position endOfSentence(const Position&);
104 102
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 } 157 }
160 158
161 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLTextFormControlElement); 159 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLTextFormControlElement);
162 160
163 HTMLTextFormControlElement* enclosingTextFormControl(const Position&); 161 HTMLTextFormControlElement* enclosingTextFormControl(const Position&);
164 HTMLTextFormControlElement* enclosingTextFormControl(Node*); 162 HTMLTextFormControlElement* enclosingTextFormControl(Node*);
165 163
166 } // namespace 164 } // namespace
167 165
168 #endif 166 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698