| 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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 154 for (LayoutObject* child = renderer->nextInPreOrder(renderer); child; child
= child->nextInPreOrder(renderer)) { | 158 for (LayoutObject* child = renderer->nextInPreOrder(renderer); child; child
= child->nextInPreOrder(renderer)) { |
| 155 // We only manage the style for the generated content items. | 159 // We only manage the style for the generated content items. |
| 156 if (!child->isText() && !child->isQuote() && !child->isImage()) | 160 if (!child->isText() && !child->isQuote() && !child->isImage()) |
| 157 continue; | 161 continue; |
| 158 | 162 |
| 159 child->setPseudoStyle(renderer->mutableStyle()); | 163 child->setPseudoStyle(renderer->mutableStyle()); |
| 160 } | 164 } |
| 161 } | 165 } |
| 162 | 166 |
| 163 } // namespace | 167 } // namespace |
| OLD | NEW |