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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 return; | 51 return; |
52 | 52 |
53 TagCollectionCacheNS::iterator tagCacheEnd = m_tagCollectionCacheNS.end(); | 53 TagCollectionCacheNS::iterator tagCacheEnd = m_tagCollectionCacheNS.end(); |
54 for (TagCollectionCacheNS::iterator it = m_tagCollectionCacheNS.begin(); it
!= tagCacheEnd; ++it) | 54 for (TagCollectionCacheNS::iterator it = m_tagCollectionCacheNS.begin(); it
!= tagCacheEnd; ++it) |
55 it->value->invalidateCache(); | 55 it->value->invalidateCache(); |
56 } | 56 } |
57 | 57 |
58 // Ensure the 10 bits reserved for the m_connectedFrameCount cannot overflow | 58 // Ensure the 10 bits reserved for the m_connectedFrameCount cannot overflow |
59 COMPILE_ASSERT(Page::maxNumberOfFrames < (1 << NodeRareData::ConnectedFrameCount
Bits), Frame_limit_should_fit_in_rare_data_count); | 59 COMPILE_ASSERT(Page::maxNumberOfFrames < (1 << NodeRareData::ConnectedFrameCount
Bits), Frame_limit_should_fit_in_rare_data_count); |
60 | 60 |
61 // Ensure all element flags fit in NodeRareData::m_elementFlags. | |
62 COMPILE_ASSERT(static_cast<unsigned>(NumberOfElementFlags) == static_cast<unsign
ed>(NodeRareData::ElementFlagsBits), Element_flags_should_fit_in_node_rare_data)
; | |
63 | |
64 } // namespace WebCore | 61 } // namespace WebCore |
OLD | NEW |