| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 Node* ContentDistribution::previousTo(const Node* node) const | 66 Node* ContentDistribution::previousTo(const Node* node) const |
| 67 { | 67 { |
| 68 size_t index = find(node); | 68 size_t index = find(node); |
| 69 if (index == kNotFound || !index) | 69 if (index == kNotFound || !index) |
| 70 return 0; | 70 return 0; |
| 71 return at(index - 1).get(); | 71 return at(index - 1).get(); |
| 72 } | 72 } |
| 73 | 73 |
| 74 void ContentDistribution::trace(Visitor* visitor) | 74 void ContentDistribution::trace(Visitor* visitor) |
| 75 { | 75 { |
| 76 #if ENABLE(OILPAN) |
| 76 visitor->trace(m_nodes); | 77 visitor->trace(m_nodes); |
| 77 visitor->trace(m_indices); | 78 visitor->trace(m_indices); |
| 79 #endif |
| 78 } | 80 } |
| 79 | 81 |
| 80 } // namespace blink | 82 } // namespace blink |
| OLD | NEW |