| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 intptr_t count = 1; | 92 intptr_t count = 1; |
| 93 for (Node& current : NodeTraversal::descendantsOf(*m_root)) { | 93 for (Node& current : NodeTraversal::descendantsOf(*m_root)) { |
| 94 ALLOW_UNUSED_LOCAL(current); | 94 ALLOW_UNUSED_LOCAL(current); |
| 95 ++count; | 95 ++count; |
| 96 } | 96 } |
| 97 return count; | 97 return count; |
| 98 } | 98 } |
| 99 | 99 |
| 100 intptr_t RetainedDOMInfo::GetEquivalenceClass() | 100 intptr_t RetainedDOMInfo::GetEquivalenceClass() |
| 101 { | 101 { |
| 102 return reinterpret_cast<intptr_t>(m_root); | 102 return reinterpret_cast<intptr_t>(m_root.get()); |
| 103 } | 103 } |
| 104 | 104 |
| 105 ActiveDOMObjectsInfo::ActiveDOMObjectsInfo(int numberOfObjectsWithPendingActivit
y) | 105 ActiveDOMObjectsInfo::ActiveDOMObjectsInfo(int numberOfObjectsWithPendingActivit
y) |
| 106 : m_numberOfObjectsWithPendingActivity(numberOfObjectsWithPendingActivity) | 106 : m_numberOfObjectsWithPendingActivity(numberOfObjectsWithPendingActivity) |
| 107 { | 107 { |
| 108 } | 108 } |
| 109 | 109 |
| 110 ActiveDOMObjectsInfo::~ActiveDOMObjectsInfo() | 110 ActiveDOMObjectsInfo::~ActiveDOMObjectsInfo() |
| 111 { | 111 { |
| 112 } | 112 } |
| (...skipping 27 matching lines...) Expand all Loading... |
| 140 { | 140 { |
| 141 return m_numberOfObjectsWithPendingActivity; | 141 return m_numberOfObjectsWithPendingActivity; |
| 142 } | 142 } |
| 143 | 143 |
| 144 intptr_t ActiveDOMObjectsInfo::GetEquivalenceClass() | 144 intptr_t ActiveDOMObjectsInfo::GetEquivalenceClass() |
| 145 { | 145 { |
| 146 return reinterpret_cast<intptr_t>(this); | 146 return reinterpret_cast<intptr_t>(this); |
| 147 } | 147 } |
| 148 | 148 |
| 149 } // namespace blink | 149 } // namespace blink |
| OLD | NEW |