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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
184 // us and our parent so make sure we skip over them. | 188 // us and our parent so make sure we skip over them. |
185 LayoutObject* ancestor = layoutObject()->parent(); | 189 LayoutObject* ancestor = layoutObject()->parent(); |
186 while (ancestor->isAnonymous() || (ancestor->node() && ancestor->node()->isP
seudoElement())) { | 190 while (ancestor->isAnonymous() || (ancestor->node() && ancestor->node()->isP
seudoElement())) { |
187 ASSERT(ancestor->parent()); | 191 ASSERT(ancestor->parent()); |
188 ancestor = ancestor->parent(); | 192 ancestor = ancestor->parent(); |
189 } | 193 } |
190 return ancestor->node(); | 194 return ancestor->node(); |
191 } | 195 } |
192 | 196 |
193 } // namespace | 197 } // namespace |
OLD | NEW |