Changeset 224703 in webkit
- Timestamp:
- Nov 10, 2017 2:03:06 PM (6 years ago)
- Location:
- trunk
- Files:
-
- 2 deleted
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r224702 r224703 1 2017-11-10 Commit Queue <commit-queue@webkit.org> 2 3 Unreviewed, rolling out r224602 and r224697. 4 https://bugs.webkit.org/show_bug.cgi?id=179545 5 6 The LayoutTest for this change is flaky. (Requested by 7 ryanhaddad on #webkit). 8 9 Reverted changesets: 10 11 "Add tests to ensure that <source> tags are only preloaded 12 when the `type`" 13 https://bugs.webkit.org/show_bug.cgi?id=179231 14 https://trac.webkit.org/changeset/224602 15 16 "Fix race conditions with setBackingScaleFactor, page refresh 17 and preloader" 18 https://bugs.webkit.org/show_bug.cgi?id=179488 19 https://trac.webkit.org/changeset/224697 20 1 21 2017-11-10 Chris Dumez <cdumez@apple.com> 2 22 -
trunk/Source/WebCore/ChangeLog
r224702 r224703 1 2017-11-10 Commit Queue <commit-queue@webkit.org> 2 3 Unreviewed, rolling out r224602 and r224697. 4 https://bugs.webkit.org/show_bug.cgi?id=179545 5 6 The LayoutTest for this change is flaky. (Requested by 7 ryanhaddad on #webkit). 8 9 Reverted changesets: 10 11 "Add tests to ensure that <source> tags are only preloaded 12 when the `type`" 13 https://bugs.webkit.org/show_bug.cgi?id=179231 14 https://trac.webkit.org/changeset/224602 15 16 "Fix race conditions with setBackingScaleFactor, page refresh 17 and preloader" 18 https://bugs.webkit.org/show_bug.cgi?id=179488 19 https://trac.webkit.org/changeset/224697 20 1 21 2017-11-10 Chris Dumez <cdumez@apple.com> 2 22 -
trunk/Source/WebCore/html/parser/HTMLPreloadScanner.cpp
r224602 r224703 37 37 #include "LinkRelAttribute.h" 38 38 #include "Logging.h" 39 #include "MIMETypeRegistry.h"40 39 #include "MediaList.h" 41 40 #include "MediaQueryEvaluator.h" … … 123 122 } 124 123 125 if (m_tagId == TagId::Source && !pictureState.isEmpty() && !pictureState.last() && m_mediaMatched && m_typeMatched &&!m_srcSetAttribute.isEmpty()) {124 if (m_tagId == TagId::Source && !pictureState.isEmpty() && !pictureState.last() && m_mediaMatched && !m_srcSetAttribute.isEmpty()) { 126 125 127 126 auto sourceSize = SizesAttributeParser(m_sizesAttribute, document).length(); … … 220 219 LOG(MediaQueries, "HTMLPreloadScanner %p processAttribute evaluating media queries", this); 221 220 m_mediaMatched = MediaQueryEvaluator { document.printing() ? "print" : "screen", document, documentElement ? documentElement->computedStyle() : nullptr }.evaluate(mediaSet.get()); 222 }223 if (match(attributeName, typeAttr) && m_typeAttribute.isNull()) {224 // when multiple type attributes present: first value wins, ignore subsequent (to match ImageElement parser and Blink behaviours)225 m_typeAttribute = attributeValue;226 m_typeMatched &= MIMETypeRegistry::isSupportedImageOrSVGMIMEType(m_typeAttribute);227 221 } 228 222 break; … … 348 342 String m_sizesAttribute; 349 343 bool m_mediaMatched { true }; 350 bool m_typeMatched { true };351 344 String m_charset; 352 345 String m_crossOriginMode;
Note: See TracChangeset
for help on using the changeset viewer.