summaryrefslogtreecommitdiffstats
path: root/Source/WebCore/platform/graphics/blackberry/LayerTiler.cpp
diff options
context:
space:
mode:
authorSimon Hausmann <simon.hausmann@digia.com>2012-10-17 16:21:14 +0200
committerSimon Hausmann <simon.hausmann@digia.com>2012-10-17 16:21:14 +0200
commit8995b83bcbfbb68245f779b64e5517627c6cc6ea (patch)
tree17985605dab9263cc2444bd4d45f189e142cca7c /Source/WebCore/platform/graphics/blackberry/LayerTiler.cpp
parentb9c9652036d5e9f1e29c574f40bc73a35c81ace6 (diff)
Imported WebKit commit cf4f8fc6f19b0629f51860cb2d4b25e139d07e00 (http://svn.webkit.org/repository/webkit/trunk@131592)
New snapshot that includes the build fixes for Mac OS X 10.6 and earlier as well as the previously cherry-picked changes
Diffstat (limited to 'Source/WebCore/platform/graphics/blackberry/LayerTiler.cpp')
-rw-r--r--Source/WebCore/platform/graphics/blackberry/LayerTiler.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/Source/WebCore/platform/graphics/blackberry/LayerTiler.cpp b/Source/WebCore/platform/graphics/blackberry/LayerTiler.cpp
index 83eacacc0..cd2801e2d 100644
--- a/Source/WebCore/platform/graphics/blackberry/LayerTiler.cpp
+++ b/Source/WebCore/platform/graphics/blackberry/LayerTiler.cpp
@@ -370,8 +370,8 @@ void LayerTiler::layerVisibilityChanged(LayerCompositingThread*, bool visible)
}
for (TileMap::iterator it = m_tiles.begin(); it != m_tiles.end(); ++it) {
- TileIndex index = (*it).first;
- LayerTile* tile = (*it).second;
+ TileIndex index = (*it).key;
+ LayerTile* tile = (*it).value;
tile->setVisible(false);
}
}
@@ -385,21 +385,21 @@ void LayerTiler::uploadTexturesIfNeeded(LayerCompositingThread*)
TileJobsMap::const_iterator tileJobsIterEnd = tileJobsMap.end();
for (TileJobsMap::const_iterator tileJobsIter = tileJobsMap.begin(); tileJobsIter != tileJobsIterEnd; ++tileJobsIter) {
- IntPoint origin = originOfTile(tileJobsIter->first);
+ IntPoint origin = originOfTile(tileJobsIter->key);
- LayerTile* tile = m_tiles.get(tileJobsIter->first);
+ LayerTile* tile = m_tiles.get(tileJobsIter->key);
if (!tile) {
if (origin.x() >= m_requiredTextureSize.width() || origin.y() >= m_requiredTextureSize.height())
continue;
tile = new LayerTile();
- m_tiles.add(tileJobsIter->first, tile);
+ m_tiles.add(tileJobsIter->key, tile);
}
IntRect tileRect(origin, tileSize());
tileRect.setWidth(min(m_requiredTextureSize.width() - tileRect.x(), tileRect.width()));
tileRect.setHeight(min(m_requiredTextureSize.height() - tileRect.y(), tileRect.height()));
- performTileJob(tile, *tileJobsIter->second, tileRect);
+ performTileJob(tile, *tileJobsIter->value, tileRect);
}
m_textureJobs.clear();
@@ -442,11 +442,11 @@ void LayerTiler::addTileJob(const TileIndex& index, const TextureJob& job, TileJ
return;
// In this case we leave the previous job.
- if (job.m_type == TextureJob::DirtyContents && result.iterator->second->m_type == TextureJob::DiscardContents)
+ if (job.m_type == TextureJob::DirtyContents && result.iterator->value->m_type == TextureJob::DiscardContents)
return;
// Override the previous job.
- result.iterator->second = &job;
+ result.iterator->value = &job;
}
void LayerTiler::performTileJob(LayerTile* tile, const TextureJob& job, const IntRect& tileRect)
@@ -631,7 +631,7 @@ void LayerTiler::deleteTextures(LayerCompositingThread*)
// touching some WebKit thread state.
if (m_tiles.size()) {
for (TileMap::iterator it = m_tiles.begin(); it != m_tiles.end(); ++it)
- (*it).second->discardContents();
+ (*it).value->discardContents();
m_tiles.clear();
m_contentsDirty = true;
@@ -648,7 +648,7 @@ void LayerTiler::pruneTextures()
// Prune tiles that are no longer needed.
Vector<TileIndex> tilesToDelete;
for (TileMap::iterator it = m_tiles.begin(); it != m_tiles.end(); ++it) {
- TileIndex index = (*it).first;
+ TileIndex index = (*it).key;
IntPoint origin = originOfTile(index);
if (origin.x() >= m_requiredTextureSize.width() || origin.y() >= m_requiredTextureSize.height())
@@ -730,7 +730,7 @@ void LayerTiler::bindContentsTexture(LayerCompositingThread*)
if (m_tiles.size() != 1)
return;
- const LayerTile* tile = m_tiles.begin()->second;
+ const LayerTile* tile = m_tiles.begin()->value;
ASSERT(tile->hasTexture());
if (!tile->hasTexture())