⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 93171 in webkit


Ignore:
Timestamp:
Aug 16, 2011, 3:58:26 PM (15 years ago)
Author:
Joseph Pecoraro
Message:

<http://webkit.org/b/66328> ASSERT in fast/css/custom-font-xheight.html

Reviewed by Dan Bernstein.

In r93140 the temporary font created for a remote CSS font face
was created without being retained. We need to protect the
font from being purged while we hold onto it, so add a font cache
purge preventer.

  • css/CSSFontFaceSource.cpp:

(WebCore::CSSFontFaceSource::getFontData):

  • platform/chromium/test_expectations.txt:

Unskipped.

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r93170 r93171  
     12011-08-16  Joseph Pecoraro  <joepeck@webkit.org>
     2
     3        Unreviewed, unskipping the test.
     4
     5        ASSERT in fast/css/custom-font-xheight.html
     6        https://bugs.webkit.org/show_bug.cgi?id=66328
     7
     8        * platform/chromium/test_expectations.txt:
     9        Test should no longer ASSERT.
     10
    1112011-08-16  Ryosuke Niwa  <rniwa@webkit.org>
    212
  • trunk/LayoutTests/platform/chromium/test_expectations.txt

    r93165 r93171  
    33853385BUGCR83499 MAC : fast/box-shadow/box-shadow-transformed.html = PASS IMAGE+TEXT IMAGE
    33863386
    3387 BUGCR83504 WIN RELEASE : fast/css/custom-font-xheight.html = PASS TIMEOUT
     3387BUGCR83504 WIN : fast/css/custom-font-xheight.html = PASS TIMEOUT
    33883388
    33893389// New test from WK r87026
     
    36843684BUGTONY : fast/repaint/line-flow-with-floats-in-regions.html = IMAGE+TEXT IMAGE
    36853685
    3686 // When removing, make sure to update the WIN line to apply to debug and
    3687 // release.
    3688 BUGWK66328 DEBUG : fast/css/custom-font-xheight.html = CRASH
    3689 
    36903686BUGWK66338 MAC : fast/repaint/background-scaling.html = IMAGE
    36913687BUGWK66338 MAC : fast/repaint/scale-page-shrink.html = IMAGE
  • trunk/Source/WebCore/ChangeLog

    r93160 r93171  
     12011-08-16  Joseph Pecoraro  <joepeck@webkit.org>
     2
     3        ASSERT in fast/css/custom-font-xheight.html
     4        https://bugs.webkit.org/show_bug.cgi?id=66328
     5
     6        Reviewed by Dan Bernstein.
     7
     8        In r93140 the temporary font created for a remote CSS font face
     9        was created without being retained. We need to protect the
     10        font from being purged while we hold onto it, so add a font cache
     11        purge preventer.
     12
     13        * css/CSSFontFaceSource.cpp:
     14        (WebCore::CSSFontFaceSource::getFontData):
     15
    1162011-08-16  Joseph Pecoraro  <joepeck@webkit.org>
    217
  • trunk/Source/WebCore/css/CSSFontFaceSource.cpp

    r93140 r93171  
    186186            m_loadStartTimer.startOneShot(0);
    187187
    188         SimpleFontData* tempData = fontCache()->getNonRetainedLastResortFallbackFont(fontDescription);
    189         fontData = adoptPtr(new SimpleFontData(tempData->platformData(), true, true));
     188        // This temporary font is not retained and should not be returned.
     189        FontCachePurgePreventer fontCachePurgePreventer;
     190        SimpleFontData* temporaryFont = fontCache()->getNonRetainedLastResortFallbackFont(fontDescription);
     191        fontData = adoptPtr(new SimpleFontData(temporaryFont->platformData(), true, true));
    190192    }
    191193
Note: See TracChangeset for help on using the changeset viewer.