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

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

Issue 419023007: Autocomplete confused about direction if inline style and inherited dir attribute are mixed (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Incorporated review comments Created 6 years, 4 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) 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 HTMLElement* innerEditorElement() const; 84 HTMLElement* innerEditorElement() const;
85 85
86 void selectionChanged(bool userTriggered); 86 void selectionChanged(bool userTriggered);
87 bool lastChangeWasUserEdit() const; 87 bool lastChangeWasUserEdit() const;
88 virtual void setInnerEditorValue(const String&); 88 virtual void setInnerEditorValue(const String&);
89 String innerEditorValue() const; 89 String innerEditorValue() const;
90 90
91 String directionForFormData() const; 91 String directionForFormData() const;
92 92
93 String directionForAutocomplete() const;
94
93 void setTextAsOfLastFormControlChangeEvent(const String& text) { m_textAsOfL astFormControlChangeEvent = text; } 95 void setTextAsOfLastFormControlChangeEvent(const String& text) { m_textAsOfL astFormControlChangeEvent = text; }
94 96
95 // These functions don't cause synchronous layout and SpellChecker uses 97 // These functions don't cause synchronous layout and SpellChecker uses
96 // them to improve performance. 98 // them to improve performance.
97 // Passed |Position| must point inside of a text form control. 99 // Passed |Position| must point inside of a text form control.
98 static Position startOfWord(const Position&); 100 static Position startOfWord(const Position&);
99 static Position endOfWord(const Position&); 101 static Position endOfWord(const Position&);
100 static Position startOfSentence(const Position&); 102 static Position startOfSentence(const Position&);
101 static Position endOfSentence(const Position&); 103 static Position endOfSentence(const Position&);
102 104
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 } 159 }
158 160
159 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLTextFormControlElement); 161 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLTextFormControlElement);
160 162
161 HTMLTextFormControlElement* enclosingTextFormControl(const Position&); 163 HTMLTextFormControlElement* enclosingTextFormControl(const Position&);
162 HTMLTextFormControlElement* enclosingTextFormControl(Node*); 164 HTMLTextFormControlElement* enclosingTextFormControl(Node*);
163 165
164 } // namespace 166 } // namespace
165 167
166 #endif 168 #endif
OLDNEW
« no previous file with comments | « no previous file | Source/core/html/HTMLTextFormControlElement.cpp » ('j') | Source/core/html/HTMLTextFormControlElement.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698