Changeset 88691 in webkit
- Timestamp:
- Jun 13, 2011 2:08:34 PM (13 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r88685 r88691 1 2011-06-13 Michael Saboff <msaboff@apple.com> 2 3 Reviewed by Oliver Hunt. 4 5 Additional FontCache::FontCachePurgePreventer instances needed 6 https://bugs.webkit.org/show_bug.cgi?id=62498 7 8 Added some needed and speculative FontCachePurgePreventer objects. 9 Built and ran Safari with debug version of webkit that purges all 10 purgeable fonts in FontCache::purgeInactiveFontDataIfNeeded in order 11 to find system fallback fonts access via code paths that aren't 12 protected with FontCachePurgePreventer objects. Also examined 13 platform specific code that calls either Font::drawText() or 14 Canvas::drawText(). For those methods that may be called from currently 15 unprotected paths, added FontCachePurgePreventer objects. 16 17 No new functionality so no new tests. 18 19 * inspector/DOMNodeHighlighter.cpp: 20 * platform/graphics/ca/win/PlatformCALayerWinInternal.cpp: 21 (PlatformCALayerWinInternal::displayCallback): 22 * platform/graphics/chromium/cc/CCHeadsUpDisplay.cpp: 23 (WebCore::CCHeadsUpDisplay::drawHudContents): 24 * platform/mac/DragImageMac.mm: 25 (WebCore::widthWithFont): 26 (WebCore::drawAtPoint): 27 * rendering/RenderMenuList.cpp: 28 (WebCore::RenderMenuList::updateOptionsWidth): 29 1 30 2011-06-13 Ryosuke Niwa <rniwa@webkit.org> 2 31 -
trunk/Source/WebCore/inspector/DOMNodeHighlighter.cpp
r84481 r88691 33 33 34 34 #include "Element.h" 35 #include "FontCache.h" 35 36 #include "Frame.h" 36 37 #include "FrameView.h" … … 140 141 static const Color tooltipBorderColor(Color::black); 141 142 static const Color tooltipFontColor(Color::black); 143 FontCachePurgePreventer fontCachePurgePreventer; 142 144 143 145 Element* element = static_cast<Element*>(node); -
trunk/Source/WebCore/platform/graphics/ca/win/PlatformCALayerWinInternal.cpp
r76170 r88691 31 31 32 32 #include "Font.h" 33 #include "FontCache.h" 33 34 #include "PlatformCALayer.h" 34 35 #include "TextRun.h" … … 94 95 95 96 if (owner()->owner()->platformCALayerShowRepaintCounter()) { 97 FontCachePurgePreventer fontCachePurgePreventer; 98 96 99 String text = String::number(owner()->owner()->platformCALayerIncrementRepaintCount()); 97 100 -
trunk/Source/WebCore/platform/graphics/chromium/cc/CCHeadsUpDisplay.cpp
r87960 r88691 30 30 #include "Extensions3DChromium.h" 31 31 #include "Font.h" 32 #include "FontCache.h" 32 33 #include "FontDescription.h" 33 34 #include "GraphicsContext3D.h" … … 146 147 void CCHeadsUpDisplay::drawHudContents(GraphicsContext* ctx, const IntSize& hudSize) 147 148 { 149 FontCachePurgePreventer fontCachePurgePreventer; 150 148 151 if (m_showPlatformLayerTree) { 149 152 ctx->setFillColor(Color(0, 0, 0, 192), ColorSpaceDeviceRGB); -
trunk/Source/WebCore/platform/mac/DragImageMac.mm
r78846 r88691 30 30 #import "CachedImage.h" 31 31 #import "Font.h" 32 #import "FontCache.h" 32 33 #import "FontDescription.h" 33 34 #import "FontSelector.h" … … 157 158 158 159 if (canUseFastRenderer(buffer.data(), length)) { 160 FontCachePurgePreventer fontCachePurgePreventer; 161 159 162 Font webCoreFont(FontPlatformData(font, [font pointSize]), ![[NSGraphicsContext currentContext] isDrawingToScreen]); 160 163 TextRun run(buffer.data(), length); … … 180 183 181 184 if (canUseFastRenderer(buffer.data(), length)) { 185 FontCachePurgePreventer fontCachePurgePreventer; 186 182 187 // The following is a half-assed attempt to match AppKit's rounding rules for drawAtPoint. 183 188 // It's probably incorrect for high DPI. -
trunk/Source/WebCore/rendering/RenderMenuList.cpp
r87443 r88691 30 30 #include "CSSStyleSelector.h" 31 31 #include "Chrome.h" 32 #include "FontCache.h" 32 33 #include "Frame.h" 33 34 #include "FrameView.h" … … 144 145 const Vector<Element*>& listItems = toSelectElement(static_cast<Element*>(node()))->listItems(); 145 146 int size = listItems.size(); 147 FontCachePurgePreventer fontCachePurgePreventer; 148 146 149 for (int i = 0; i < size; ++i) { 147 150 Element* element = listItems[i];
Note: See TracChangeset
for help on using the changeset viewer.