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

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

Issue 481753002: Use Shadow DOM to display fallback content for images (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Updated Created 6 years, 3 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 | Annotate | Revision Log
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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 static const AtomicString& eventNameForAttributeName(const QualifiedName& at trName); 93 static const AtomicString& eventNameForAttributeName(const QualifiedName& at trName);
94 94
95 virtual bool matchesReadOnlyPseudoClass() const OVERRIDE; 95 virtual bool matchesReadOnlyPseudoClass() const OVERRIDE;
96 virtual bool matchesReadWritePseudoClass() const OVERRIDE; 96 virtual bool matchesReadWritePseudoClass() const OVERRIDE;
97 97
98 static const AtomicString& eventParameterName(); 98 static const AtomicString& eventParameterName();
99 99
100 HTMLMenuElement* contextMenu() const; 100 HTMLMenuElement* contextMenu() const;
101 void setContextMenu(HTMLMenuElement*); 101 void setContextMenu(HTMLMenuElement*);
102 102
103 virtual void ensureFallbackContent() { }
104 virtual void ensurePrimaryContent() { }
105 virtual String altText() const { return String(); }
106
103 protected: 107 protected:
104 HTMLElement(const QualifiedName& tagName, Document&, ConstructionType); 108 HTMLElement(const QualifiedName& tagName, Document&, ConstructionType);
105 109
106 void addHTMLLengthToStyle(MutableStylePropertySet*, CSSPropertyID, const Str ing& value); 110 void addHTMLLengthToStyle(MutableStylePropertySet*, CSSPropertyID, const Str ing& value);
107 void addHTMLColorToStyle(MutableStylePropertySet*, CSSPropertyID, const Stri ng& color); 111 void addHTMLColorToStyle(MutableStylePropertySet*, CSSPropertyID, const Stri ng& color);
108 112
109 void applyAlignmentAttributeToStyle(const AtomicString&, MutableStylePropert ySet*); 113 void applyAlignmentAttributeToStyle(const AtomicString&, MutableStylePropert ySet*);
110 void applyBorderAttributeToStyle(const AtomicString&, MutableStylePropertySe t*); 114 void applyBorderAttributeToStyle(const AtomicString&, MutableStylePropertySe t*);
111 115
112 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR IDE; 116 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR IDE;
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 template<typename T> inline bool is##thisType(const PassRefPtr<T>& node) { r eturn is##thisType(node.get()); } \ 179 template<typename T> inline bool is##thisType(const PassRefPtr<T>& node) { r eturn is##thisType(node.get()); } \
176 template<typename T> inline bool is##thisType(const RefPtr<T>& node) { retur n is##thisType(node.get()); } \ 180 template<typename T> inline bool is##thisType(const RefPtr<T>& node) { retur n is##thisType(node.get()); } \
177 template <> inline bool isElementOfType<const thisType>(const HTMLElement& e lement) { return is##thisType(element); } \ 181 template <> inline bool isElementOfType<const thisType>(const HTMLElement& e lement) { return is##thisType(element); } \
178 DEFINE_ELEMENT_TYPE_CASTS_WITH_FUNCTION(thisType) 182 DEFINE_ELEMENT_TYPE_CASTS_WITH_FUNCTION(thisType)
179 183
180 } // namespace blink 184 } // namespace blink
181 185
182 #include "core/HTMLElementTypeHelpers.h" 186 #include "core/HTMLElementTypeHelpers.h"
183 187
184 #endif // HTMLElement_h 188 #endif // HTMLElement_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698