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

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

Issue 840163003: Make SelectorChecker a const operation over element. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 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 * (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 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 209
210 ElementShadow* shadow() const; 210 ElementShadow* shadow() const;
211 ElementShadow& ensureShadow(); 211 ElementShadow& ensureShadow();
212 PassRefPtr<ShadowRoot> ensureShadowRoot(ExceptionState&); 212 PassRefPtr<ShadowRoot> ensureShadowRoot(ExceptionState&);
213 ShadowRoot* shadowRoot() const; 213 ShadowRoot* shadowRoot() const;
214 214
215 bool hasAuthorShadowRoot() const { return shadowRoot(); } 215 bool hasAuthorShadowRoot() const { return shadowRoot(); }
216 216
217 RenderStyle* computedStyle(PseudoId = NOPSEUDO); 217 RenderStyle* computedStyle(PseudoId = NOPSEUDO);
218 218
219 bool isUpgradedCustomElement() { return customElementState() == Upgraded; } 219 bool isUpgradedCustomElement() const { return customElementState() == Upgrad ed; }
220 bool isUnresolvedCustomElement() { return customElementState() == WaitingFor Upgrade; } 220 bool isUnresolvedCustomElement() const { return customElementState() == Wait ingForUpgrade; }
221 221
222 AtomicString computeInheritedLanguage() const; 222 AtomicString computeInheritedLanguage() const;
223 223
224 virtual bool isURLAttribute(const Attribute&) const { return false; } 224 virtual bool isURLAttribute(const Attribute&) const { return false; }
225 225
226 virtual bool isLiveLink() const { return false; } 226 virtual bool isLiveLink() const { return false; }
227 KURL hrefURL() const; 227 KURL hrefURL() const;
228 228
229 KURL getURLAttribute(const QualifiedName&) const; 229 KURL getURLAttribute(const QualifiedName&) const;
230 KURL getNonEmptyURLAttribute(const QualifiedName&) const; 230 KURL getNonEmptyURLAttribute(const QualifiedName&) const;
(...skipping 369 matching lines...) Expand 10 before | Expand all | Expand 10 after
600 static PassRefPtr<T> create(const QualifiedName&, Document&) 600 static PassRefPtr<T> create(const QualifiedName&, Document&)
601 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ 601 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \
602 PassRefPtr<T> T::create(const QualifiedName& tagName, Document& document) \ 602 PassRefPtr<T> T::create(const QualifiedName& tagName, Document& document) \
603 { \ 603 { \
604 return adoptRef(new T(tagName, document)); \ 604 return adoptRef(new T(tagName, document)); \
605 } 605 }
606 606
607 } // namespace 607 } // namespace
608 608
609 #endif // SKY_ENGINE_CORE_DOM_ELEMENT_H_ 609 #endif // SKY_ENGINE_CORE_DOM_ELEMENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698