|
Lines 1-3
a/Source/WebCore/ChangeLog_sec1
|
|
|
1 |
2014-03-17 Darin Adler <darin@apple.com> |
| 2 |
|
| 3 |
Reduce use of deprecatedCharacters in WebCore |
| 4 |
https://bugs.webkit.org/show_bug.cgi?id=130318 |
| 5 |
|
| 6 |
Reviewed by NOBODY (OOPS!). |
| 7 |
|
| 8 |
* Modules/indexeddb/IDBKeyPath.cpp: |
| 9 |
(WebCore::IDBKeyPathLexer::IDBKeyPathLexer): Use StringView for parsing. |
| 10 |
(WebCore::IDBKeyPathLexer::lex): Ditto. |
| 11 |
(WebCore::IDBKeyPathLexer::lexIdentifier): Ditto. |
| 12 |
|
| 13 |
* Modules/indexeddb/leveldb/IDBLevelDBCoding.cpp: |
| 14 |
(WebCore::IDBLevelDBCoding::encodeString): Index directly into string instead of |
| 15 |
using deprecatedCharacters. |
| 16 |
|
| 17 |
* Modules/websockets/ThreadableWebSocketChannelClientWrapper.cpp: |
| 18 |
(WebCore::ThreadableWebSocketChannelClientWrapper::setSubprotocol): Use |
| 19 |
StringView::getCharactersWithUpconvert. |
| 20 |
(WebCore::ThreadableWebSocketChannelClientWrapper::setExtensions): Ditto. |
| 21 |
|
| 22 |
* accessibility/ios/WebAccessibilityObjectWrapperIOS.mm: |
| 23 |
(-[WebAccessibilityObjectWrapper arrayOfTextForTextMarkers:attributed:]): |
| 24 |
Use operator NSString * instead of explicitly creating an NSString. |
| 25 |
|
| 26 |
* bindings/js/SerializedScriptValue.cpp: |
| 27 |
(WebCore::writeLittleEndianUInt16): Added. |
| 28 |
(WebCore::CloneSerializer::serialize): Added a separate code path for 8-bit strings. |
| 29 |
(WebCore::CloneSerializer::write): Ditto. |
| 30 |
|
| 31 |
* bindings/objc/WebScriptObject.mm: |
| 32 |
(+[WebScriptObject _convertValueToObjcValue:JSC::originRootObject:rootObject:]): |
| 33 |
Use operator NSString * instead of explicitly creating an NSString. |
| 34 |
|
| 35 |
* dom/Document.cpp: |
| 36 |
(WebCore::Document::parseQualifiedName): Index directly into string instead of |
| 37 |
using deprecatedCharacters. |
| 38 |
* editing/CompositeEditCommand.cpp: |
| 39 |
(WebCore::containsOnlyWhitespace): Ditto. |
| 40 |
* editing/SmartReplace.cpp: |
| 41 |
(WebCore::addAllCodePoints): Ditto. |
| 42 |
(WebCore::getSmartSet): Use StringView::upconvertedCharacters. |
| 43 |
|
| 44 |
* editing/TextIterator.cpp: |
| 45 |
(WebCore::foldQuoteMarksAndSoftHyphens): Changed to return a value so it can be |
| 46 |
used in initialization rather than assignment. |
| 47 |
(WebCore::SearchBuffer::SearchBuffer): Use StringView::upconvertedCharacters. |
| 48 |
|
| 49 |
* editing/TypingCommand.cpp: |
| 50 |
(WebCore::TypingCommand::insertText): Index directly into string instead of using |
| 51 |
deprecatedCharacters. |
| 52 |
* editing/VisiblePosition.cpp: |
| 53 |
(WebCore::VisiblePosition::characterAfter): Ditto. |
| 54 |
* editing/VisibleUnits.cpp: |
| 55 |
(WebCore::startOfParagraph): Ditto. |
| 56 |
(WebCore::endOfParagraph): Ditto. |
| 57 |
|
| 58 |
* fileapi/WebKitBlobBuilder.cpp: |
| 59 |
(WebCore::BlobBuilder::append): Pass a StringView to TextEncoding::encode. |
| 60 |
|
| 61 |
* html/BaseDateAndTimeInputType.cpp: |
| 62 |
(WebCore::BaseDateAndTimeInputType::parseToDateComponents): Use |
| 63 |
StringView::upconvertedCharacters. |
| 64 |
|
| 65 |
* html/FormDataList.cpp: |
| 66 |
(WebCore::FormDataList::appendString): Pass a StringView to TextEncoding::encode. |
| 67 |
|
| 68 |
* html/canvas/CanvasRenderingContext2D.cpp: |
| 69 |
(WebCore::normalizeSpaces): Use StringView::getCharactersWithUpconvert. |
| 70 |
|
| 71 |
* html/parser/HTMLParserIdioms.cpp: |
| 72 |
(WebCore::stripLeadingAndTrailingHTMLSpaces): Use characters16 for a code path |
| 73 |
that already handled 8-bit characters separately. |
| 74 |
(WebCore::parseHTMLNonNegativeInteger): Ditto. |
| 75 |
(WebCore::parseDescriptors): Added an 8-bit code path. |
| 76 |
|
| 77 |
* inspector/InspectorStyleSheet.cpp: |
| 78 |
(WebCore::InspectorStyle::newLineAndWhitespaceDelimiters): Index directly into |
| 79 |
string instead of using deprecatedCharacters. |
| 80 |
* inspector/InspectorStyleTextEditor.cpp: |
| 81 |
(WebCore::InspectorStyleTextEditor::insertProperty): Ditto. |
| 82 |
(WebCore::InspectorStyleTextEditor::internalReplaceProperty): Ditto. |
| 83 |
|
| 84 |
* page/ContentSecurityPolicy.cpp: |
| 85 |
(WebCore::isSourceListNone): Use StringView::upconvertedCharacters. |
| 86 |
(WebCore::CSPSourceList::parse): Ditto. |
| 87 |
(WebCore::NonceDirective::parse): Ditto. |
| 88 |
(WebCore::MediaListDirective::parse): Ditto. |
| 89 |
(WebCore::CSPDirectiveList::parse): Ditto. |
| 90 |
(WebCore::CSPDirectiveList::parseReportURI): Ditto. |
| 91 |
(WebCore::CSPDirectiveList::parseReflectedXSS): Ditto. |
| 92 |
(WebCore::ContentSecurityPolicy::didReceiveHeader): Ditto. |
| 93 |
|
| 94 |
* page/PageSerializer.cpp: |
| 95 |
(WebCore::PageSerializer::serializeFrame): Pass a StringView into |
| 96 |
TextEncoding::encode. |
| 97 |
(WebCore::PageSerializer::serializeCSSStyleSheet): Ditto. |
| 98 |
|
| 99 |
* platform/Length.cpp: |
| 100 |
(WebCore::countCharacter): Index directly into string instead of using |
| 101 |
deprecatedCharacters. Also changed to take a StringImpl&. |
| 102 |
(WebCore::newCoordsArray): Ditto. Call countCharacter the new way, and |
| 103 |
use StringView::upconvertedCharacters. |
| 104 |
(WebCore::newLengthArray): Ditto. |
| 105 |
|
| 106 |
* platform/LinkHash.cpp: |
| 107 |
(WebCore::visitedLinkHash): Use characters16 for the 16-bit path. |
| 108 |
Also removed unused visitedURL function. |
| 109 |
* platform/LinkHash.h: Removed unused visitedURL function. |
| 110 |
|
| 111 |
* platform/SharedBuffer.cpp: |
| 112 |
(WebCore::utf8Buffer): Added an 8-bit code path. |
| 113 |
* platform/URL.cpp: |
| 114 |
(WebCore::URL::port): Ditto. |
| 115 |
(WebCore::encodeRelativeString): Use StringView to call TextEncoding::encode. |
| 116 |
|
| 117 |
* platform/graphics/Color.cpp: |
| 118 |
(WebCore::Color::parseHexColor): Use characteres16 in the 16-bit path. |
| 119 |
(WebCore::Color::Color): Ditto. |
| 120 |
|
| 121 |
* platform/graphics/StringTruncator.cpp: |
| 122 |
(WebCore::centerTruncateToBuffer): Use StringView::getCharactersWithUpconvert. |
| 123 |
(WebCore::rightTruncateToBuffer): Ditto. |
| 124 |
(WebCore::rightClipToCharacterBuffer): Ditto. |
| 125 |
(WebCore::rightClipToWordBuffer): Ditto. |
| 126 |
(WebCore::leftTruncateToBuffer): Ditto. |
| 127 |
(WebCore::truncateString): Ditto. |
| 128 |
|
| 129 |
* platform/graphics/TextRun.h: |
| 130 |
(WebCore::TextRun::TextRun): Use characters16 in the 16-bit code path. |
| 131 |
|
| 132 |
* platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm: |
| 133 |
(WebCore::MediaPlayerPrivateAVFoundationObjC::shouldWaitForLoadingOfResource): |
| 134 |
Use StringView::upconvertedCharacters. |
| 135 |
|
| 136 |
* platform/network/DataURL.cpp: |
| 137 |
(WebCore::handleDataURL): Use StringView to call TextEncoding::encode. |
| 138 |
* platform/network/FormDataBuilder.cpp: |
| 139 |
(WebCore::FormDataBuilder::addFilenameToMultiPartHeader): Ditto. |
| 140 |
|
| 141 |
* platform/sql/SQLiteStatement.cpp: |
| 142 |
(WebCore::SQLiteStatement::bindBlob): Use StringView::upconvertedCharacters. |
| 143 |
(WebCore::SQLiteStatement::bindText): Ditto. |
| 144 |
|
| 145 |
* platform/text/DecodeEscapeSequences.h: |
| 146 |
(WebCore::Unicode16BitEscapeSequence::decodeRun): Changed to take a StringView. |
| 147 |
(WebCore::URLEscapeSequence::decodeRun): Ditto. |
| 148 |
(WebCore::decodeEscapeSequences): Pass StringView to decodeRun. |
| 149 |
|
| 150 |
* platform/text/Hyphenation.cpp: |
| 151 |
(WebCore::lastHyphenLocation): Take a StringView. |
| 152 |
* platform/text/Hyphenation.h: Make lastHyphenLocation take a StringView. |
| 153 |
|
| 154 |
* platform/text/TextBreakIterator.cpp: |
| 155 |
(WebCore::initializeIteratorWithRules): Use StringView::upconvertedCharacters. |
| 156 |
|
| 157 |
* platform/text/TextEncoding.cpp: |
| 158 |
(WebCore::TextEncoding::encode): Use StringView::upconvertedCharacters. |
| 159 |
Change argument type to StringView. |
| 160 |
* platform/text/TextEncoding.h: Ditto. |
| 161 |
|
| 162 |
* platform/text/TextEncodingRegistry.cpp: |
| 163 |
(WebCore::atomicCanonicalTextEncodingName): Use characters16 for the 16-bit path. |
| 164 |
|
| 165 |
* platform/text/cf/HyphenationCF.cpp: |
| 166 |
(WebCore::lastHyphenLocation): Use StringView::text.createCFStringWithoutCopying. |
| 167 |
Change argument type to StringView. |
| 168 |
|
| 169 |
* rendering/RenderBlock.cpp: |
| 170 |
(WebCore::RenderBlock::constructTextRun): Use characters16 for the 16-bit path. |
| 171 |
|
| 172 |
* rendering/RenderCombineText.cpp: |
| 173 |
(WebCore::RenderCombineText::width): Removed check for null characters pointer, |
| 174 |
since the pointer will never be null, and even if it was there would be no need |
| 175 |
for an early exit. |
| 176 |
|
| 177 |
* rendering/RenderText.cpp: |
| 178 |
(WebCore::maxWordFragmentWidth): Take a StringView. |
| 179 |
(WebCore::RenderText::computePreferredLogicalWidths): Pass in a StringView. |
| 180 |
* rendering/line/BreakingContextInlineHeaders.h: |
| 181 |
(WebCore::tryHyphenating): Ditto. |
| 182 |
|
| 183 |
* rendering/svg/SVGTextLayoutEngine.cpp: |
| 184 |
(WebCore::SVGTextLayoutEngine::layoutTextOnLineOrPath): Use |
| 185 |
StringView::upconvertedCharacters. |
| 186 |
|
| 187 |
* rendering/svg/SVGTextMetrics.cpp: |
| 188 |
(WebCore::SVGTextMetrics::SVGTextMetrics): Use String::substring. |
| 189 |
|
| 190 |
* svg/SVGAngle.cpp: |
| 191 |
(WebCore::SVGAngle::setValueAsString): Use StringView::upconvertedCharacters. |
| 192 |
* svg/SVGAnimateMotionElement.cpp: |
| 193 |
(WebCore::parsePoint): Ditto. |
| 194 |
* svg/SVGAnimationElement.cpp: |
| 195 |
(WebCore::parseKeySplines): Ditto. |
| 196 |
* svg/SVGFitToViewBox.cpp: |
| 197 |
(WebCore::SVGFitToViewBox::parseViewBox): Ditto. |
| 198 |
|
| 199 |
* svg/SVGFontData.cpp: |
| 200 |
(WebCore::SVGFontData::applySVGGlyphSelection): Pass StringView to |
| 201 |
createStringWIthMirroredCharacters. |
| 202 |
(WebCore::createStringWithMirroredCharacters): Changed to use StringView and |
| 203 |
use indexing into that instead of a characters pointer. |
| 204 |
|
| 205 |
* svg/SVGFontData.h: Removed createStringWithMirroredCharacters member function, |
| 206 |
since it has nothing to do with the SVGFontData object. Now it's just a private |
| 207 |
helper function in the SVGFontData.cpp source file. |
| 208 |
|
| 209 |
* svg/SVGFontElement.cpp: |
| 210 |
(WebCore::SVGFontElement::registerLigaturesInGlyphCache): Index into the string |
| 211 |
instead of using deprecatedCharacters. |
| 212 |
|
| 213 |
* svg/SVGGlyphMap.h: |
| 214 |
(WebCore::SVGGlyphMap::addGlyph): Use StringView::upconvertedCharacters. |
| 215 |
(WebCore::SVGGlyphMap::collectGlyphsForString): Ditto. |
| 216 |
* svg/SVGGlyphRefElement.cpp: |
| 217 |
(WebCore::SVGGlyphRefElement::parseAttribute): Ditto. |
| 218 |
* svg/SVGLength.cpp: |
| 219 |
(WebCore::SVGLength::setValueAsString): Ditto. |
| 220 |
* svg/SVGLengthList.cpp: |
| 221 |
(WebCore::SVGLengthList::parse): Ditto. |
| 222 |
* svg/SVGNumberList.cpp: |
| 223 |
(WebCore::SVGNumberList::parse): Ditto. |
| 224 |
* svg/SVGParserUtilities.cpp: |
| 225 |
(WebCore::parseNumberFromString): Ditto. |
| 226 |
(WebCore::parseNumberOptionalNumber): Ditto. |
| 227 |
(WebCore::parseRect): Ditto. |
| 228 |
(WebCore::pointsListFromSVGData): Ditto. |
| 229 |
(WebCore::parseGlyphName): Ditto. |
| 230 |
(WebCore::parseKerningUnicodeString): Ditto. |
| 231 |
(WebCore::parseDelimitedString): Ditto. |
| 232 |
* svg/SVGPreserveAspectRatio.cpp: |
| 233 |
(WebCore::SVGPreserveAspectRatio::parse): Ditto. |
| 234 |
* svg/SVGStringList.cpp: |
| 235 |
(WebCore::SVGStringList::parse): Ditto. |
| 236 |
* svg/SVGTransformList.cpp: |
| 237 |
(WebCore::SVGTransformList::parse): Ditto. |
| 238 |
* svg/SVGTransformable.cpp: |
| 239 |
(WebCore::SVGTransformable::parseTransformType): Ditto. |
| 240 |
* svg/SVGViewSpec.cpp: |
| 241 |
(WebCore::SVGViewSpec::parseViewSpec): Ditto. |
| 242 |
* svg/SVGZoomAndPan.h: |
| 243 |
(WebCore::SVGZoomAndPan::parseAttribute): Ditto. |
| 244 |
|
| 245 |
* xml/XMLHttpRequest.cpp: |
| 246 |
(WebCore::XMLHttpRequest::send): Pass a StringView to TextEncoding::encode. |
| 247 |
|
| 248 |
* xml/XSLStyleSheetLibxslt.cpp: |
| 249 |
(WebCore::XSLStyleSheet::parseString): Use StringView::upconvertedCharacters. |
| 250 |
|
| 1 |
2014-03-17 Zan Dobersek <zdobersek@igalia.com> |
251 |
2014-03-17 Zan Dobersek <zdobersek@igalia.com> |
| 2 |
|
252 |
|
| 3 |
Unreviewed. |
253 |
Unreviewed. |