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

Side by Side Diff: Source/core/dom/Node.h

Issue 778003003: List marker pseudo elements. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/dom/MarkerPseudoElement.cpp ('k') | Source/core/dom/Node.cpp » ('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 Dirk Mueller (mueller@kde.org) 4 * (C) 2001 Dirk Mueller (mueller@kde.org)
5 * Copyright (C) 2004-2011, 2014 Apple Inc. All rights reserved. 5 * Copyright (C) 2004-2011, 2014 Apple Inc. All rights reserved.
6 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/) 6 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/)
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 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 241
242 bool isElementNode() const { return getFlag(IsElementFlag); } 242 bool isElementNode() const { return getFlag(IsElementFlag); }
243 bool isContainerNode() const { return getFlag(IsContainerFlag); } 243 bool isContainerNode() const { return getFlag(IsContainerFlag); }
244 bool isTextNode() const { return getFlag(IsTextFlag); } 244 bool isTextNode() const { return getFlag(IsTextFlag); }
245 bool isHTMLElement() const { return getFlag(IsHTMLFlag); } 245 bool isHTMLElement() const { return getFlag(IsHTMLFlag); }
246 bool isSVGElement() const { return getFlag(IsSVGFlag); } 246 bool isSVGElement() const { return getFlag(IsSVGFlag); }
247 247
248 bool isPseudoElement() const { return pseudoId() != NOPSEUDO; } 248 bool isPseudoElement() const { return pseudoId() != NOPSEUDO; }
249 bool isBeforePseudoElement() const { return pseudoId() == BEFORE; } 249 bool isBeforePseudoElement() const { return pseudoId() == BEFORE; }
250 bool isAfterPseudoElement() const { return pseudoId() == AFTER; } 250 bool isAfterPseudoElement() const { return pseudoId() == AFTER; }
251 bool isMarkerPseudoElement() const { return pseudoId() == MARKER; }
251 bool isFirstLetterPseudoElement() const { return pseudoId() == FIRST_LETTER; } 252 bool isFirstLetterPseudoElement() const { return pseudoId() == FIRST_LETTER; }
252 virtual PseudoId pseudoId() const { return NOPSEUDO; } 253 virtual PseudoId pseudoId() const { return NOPSEUDO; }
253 254
254 bool isCustomElement() const { return getFlag(CustomElementFlag); } 255 bool isCustomElement() const { return getFlag(CustomElementFlag); }
255 enum CustomElementState { 256 enum CustomElementState {
256 NotCustomElement = 0, 257 NotCustomElement = 0,
257 WaitingForUpgrade = 1 << 0, 258 WaitingForUpgrade = 1 << 0,
258 Upgraded = 1 << 1 259 Upgraded = 1 << 1
259 }; 260 };
260 CustomElementState customElementState() const 261 CustomElementState customElementState() const
(...skipping 656 matching lines...) Expand 10 before | Expand all | Expand 10 after
917 } // namespace blink 918 } // namespace blink
918 919
919 #ifndef NDEBUG 920 #ifndef NDEBUG
920 // Outside the WebCore namespace for ease of invocation from gdb. 921 // Outside the WebCore namespace for ease of invocation from gdb.
921 void showNode(const blink::Node*); 922 void showNode(const blink::Node*);
922 void showTree(const blink::Node*); 923 void showTree(const blink::Node*);
923 void showNodePath(const blink::Node*); 924 void showNodePath(const blink::Node*);
924 #endif 925 #endif
925 926
926 #endif // Node_h 927 #endif // Node_h
OLDNEW
« no previous file with comments | « Source/core/dom/MarkerPseudoElement.cpp ('k') | Source/core/dom/Node.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698