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

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

Issue 2586143004: Blur immediately if an attribute change made an element unfocasable. (Closed)
Patch Set: Update comments and a function name Created 3 years, 12 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 * Copyright (C) 2004-2007, 2009, 2014 Apple Inc. All rights reserved. 4 * Copyright (C) 2004-2007, 2009, 2014 Apple Inc. All rights reserved.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 AllowPercentage = AllowPercentageValues); 132 AllowPercentage = AllowPercentageValues);
133 void addHTMLColorToStyle(MutableStylePropertySet*, 133 void addHTMLColorToStyle(MutableStylePropertySet*,
134 CSSPropertyID, 134 CSSPropertyID,
135 const String& color); 135 const String& color);
136 136
137 void applyAlignmentAttributeToStyle(const AtomicString&, 137 void applyAlignmentAttributeToStyle(const AtomicString&,
138 MutableStylePropertySet*); 138 MutableStylePropertySet*);
139 void applyBorderAttributeToStyle(const AtomicString&, 139 void applyBorderAttributeToStyle(const AtomicString&,
140 MutableStylePropertySet*); 140 MutableStylePropertySet*);
141 141
142 void attributeChanged(const QualifiedName&,
143 const AtomicString&,
144 const AtomicString&,
145 AttributeModificationReason) override;
142 void parseAttribute(const QualifiedName&, 146 void parseAttribute(const QualifiedName&,
143 const AtomicString&, 147 const AtomicString&,
144 const AtomicString&) override; 148 const AtomicString&) override;
145 static bool parseColorWithLegacyRules(const String& attributeValue, 149 static bool parseColorWithLegacyRules(const String& attributeValue,
146 Color& parsedColor); 150 Color& parsedColor);
147 bool isPresentationAttribute(const QualifiedName&) const override; 151 bool isPresentationAttribute(const QualifiedName&) const override;
148 void collectStyleForPresentationAttribute(const QualifiedName&, 152 void collectStyleForPresentationAttribute(const QualifiedName&,
149 const AtomicString&, 153 const AtomicString&,
150 MutableStylePropertySet*) override; 154 MutableStylePropertySet*) override;
151 unsigned parseBorderWidthAttribute(const AtomicString&) const; 155 unsigned parseBorderWidthAttribute(const AtomicString&) const;
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
236 inline bool isElementOfType<const thisType>(const HTMLElement& element) { \ 240 inline bool isElementOfType<const thisType>(const HTMLElement& element) { \
237 return is##thisType(element); \ 241 return is##thisType(element); \
238 } \ 242 } \
239 DEFINE_ELEMENT_TYPE_CASTS_WITH_FUNCTION(thisType) 243 DEFINE_ELEMENT_TYPE_CASTS_WITH_FUNCTION(thisType)
240 244
241 } // namespace blink 245 } // namespace blink
242 246
243 #include "core/HTMLElementTypeHelpers.h" 247 #include "core/HTMLElementTypeHelpers.h"
244 248
245 #endif // HTMLElement_h 249 #endif // HTMLElement_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLAnchorElement.cpp ('k') | third_party/WebKit/Source/core/html/HTMLElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698