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

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

Issue 22572005: Remove all uses of the ASCIILiteral class. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rm it from wtf Created 7 years, 4 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/Document.cpp ('k') | Source/core/editing/EditorCommand.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) 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 24 matching lines...) Expand all
35 namespace WebCore { 35 namespace WebCore {
36 36
37 const QualifiedName& pseudoElementTagName() 37 const QualifiedName& pseudoElementTagName()
38 { 38 {
39 DEFINE_STATIC_LOCAL(QualifiedName, name, (nullAtom, "<pseudo>", nullAtom)); 39 DEFINE_STATIC_LOCAL(QualifiedName, name, (nullAtom, "<pseudo>", nullAtom));
40 return name; 40 return name;
41 } 41 }
42 42
43 String PseudoElement::pseudoElementNameForEvents(PseudoId pseudoId) 43 String PseudoElement::pseudoElementNameForEvents(PseudoId pseudoId)
44 { 44 {
45 DEFINE_STATIC_LOCAL(const String, after, (ASCIILiteral("::after"))); 45 DEFINE_STATIC_LOCAL(const String, after, ("::after"));
46 DEFINE_STATIC_LOCAL(const String, before, (ASCIILiteral("::before"))); 46 DEFINE_STATIC_LOCAL(const String, before, ("::before"));
47 switch (pseudoId) { 47 switch (pseudoId) {
48 case AFTER: 48 case AFTER:
49 return after; 49 return after;
50 case BEFORE: 50 case BEFORE:
51 return before; 51 return before;
52 default: 52 default:
53 return emptyString(); 53 return emptyString();
54 } 54 }
55 } 55 }
56 56
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 119
120 // The style for the RenderTextFragment for first letter is managed by a n enclosing block, not by us. 120 // The style for the RenderTextFragment for first letter is managed by a n enclosing block, not by us.
121 if (child->style()->styleType() == FIRST_LETTER) 121 if (child->style()->styleType() == FIRST_LETTER)
122 continue; 122 continue;
123 123
124 child->setPseudoStyle(renderer->style()); 124 child->setPseudoStyle(renderer->style());
125 } 125 }
126 } 126 }
127 127
128 } // namespace 128 } // namespace
OLDNEW
« no previous file with comments | « Source/core/dom/Document.cpp ('k') | Source/core/editing/EditorCommand.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698