From a2d699f1462050833f959ebcf24853c2a6a10f72 Mon Sep 17 00:00:00 2001 From: tsepez Date: Mon, 23 May 2016 17:19:20 -0700 Subject: Rename IFX_Unknown to IFX_Retainable. Rename addRef() method to Retain() to match Release(). This CL does not convert to CFX_RetainPtrs, which will happen in a follow-on. Review-Url: https://codereview.chromium.org/2005933002 --- xfa/fde/css/fde_cssstylesheet.h | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) (limited to 'xfa/fde/css/fde_cssstylesheet.h') diff --git a/xfa/fde/css/fde_cssstylesheet.h b/xfa/fde/css/fde_cssstylesheet.h index 9362fb15b4..76eddda4a3 100644 --- a/xfa/fde/css/fde_cssstylesheet.h +++ b/xfa/fde/css/fde_cssstylesheet.h @@ -98,18 +98,22 @@ class CFDE_CSSFontFaceRule : public IFDE_CSSFontFaceRule, public CFX_Target { class CFDE_CSSStyleSheet : public IFDE_CSSStyleSheet, public CFX_Target { public: CFDE_CSSStyleSheet(uint32_t dwMediaList); - ~CFDE_CSSStyleSheet(); - virtual uint32_t AddRef(); - virtual uint32_t Release(); + ~CFDE_CSSStyleSheet() override; - virtual FX_BOOL GetUrl(CFX_WideString& szUrl) { + // IFX_Retainable: + uint32_t Retain() override; + uint32_t Release() override; + + // IFDE_CSSStyleSheet: + FX_BOOL GetUrl(CFX_WideString& szUrl) override { szUrl = m_szUrl; return szUrl.GetLength() > 0; } - virtual uint32_t GetMediaList() const { return m_dwMediaList; } - virtual uint16_t GetCodePage() const { return m_wCodePage; } - virtual int32_t CountRules() const; - virtual IFDE_CSSRule* GetRule(int32_t index); + uint32_t GetMediaList() const override { return m_dwMediaList; } + uint16_t GetCodePage() const override { return m_wCodePage; } + int32_t CountRules() const override; + IFDE_CSSRule* GetRule(int32_t index) override; + FX_BOOL LoadFromStream(const CFX_WideString& szUrl, IFX_Stream* pStream, uint16_t wCodePage); -- cgit v1.2.3