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

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

Issue 2473743003: Call Element::rebuildLayoutTree from Document::updateStyle directly (Closed)
Patch Set: Split up didRecalcStyle into didRecalcStyle and didRebuildLayoutTree Created 3 years, 10 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 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights
6 * reserved. 6 * 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 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 virtual bool shouldShowFocusRingOnMouseFocus() const; 154 virtual bool shouldShowFocusRingOnMouseFocus() const;
155 bool shouldHaveFocusAppearance() const final; 155 bool shouldHaveFocusAppearance() const final;
156 void dispatchBlurEvent(Element* newFocusedElement, 156 void dispatchBlurEvent(Element* newFocusedElement,
157 WebFocusType, 157 WebFocusType,
158 InputDeviceCapabilities* sourceCapabilities) override; 158 InputDeviceCapabilities* sourceCapabilities) override;
159 void dispatchFocusEvent(Element* oldFocusedElement, 159 void dispatchFocusEvent(Element* oldFocusedElement,
160 WebFocusType, 160 WebFocusType,
161 InputDeviceCapabilities* sourceCapabilities) override; 161 InputDeviceCapabilities* sourceCapabilities) override;
162 void willCallDefaultEventHandler(const Event&) final; 162 void willCallDefaultEventHandler(const Event&) final;
163 163
164 void didRecalcStyle() override; 164 void didRebuildLayoutTree() override;
165 165
166 // This must be called any time the result of willValidate() has changed. 166 // This must be called any time the result of willValidate() has changed.
167 void setNeedsWillValidateCheck(); 167 void setNeedsWillValidateCheck();
168 virtual bool recalcWillValidate() const; 168 virtual bool recalcWillValidate() const;
169 169
170 virtual void resetImpl() {} 170 virtual void resetImpl() {}
171 virtual bool supportsAutofocus() const; 171 virtual bool supportsAutofocus() const;
172 172
173 private: 173 private:
174 bool isFormControlElement() const final { return true; } 174 bool isFormControlElement() const final { return true; }
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLFormControlElement); 220 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLFormControlElement);
221 DEFINE_TYPE_CASTS(HTMLFormControlElement, 221 DEFINE_TYPE_CASTS(HTMLFormControlElement,
222 ListedElement, 222 ListedElement,
223 control, 223 control,
224 control->isFormControlElement(), 224 control->isFormControlElement(),
225 control.isFormControlElement()); 225 control.isFormControlElement());
226 226
227 } // namespace blink 227 } // namespace blink
228 228
229 #endif 229 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698