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

Side by Side Diff: sky/engine/core/dom/Element.h

Issue 883443003: Remove PseudoId. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 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) 2001 Peter Kelly (pmk@post.com) 4 * (C) 2001 Peter Kelly (pmk@post.com)
5 * (C) 2001 Dirk Mueller (mueller@kde.org) 5 * (C) 2001 Dirk Mueller (mueller@kde.org)
6 * Copyright (C) 2003-2011, 2013, 2014 Apple Inc. All rights reserved. 6 * Copyright (C) 2003-2011, 2013, 2014 Apple 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 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 200
201 bool supportsStyleSharing() const; 201 bool supportsStyleSharing() const;
202 202
203 ElementShadow* shadow() const; 203 ElementShadow* shadow() const;
204 ElementShadow& ensureShadow(); 204 ElementShadow& ensureShadow();
205 PassRefPtr<ShadowRoot> ensureShadowRoot(ExceptionState&); 205 PassRefPtr<ShadowRoot> ensureShadowRoot(ExceptionState&);
206 ShadowRoot* shadowRoot() const; 206 ShadowRoot* shadowRoot() const;
207 207
208 bool hasAuthorShadowRoot() const { return shadowRoot(); } 208 bool hasAuthorShadowRoot() const { return shadowRoot(); }
209 209
210 RenderStyle* computedStyle(PseudoId = NOPSEUDO); 210 RenderStyle* computedStyle();
211 211
212 bool isUpgradedCustomElement() const { return customElementState() == Upgrad ed; } 212 bool isUpgradedCustomElement() const { return customElementState() == Upgrad ed; }
213 bool isUnresolvedCustomElement() const { return customElementState() == Wait ingForUpgrade; } 213 bool isUnresolvedCustomElement() const { return customElementState() == Wait ingForUpgrade; }
214 214
215 AtomicString computeInheritedLanguage() const; 215 AtomicString computeInheritedLanguage() const;
216 216
217 virtual bool isURLAttribute(const Attribute&) const { return false; } 217 virtual bool isURLAttribute(const Attribute&) const { return false; }
218 218
219 virtual bool isLiveLink() const { return false; } 219 virtual bool isLiveLink() const { return false; }
220 KURL hrefURL() const; 220 KURL hrefURL() const;
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
335 335
336 void setAttributeInternal(size_t index, const QualifiedName&, const AtomicSt ring& value, SynchronizationOfLazyAttribute); 336 void setAttributeInternal(size_t index, const QualifiedName&, const AtomicSt ring& value, SynchronizationOfLazyAttribute);
337 void appendAttributeInternal(const QualifiedName&, const AtomicString& value , SynchronizationOfLazyAttribute); 337 void appendAttributeInternal(const QualifiedName&, const AtomicString& value , SynchronizationOfLazyAttribute);
338 void removeAttributeInternal(size_t index, SynchronizationOfLazyAttribute); 338 void removeAttributeInternal(size_t index, SynchronizationOfLazyAttribute);
339 void attributeChangedFromParserOrByCloning(const QualifiedName&, const Atomi cString&, AttributeModificationReason); 339 void attributeChangedFromParserOrByCloning(const QualifiedName&, const Atomi cString&, AttributeModificationReason);
340 340
341 #ifndef NDEBUG 341 #ifndef NDEBUG
342 virtual void formatForDebugger(char* buffer, unsigned length) const override ; 342 virtual void formatForDebugger(char* buffer, unsigned length) const override ;
343 #endif 343 #endif
344 344
345 virtual RenderStyle* virtualComputedStyle(PseudoId pseudoElementSpecifier = NOPSEUDO) override { return computedStyle(pseudoElementSpecifier); } 345 virtual RenderStyle* virtualComputedStyle() override { return computedStyle( ); }
346 346
347 // cloneNode is private so that non-virtual cloneElementWithChildren and clo neElementWithoutChildren 347 // cloneNode is private so that non-virtual cloneElementWithChildren and clo neElementWithoutChildren
348 // are used instead. 348 // are used instead.
349 virtual PassRefPtr<Node> cloneNode(bool deep) override; 349 virtual PassRefPtr<Node> cloneNode(bool deep) override;
350 virtual PassRefPtr<Element> cloneElementWithoutAttributesAndChildren(); 350 virtual PassRefPtr<Element> cloneElementWithoutAttributesAndChildren();
351 351
352 QualifiedName m_tagName; 352 QualifiedName m_tagName;
353 353
354 SpellcheckAttributeState spellcheckAttributeState() const; 354 SpellcheckAttributeState spellcheckAttributeState() const;
355 355
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
572 static PassRefPtr<T> create(const QualifiedName&, Document&) 572 static PassRefPtr<T> create(const QualifiedName&, Document&)
573 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ 573 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \
574 PassRefPtr<T> T::create(const QualifiedName& tagName, Document& document) \ 574 PassRefPtr<T> T::create(const QualifiedName& tagName, Document& document) \
575 { \ 575 { \
576 return adoptRef(new T(tagName, document)); \ 576 return adoptRef(new T(tagName, document)); \
577 } 577 }
578 578
579 } // namespace 579 } // namespace
580 580
581 #endif // SKY_ENGINE_CORE_DOM_ELEMENT_H_ 581 #endif // SKY_ENGINE_CORE_DOM_ELEMENT_H_
OLDNEW
« no previous file with comments | « sky/engine/core/css/resolver/MatchedPropertiesCache.cpp ('k') | sky/engine/core/dom/Element.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698