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

Changeset 179928 in webkit


Ignore:
Timestamp:
Feb 11, 2015, 8:41:13 AM (12 years ago)
Author:
Darin Adler
Message:

REGRESSION(r179476): It broke the !ENABLE(PICTURE_SIZES) build
https://bugs.webkit.org/show_bug.cgi?id=141327

Reviewed by Csaba Osztrogonác.

  • html/parser/HTMLPreloadScanner.cpp:

(WebCore::TokenPreloadScanner::StartTagScanner::processAttributes):
Put #if around use of m_sizesAttribute.

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r179926 r179928  
     12015-02-11  Darin Adler  <darin@apple.com>
     2
     3        REGRESSION(r179476): It broke the !ENABLE(PICTURE_SIZES) build
     4        https://bugs.webkit.org/show_bug.cgi?id=141327
     5
     6        Reviewed by Csaba Osztrogonác.
     7
     8        * html/parser/HTMLPreloadScanner.cpp:
     9        (WebCore::TokenPreloadScanner::StartTagScanner::processAttributes):
     10        Put #if around use of m_sizesAttribute.
     11
    1122015-02-11  Commit Queue  <commit-queue@webkit.org>
    213
  • trunk/Source/WebCore/html/parser/HTMLPreloadScanner.cpp

    r179476 r179928  
    108108        // Resolve between src and srcSet if we have them.
    109109        if (!m_srcSetAttribute.isEmpty()) {
    110             unsigned sourceSize = parseSizesAttribute(m_sizesAttribute, document.renderView(), document.frame());
     110            unsigned sourceSize = 0;
     111#if ENABLE(PICTURE_SIZES)
     112            sourceSize = parseSizesAttribute(m_sizesAttribute, document.renderView(), document.frame());
     113#endif
    111114            ImageCandidate imageCandidate = bestFitSourceForImageAttributes(m_deviceScaleFactor, m_urlToLoad, m_srcSetAttribute, sourceSize);
    112115            setUrlToLoad(imageCandidate.string.toString(), true);
Note: See TracChangeset for help on using the changeset viewer.