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 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
240 root->didRemoveInsertionPoint(this); | 240 root->didRemoveInsertionPoint(this); |
241 if (rootOwner) { | 241 if (rootOwner) { |
242 if (canAffectSelector()) | 242 if (canAffectSelector()) |
243 rootOwner->willAffectSelector(); | 243 rootOwner->willAffectSelector(); |
244 } | 244 } |
245 } | 245 } |
246 | 246 |
247 HTMLElement::removedFrom(insertionPoint); | 247 HTMLElement::removedFrom(insertionPoint); |
248 } | 248 } |
249 | 249 |
250 void InsertionPoint::trace(Visitor* visitor) | 250 DEFINE_TRACE(InsertionPoint) |
251 { | 251 { |
252 visitor->trace(m_distribution); | 252 visitor->trace(m_distribution); |
253 HTMLElement::trace(visitor); | 253 HTMLElement::trace(visitor); |
254 } | 254 } |
255 | 255 |
256 const InsertionPoint* resolveReprojection(const Node* projectedNode) | 256 const InsertionPoint* resolveReprojection(const Node* projectedNode) |
257 { | 257 { |
258 ASSERT(projectedNode); | 258 ASSERT(projectedNode); |
259 const InsertionPoint* insertionPoint = 0; | 259 const InsertionPoint* insertionPoint = 0; |
260 const Node* current = projectedNode; | 260 const Node* current = projectedNode; |
(...skipping 26 matching lines...) Expand all Loading... |
287 if (!insertionPoints) | 287 if (!insertionPoints) |
288 return; | 288 return; |
289 for (size_t i = 0; i < insertionPoints->size(); ++i) | 289 for (size_t i = 0; i < insertionPoints->size(); ++i) |
290 results.append(insertionPoints->at(i).get()); | 290 results.append(insertionPoints->at(i).get()); |
291 ASSERT(current != insertionPoints->last().get()); | 291 ASSERT(current != insertionPoints->last().get()); |
292 current = insertionPoints->last().get(); | 292 current = insertionPoints->last().get(); |
293 } | 293 } |
294 } | 294 } |
295 | 295 |
296 } // namespace blink | 296 } // namespace blink |
OLD | NEW |