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

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

Issue 2258033002: Replace ASSERT()s with DCHECK*() in core/html/*.{cpp,h}. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Replace ASSERT()s with DCHECK*() in core/html/*.{cpp,h}. Created 4 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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 113
114 protected: 114 protected:
115 HTMLTextFormControlElement(const QualifiedName&, Document&, HTMLFormElement* ); 115 HTMLTextFormControlElement(const QualifiedName&, Document&, HTMLFormElement* );
116 bool isPlaceholderEmpty() const; 116 bool isPlaceholderEmpty() const;
117 virtual void updatePlaceholderText() = 0; 117 virtual void updatePlaceholderText() = 0;
118 118
119 void parseAttribute(const QualifiedName&, const AtomicString&, const AtomicS tring&) override; 119 void parseAttribute(const QualifiedName&, const AtomicString&, const AtomicS tring&) override;
120 120
121 void cacheSelection(int start, int end, TextFieldSelectionDirection directio n) 121 void cacheSelection(int start, int end, TextFieldSelectionDirection directio n)
122 { 122 {
123 ASSERT(start >= 0); 123 DCHECK_GE(start, 0);
124 m_cachedSelectionStart = start; 124 m_cachedSelectionStart = start;
125 m_cachedSelectionEnd = end; 125 m_cachedSelectionEnd = end;
126 m_cachedSelectionDirection = direction; 126 m_cachedSelectionDirection = direction;
127 } 127 }
128 128
129 void restoreCachedSelection(); 129 void restoreCachedSelection();
130 130
131 void defaultEventHandler(Event*) override; 131 void defaultEventHandler(Event*) override;
132 virtual void subtreeHasChanged() = 0; 132 virtual void subtreeHasChanged() = 0;
133 133
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 } 172 }
173 173
174 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLTextFormControlElement); 174 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLTextFormControlElement);
175 175
176 HTMLTextFormControlElement* enclosingTextFormControl(const Position&); 176 HTMLTextFormControlElement* enclosingTextFormControl(const Position&);
177 HTMLTextFormControlElement* enclosingTextFormControl(Node*); 177 HTMLTextFormControlElement* enclosingTextFormControl(Node*);
178 178
179 } // namespace blink 179 } // namespace blink
180 180
181 #endif 181 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698