Ignore:
Timestamp:
Jul 31, 2013, 7:17:16 PM (12 years ago)
Author:
[email protected]
Message:

Introduce toSVGFontFaceElement, and use it
https://bugs.webkit.org/show_bug.cgi?id=119330

Reviewed by Andreas Kling.

As a step to change static_cast with toSVGXXX, static_cast<SVGFontFaceElement*> can
be changed with toSVGFontFaceElement().

Blink merge from https://src.chromium.org/viewvc/blink?view=rev&revision=155082

  • css/CSSFontFaceSource.cpp:

(WebCore::CSSFontFaceSource::getFontData):

  • svg/SVGFontFaceElement.h:

(WebCore::toSVGFontFaceElement):

  • svg/SVGFontFaceFormatElement.cpp:

(WebCore::SVGFontFaceFormatElement::childrenChanged):

  • svg/SVGFontFaceSrcElement.cpp:

(WebCore::SVGFontFaceSrcElement::childrenChanged):

  • svg/SVGFontFaceUriElement.cpp:

(WebCore::SVGFontFaceUriElement::childrenChanged):

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/css/CSSFontFaceSource.cpp

    r145787 r153561  
    144144                for (Node* fontChild = m_externalSVGFontElement->firstChild(); fontChild; fontChild = fontChild->nextSibling()) {
    145145                    if (fontChild->hasTagName(SVGNames::font_faceTag)) {
    146                         fontFaceElement = static_cast<SVGFontFaceElement*>(fontChild);
     146                        fontFaceElement = toSVGFontFaceElement(fontChild);
    147147                        break;
    148148                    }
Note: See TracChangeset for help on using the changeset viewer.