Fix iOS build after r177955 and r177952.
authormmaxfield@apple.com <mmaxfield@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 6 Jan 2015 19:00:30 +0000 (19:00 +0000)
committermmaxfield@apple.com <mmaxfield@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 6 Jan 2015 19:00:30 +0000 (19:00 +0000)
Unreviewed.

* html/parser/HTMLTreeBuilder.cpp:
(WebCore::HTMLTreeBuilder::insertPhoneNumberLink):
* platform/graphics/mac/ComplexTextController.cpp:
(WebCore::ComplexTextController::adjustGlyphsAndAdvances):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@177968 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/html/parser/HTMLTreeBuilder.cpp
Source/WebCore/platform/graphics/mac/ComplexTextController.cpp

index cc120d9237b70de67acc90eb486c77415eb89193..4de0b8a4cdcf533a7b7939a2c35897d708ef33b0 100644 (file)
@@ -1,3 +1,14 @@
+2015-01-06  Myles C. Maxfield  <mmaxfield@apple.com>
+
+        Fix iOS build after r177955 and r177952.
+
+        Unreviewed.
+
+        * html/parser/HTMLTreeBuilder.cpp:
+        (WebCore::HTMLTreeBuilder::insertPhoneNumberLink):
+        * platform/graphics/mac/ComplexTextController.cpp:
+        (WebCore::ComplexTextController::adjustGlyphsAndAdvances):
+
 2015-01-06  Anders Carlsson  <andersca@apple.com>
 
         Remove now unused IndexedDB code
index 2cf776513c3e922f8d0f46df397cbe181bcb4066..eaca0eb20a734e0de9abde28142e89cdb0feac17 100644 (file)
@@ -2283,7 +2283,7 @@ void HTMLTreeBuilder::insertPhoneNumberLink(const String& string)
     attributes.append(Attribute(HTMLNames::hrefAttr, ASCIILiteral("tel:") + string));
 
     const AtomicString& aTagLocalName = aTag.localName();
-    AtomicHTMLToken aStartToken(HTMLToken::StartTag, aTagLocalName, attributes);
+    AtomicHTMLToken aStartToken(HTMLToken::StartTag, aTagLocalName, WTF::move(attributes));
     AtomicHTMLToken aEndToken(HTMLToken::EndTag, aTagLocalName);
 
     processStartTag(aStartToken);
index 4fa5e641bc7f86b79134e4d454e73a9531c54e5f..cbfe7bfb88703157bacc5ea5fab881fa84d8e462 100644 (file)
@@ -620,7 +620,7 @@ void ComplexTextController::adjustGlyphsAndAdvances()
             CGSize advance = treatAsSpace ? CGSizeMake(spaceWidth, advances[i].height) : advances[i];
 #if PLATFORM(IOS)
             if (isEmoji && advance.width)
-                advance.width = fontData->widthForGlyph(glyph);
+                advance.width = fontData.widthForGlyph(glyph);
 #endif
 
             if (ch == '\t' && m_run.allowTabs())