Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(38)

Side by Side Diff: Source/core/html/parser/HTMLParserIdioms.h

Issue 23861003: Enable srcset support in HTMLImageElement (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Enable srcset support in HTMLImageElement Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2010 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 bool threadSafeMatch(const QualifiedName&, const QualifiedName&); 95 bool threadSafeMatch(const QualifiedName&, const QualifiedName&);
96 bool threadSafeMatch(const HTMLIdentifier&, const QualifiedName&); 96 bool threadSafeMatch(const HTMLIdentifier&, const QualifiedName&);
97 inline bool threadSafeHTMLNamesMatch(const HTMLIdentifier& tagName, const Qualif iedName& qName) 97 inline bool threadSafeHTMLNamesMatch(const HTMLIdentifier& tagName, const Qualif iedName& qName)
98 { 98 {
99 // When the QualifiedName is known to HTMLIdentifier, 99 // When the QualifiedName is known to HTMLIdentifier,
100 // all we have to do is a pointer compare. 100 // all we have to do is a pointer compare.
101 ASSERT(HTMLIdentifier::isKnown(qName.localName().impl())); 101 ASSERT(HTMLIdentifier::isKnown(qName.localName().impl()));
102 return tagName.asStringImpl() == qName.localName().impl(); 102 return tagName.asStringImpl() == qName.localName().impl();
103 } 103 }
104 104
105 String bestFitSourceForImageAttributes(float deviceScaleFactor, const String& sr cAttribute, const String& sourceSetAttribute);
106
105 } 107 }
106 108
107 #endif 109 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698