OLD | NEW |
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 Loading... |
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 |
OLD | NEW |