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

Side by Side Diff: third_party/WebKit/Source/core/dom/Element.h

Issue 1982973002: Add CustomElementState for Custom Elements v1 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: build fix and UNREACHABLE -> NOTREACHED Created 4 years, 7 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/Node.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 356 matching lines...) Expand 10 before | Expand all | Expand 10 after
367 367
368 const ComputedStyle* ensureComputedStyle(PseudoId = PseudoIdNone); 368 const ComputedStyle* ensureComputedStyle(PseudoId = PseudoIdNone);
369 369
370 // Methods for indicating the style is affected by dynamic updates (e.g., ch ildren changing, our position changing in our sibling list, etc.) 370 // Methods for indicating the style is affected by dynamic updates (e.g., ch ildren changing, our position changing in our sibling list, etc.)
371 bool styleAffectedByEmpty() const { return hasElementFlag(StyleAffectedByEmp ty); } 371 bool styleAffectedByEmpty() const { return hasElementFlag(StyleAffectedByEmp ty); }
372 void setStyleAffectedByEmpty() { setElementFlag(StyleAffectedByEmpty); } 372 void setStyleAffectedByEmpty() { setElementFlag(StyleAffectedByEmpty); }
373 373
374 void setIsInCanvasSubtree(bool value) { setElementFlag(IsInCanvasSubtree, va lue); } 374 void setIsInCanvasSubtree(bool value) { setElementFlag(IsInCanvasSubtree, va lue); }
375 bool isInCanvasSubtree() const { return hasElementFlag(IsInCanvasSubtree); } 375 bool isInCanvasSubtree() const { return hasElementFlag(IsInCanvasSubtree); }
376 376
377 bool isDefined() const { return getCustomElementState() != CustomElementStat e::Undefined; }
377 bool isUpgradedV0CustomElement() { return getV0CustomElementState() == V0Upg raded; } 378 bool isUpgradedV0CustomElement() { return getV0CustomElementState() == V0Upg raded; }
378 bool isUnresolvedV0CustomElement() { return getV0CustomElementState() == V0W aitingForUpgrade; } 379 bool isUnresolvedV0CustomElement() { return getV0CustomElementState() == V0W aitingForUpgrade; }
379 380
380 AtomicString computeInheritedLanguage() const; 381 AtomicString computeInheritedLanguage() const;
381 Locale& locale() const; 382 Locale& locale() const;
382 383
383 virtual void accessKeyAction(bool /*sendToAnyEvent*/) { } 384 virtual void accessKeyAction(bool /*sendToAnyEvent*/) { }
384 385
385 virtual bool isURLAttribute(const Attribute&) const { return false; } 386 virtual bool isURLAttribute(const Attribute&) const { return false; }
386 virtual bool isHTMLContentAttribute(const Attribute&) const { return false; } 387 virtual bool isHTMLContentAttribute(const Attribute&) const { return false; }
(...skipping 579 matching lines...) Expand 10 before | Expand all | Expand 10 after
966 static T* create(const QualifiedName&, Document&) 967 static T* create(const QualifiedName&, Document&)
967 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ 968 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \
968 T* T::create(const QualifiedName& tagName, Document& document) \ 969 T* T::create(const QualifiedName& tagName, Document& document) \
969 { \ 970 { \
970 return new T(tagName, document); \ 971 return new T(tagName, document); \
971 } 972 }
972 973
973 } // namespace blink 974 } // namespace blink
974 975
975 #endif // Element_h 976 #endif // Element_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/Node.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698