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

Side by Side Diff: Source/core/dom/PseudoElement.cpp

Issue 778003003: List marker pseudo elements. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Neither the name of Google Inc. nor the names of its 10 * * Neither the name of Google Inc. nor the names of its
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 return after; 48 return after;
49 } 49 }
50 case BEFORE: { 50 case BEFORE: {
51 DEFINE_STATIC_LOCAL(QualifiedName, before, (nullAtom, "<pseudo:before>", nullAtom)); 51 DEFINE_STATIC_LOCAL(QualifiedName, before, (nullAtom, "<pseudo:before>", nullAtom));
52 return before; 52 return before;
53 } 53 }
54 case BACKDROP: { 54 case BACKDROP: {
55 DEFINE_STATIC_LOCAL(QualifiedName, backdrop, (nullAtom, "<pseudo:backdro p>", nullAtom)); 55 DEFINE_STATIC_LOCAL(QualifiedName, backdrop, (nullAtom, "<pseudo:backdro p>", nullAtom));
56 return backdrop; 56 return backdrop;
57 } 57 }
58 case MARKER: {
59 DEFINE_STATIC_LOCAL(QualifiedName, marker, (nullAtom, "<pseudo:marker>", nullAtom));
60 return marker;
61 }
58 case FIRST_LETTER: { 62 case FIRST_LETTER: {
59 DEFINE_STATIC_LOCAL(QualifiedName, firstLetter, (nullAtom, "<pseudo:firs t-letter>", nullAtom)); 63 DEFINE_STATIC_LOCAL(QualifiedName, firstLetter, (nullAtom, "<pseudo:firs t-letter>", nullAtom));
60 return firstLetter; 64 return firstLetter;
61 } 65 }
62 default: { 66 default: {
63 ASSERT_NOT_REACHED(); 67 ASSERT_NOT_REACHED();
64 } 68 }
65 } 69 }
66 DEFINE_STATIC_LOCAL(QualifiedName, name, (nullAtom, "<pseudo>", nullAtom)); 70 DEFINE_STATIC_LOCAL(QualifiedName, name, (nullAtom, "<pseudo>", nullAtom));
67 return name; 71 return name;
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 for (RenderObject* child = renderer->nextInPreOrder(renderer); child; child = child->nextInPreOrder(renderer)) { 156 for (RenderObject* child = renderer->nextInPreOrder(renderer); child; child = child->nextInPreOrder(renderer)) {
153 // We only manage the style for the generated content items. 157 // We only manage the style for the generated content items.
154 if (!child->isText() && !child->isQuote() && !child->isImage()) 158 if (!child->isText() && !child->isQuote() && !child->isImage())
155 continue; 159 continue;
156 160
157 child->setPseudoStyle(renderer->style()); 161 child->setPseudoStyle(renderer->style());
158 } 162 }
159 } 163 }
160 164
161 } // namespace 165 } // namespace
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698