Skip to content
Snippets Groups Projects
user avatar
simon.fraser@apple.com authored
https://bugs.webkit.org/show_bug.cgi?id=120176

Reviewed by Beth Dakin.

Sometimes the repaint counters are not in the corner of the compositing layer;
they are either inset, or partially or entirely outside the layer.

Fix by making sure that we restore the CGContext before drawing
the counter, since the WebCore code may have translated the CTM.

The counter-painting code saves and restores the context itself,
so this is safe.

* platform/graphics/mac/WebLayer.mm:
(drawLayerContents):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@154469 268f45cc-cd09-0410-ab3c-d52691b4dbfc
efa2c800
Name Last commit Last update
..
avfoundation
blackberry
ca
cairo
cg
cocoa
cpu/arm
efl
egl
filters
freetype
glx
gpu
gstreamer
gtk
harfbuzz
mac
opengl
opentype
qt
surfaces
texmap
transforms
win
wince
ANGLEWebKitBridge.cpp
ANGLEWebKitBridge.h
AudioTrackPrivate.h
BitmapImage.cpp
BitmapImage.h
Color.cpp
Color.h
ColorSpace.h
CrossfadeGeneratedImage.cpp
CrossfadeGeneratedImage.h
DashArray.h
DisplayRefreshMonitor.cpp
DisplayRefreshMonitor.h
Extensions3D.h
FloatPoint.cpp
FloatPoint.h
FloatPoint3D.cpp
FloatPoint3D.h
FloatPolygon.cpp
FloatPolygon.h
FloatQuad.cpp
FloatQuad.h
FloatRect.cpp
FloatRect.h
FloatSize.cpp
FloatSize.h
Font.cpp
Font.h
FontBaseline.h
FontCache.cpp
FontCache.h
FontData.cpp
FontData.h
FontDescription.cpp
FontDescription.h
FontFastPath.cpp
FontFeatureSettings.cpp
FontFeatureSettings.h
FontGenericFamilies.cpp
FontGenericFamilies.h
FontGlyphs.cpp
FontGlyphs.h
FontMetrics.h
FontOrientation.h
FontPlatformData.cpp
FontPlatformData.h
FontRenderingMode.h
FontSelector.h
FontSmoothingMode.h
FontTraitsMask.h
FontWidthVariant.h
GLContext.cpp
GLContext.h
GeneratedImage.cpp
GeneratedImage.h
GeneratorGeneratedImage.cpp
GeneratorGeneratedImage.h
Glyph.h
GlyphBuffer.h
GlyphMetricsMap.h
GlyphPage.h
GlyphPageTreeNode.cpp
GlyphPageTreeNode.h
Gradient.cpp
Gradient.h
GraphicsContext.cpp
GraphicsContext.h
GraphicsContext3D.cpp
GraphicsContext3D.h
GraphicsContext3DPrivate.cpp
GraphicsContext3DPrivate.h
GraphicsLayer.cpp
GraphicsLayer.h
GraphicsLayerAnimation.cpp
GraphicsLayerAnimation.h