Skip to content

Instantly share code, notes, and snippets.

@kenchris
Created March 5, 2012 13:31
Show Gist options
  • Save kenchris/1978309 to your computer and use it in GitHub Desktop.
Save kenchris/1978309 to your computer and use it in GitHub Desktop.
commit dd94d2f56a7ab3a514cccdbee9cbbe2e5cb2e2ae
Author: Kenneth Rohde Christiansen <kenneth@webkit.org>
Date: Mon Mar 5 14:03:57 2012 +0100
Remove trailing spaces.
diff --git a/Source/WebCore/platform/graphics/TiledBackingStore.cpp b/Source/WebCore/platform/graphics/TiledBackingStore.cpp
index 42c8dea..a789bc9 100644
--- a/Source/WebCore/platform/graphics/TiledBackingStore.cpp
+++ b/Source/WebCore/platform/graphics/TiledBackingStore.cpp
@@ -26,7 +26,7 @@
#include "TiledBackingStoreClient.h"
namespace WebCore {
-
+
static const int defaultTileDimension = 512;
static IntPoint innerBottomRight(const IntRect& rect)
@@ -103,7 +103,7 @@ void TiledBackingStore::updateTileBuffers()
{
if (!m_client->tiledBackingStoreUpdatesAllowed() || m_contentsFrozen)
return;
-
+
m_client->tiledBackingStorePaintBegin();
Vector<IntRect> paintedArea;
@@ -114,7 +114,7 @@ void TiledBackingStore::updateTileBuffers()
continue;
dirtyTiles.append(it->second);
}
-
+
if (dirtyTiles.isEmpty()) {
m_client->tiledBackingStorePaintEnd(paintedArea);
return;
@@ -136,13 +136,13 @@ void TiledBackingStore::updateTileBuffers()
void TiledBackingStore::paint(GraphicsContext* context, const IntRect& rect)
{
context->save();
-
+
// Assumes the backing store is painted with the scale transform applied.
// Since tile content is already scaled, first revert the scaling from the painter.
context->scale(FloatSize(1.f / m_contentsScale, 1.f / m_contentsScale));
-
+
IntRect dirtyRect = mapFromContents(rect);
-
+
Tile::Coordinate topLeft = tileCoordinateForPoint(dirtyRect.location());
Tile::Coordinate bottomRight = tileCoordinateForPoint(innerBottomRight(dirtyRect));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment