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

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

Issue 148223004: Improve support for :read-only and :read-write pseudoclasses. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 11 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, 2005, 2006, 2007, 2009 Apple Inc. All rights reserved. 4 * Copyright (C) 2004, 2005, 2006, 2007, 2009 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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 bool hasDirectionAuto() const; 84 bool hasDirectionAuto() const;
85 TextDirection directionalityIfhasDirAutoAttribute(bool& isAuto) const; 85 TextDirection directionalityIfhasDirAutoAttribute(bool& isAuto) const;
86 86
87 virtual bool isHTMLUnknownElement() const { return false; } 87 virtual bool isHTMLUnknownElement() const { return false; }
88 88
89 virtual bool isLabelable() const { return false; } 89 virtual bool isLabelable() const { return false; }
90 // http://www.whatwg.org/specs/web-apps/current-work/multipage/elements.html #interactive-content 90 // http://www.whatwg.org/specs/web-apps/current-work/multipage/elements.html #interactive-content
91 virtual bool isInteractiveContent() const; 91 virtual bool isInteractiveContent() const;
92 virtual void defaultEventHandler(Event*) OVERRIDE; 92 virtual void defaultEventHandler(Event*) OVERRIDE;
93 93
94 virtual bool matchesReadOnlyPseudoClass() const OVERRIDE;
95 virtual bool matchesReadWritePseudoClass() const OVERRIDE;
96
94 protected: 97 protected:
95 HTMLElement(const QualifiedName& tagName, Document&, ConstructionType); 98 HTMLElement(const QualifiedName& tagName, Document&, ConstructionType);
96 99
97 void addHTMLLengthToStyle(MutableStylePropertySet*, CSSPropertyID, const Str ing& value); 100 void addHTMLLengthToStyle(MutableStylePropertySet*, CSSPropertyID, const Str ing& value);
98 void addHTMLColorToStyle(MutableStylePropertySet*, CSSPropertyID, const Stri ng& color); 101 void addHTMLColorToStyle(MutableStylePropertySet*, CSSPropertyID, const Stri ng& color);
99 102
100 void applyAlignmentAttributeToStyle(const AtomicString&, MutableStylePropert ySet*); 103 void applyAlignmentAttributeToStyle(const AtomicString&, MutableStylePropert ySet*);
101 void applyBorderAttributeToStyle(const AtomicString&, MutableStylePropertySe t*); 104 void applyBorderAttributeToStyle(const AtomicString&, MutableStylePropertySe t*);
102 105
103 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR IDE; 106 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR IDE;
(...skipping 29 matching lines...) Expand all
133 inline HTMLElement::HTMLElement(const QualifiedName& tagName, Document& document , ConstructionType type = CreateHTMLElement) 136 inline HTMLElement::HTMLElement(const QualifiedName& tagName, Document& document , ConstructionType type = CreateHTMLElement)
134 : Element(tagName, &document, type) 137 : Element(tagName, &document, type)
135 { 138 {
136 ASSERT(!tagName.localName().isNull()); 139 ASSERT(!tagName.localName().isNull());
137 ScriptWrappable::init(this); 140 ScriptWrappable::init(this);
138 } 141 }
139 142
140 } // namespace WebCore 143 } // namespace WebCore
141 144
142 #endif // HTMLElement_h 145 #endif // HTMLElement_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698