| 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 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 HeapVector<Member<InsertionPoint>> m_descendantInsertionPoints; | 95 HeapVector<Member<InsertionPoint>> m_descendantInsertionPoints; |
| 96 }; | 96 }; |
| 97 | 97 |
| 98 inline void ShadowRootRareDataV0::didAddInsertionPoint(InsertionPoint* point) { | 98 inline void ShadowRootRareDataV0::didAddInsertionPoint(InsertionPoint* point) { |
| 99 DCHECK(point); | 99 DCHECK(point); |
| 100 if (isHTMLShadowElement(*point)) | 100 if (isHTMLShadowElement(*point)) |
| 101 ++m_descendantShadowElementCount; | 101 ++m_descendantShadowElementCount; |
| 102 else if (isHTMLContentElement(*point)) | 102 else if (isHTMLContentElement(*point)) |
| 103 ++m_descendantContentElementCount; | 103 ++m_descendantContentElementCount; |
| 104 else | 104 else |
| 105 ASSERT_NOT_REACHED(); | 105 NOTREACHED(); |
| 106 } | 106 } |
| 107 | 107 |
| 108 inline void ShadowRootRareDataV0::didRemoveInsertionPoint( | 108 inline void ShadowRootRareDataV0::didRemoveInsertionPoint( |
| 109 InsertionPoint* point) { | 109 InsertionPoint* point) { |
| 110 DCHECK(point); | 110 DCHECK(point); |
| 111 if (isHTMLShadowElement(*point)) { | 111 if (isHTMLShadowElement(*point)) { |
| 112 DCHECK_GT(m_descendantShadowElementCount, 0u); | 112 DCHECK_GT(m_descendantShadowElementCount, 0u); |
| 113 --m_descendantShadowElementCount; | 113 --m_descendantShadowElementCount; |
| 114 } else if (isHTMLContentElement(*point)) { | 114 } else if (isHTMLContentElement(*point)) { |
| 115 DCHECK_GT(m_descendantContentElementCount, 0u); | 115 DCHECK_GT(m_descendantContentElementCount, 0u); |
| 116 --m_descendantContentElementCount; | 116 --m_descendantContentElementCount; |
| 117 } else { | 117 } else { |
| 118 ASSERT_NOT_REACHED(); | 118 NOTREACHED(); |
| 119 } | 119 } |
| 120 } | 120 } |
| 121 | 121 |
| 122 } // namespace blink | 122 } // namespace blink |
| 123 | 123 |
| 124 #endif | 124 #endif |
| OLD | NEW |