| 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 case PseudoIdBackdrop: { | 54 case PseudoIdBackdrop: { |
| 55 DEFINE_STATIC_LOCAL(QualifiedName, backdrop, | 55 DEFINE_STATIC_LOCAL(QualifiedName, backdrop, |
| 56 (nullAtom, "<pseudo:backdrop>", nullAtom)); | 56 (nullAtom, "<pseudo:backdrop>", nullAtom)); |
| 57 return backdrop; | 57 return backdrop; |
| 58 } | 58 } |
| 59 case PseudoIdFirstLetter: { | 59 case PseudoIdFirstLetter: { |
| 60 DEFINE_STATIC_LOCAL(QualifiedName, firstLetter, | 60 DEFINE_STATIC_LOCAL(QualifiedName, firstLetter, |
| 61 (nullAtom, "<pseudo:first-letter>", nullAtom)); | 61 (nullAtom, "<pseudo:first-letter>", nullAtom)); |
| 62 return firstLetter; | 62 return firstLetter; |
| 63 } | 63 } |
| 64 default: { ASSERT_NOT_REACHED(); } | 64 default: |
| 65 NOTREACHED(); |
| 65 } | 66 } |
| 66 DEFINE_STATIC_LOCAL(QualifiedName, name, (nullAtom, "<pseudo>", nullAtom)); | 67 DEFINE_STATIC_LOCAL(QualifiedName, name, (nullAtom, "<pseudo>", nullAtom)); |
| 67 return name; | 68 return name; |
| 68 } | 69 } |
| 69 | 70 |
| 70 String PseudoElement::pseudoElementNameForEvents(PseudoId pseudoId) { | 71 String PseudoElement::pseudoElementNameForEvents(PseudoId pseudoId) { |
| 71 DEFINE_STATIC_LOCAL(const String, after, ("::after")); | 72 DEFINE_STATIC_LOCAL(const String, after, ("::after")); |
| 72 DEFINE_STATIC_LOCAL(const String, before, ("::before")); | 73 DEFINE_STATIC_LOCAL(const String, before, ("::before")); |
| 73 switch (pseudoId) { | 74 switch (pseudoId) { |
| 74 case PseudoIdAfter: | 75 case PseudoIdAfter: |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 188 LayoutObject* ancestor = layoutObject()->parent(); | 189 LayoutObject* ancestor = layoutObject()->parent(); |
| 189 while (ancestor->isAnonymous() || | 190 while (ancestor->isAnonymous() || |
| 190 (ancestor->node() && ancestor->node()->isPseudoElement())) { | 191 (ancestor->node() && ancestor->node()->isPseudoElement())) { |
| 191 DCHECK(ancestor->parent()); | 192 DCHECK(ancestor->parent()); |
| 192 ancestor = ancestor->parent(); | 193 ancestor = ancestor->parent(); |
| 193 } | 194 } |
| 194 return ancestor->node(); | 195 return ancestor->node(); |
| 195 } | 196 } |
| 196 | 197 |
| 197 } // namespace blink | 198 } // namespace blink |
| OLD | NEW |