OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |