| Index: cc/CCLayerTilingData.cpp
|
| diff --git a/cc/CCLayerTilingData.cpp b/cc/CCLayerTilingData.cpp
|
| index 5edde41593370e2e3c74356f7f461f97133e71b5..f650aa3f45721e42cbbfa364c9bf23a02f6ca6a1 100644
|
| --- a/cc/CCLayerTilingData.cpp
|
| +++ b/cc/CCLayerTilingData.cpp
|
| @@ -132,8 +132,13 @@ void CCLayerTilingData::setBounds(const IntSize& size)
|
| contentRectToTileIndices(IntRect(IntPoint(), size), left, top, right, bottom);
|
| Vector<TileMapKey> invalidTileKeys;
|
| for (TileMap::const_iterator it = m_tiles.begin(); it != m_tiles.end(); ++it) {
|
| +#if WTF_NEW_HASHMAP_ITERATORS_INTERFACE
|
| + if (it->key.first > right || it->key.second > bottom)
|
| + invalidTileKeys.append(it->key);
|
| +#else
|
| if (it->first.first > right || it->first.second > bottom)
|
| invalidTileKeys.append(it->first);
|
| +#endif
|
| }
|
| for (size_t i = 0; i < invalidTileKeys.size(); ++i)
|
| m_tiles.remove(invalidTileKeys[i]);
|
|
|