summaryrefslogtreecommitdiff
path: root/xfa/fde/css/fde_cssstylesheet.h
diff options
context:
space:
mode:
authortsepez <tsepez@chromium.org>2016-05-23 17:19:20 -0700
committerCommit bot <commit-bot@chromium.org>2016-05-23 17:19:20 -0700
commita2d699f1462050833f959ebcf24853c2a6a10f72 (patch)
tree35cc25303ebc2bd68d36255e6db69a08f043dc66 /xfa/fde/css/fde_cssstylesheet.h
parentdb1a24e86d40977fb6d8aa8fa57dadee4c2f1be1 (diff)
downloadpdfium-a2d699f1462050833f959ebcf24853c2a6a10f72.tar.xz
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
Diffstat (limited to 'xfa/fde/css/fde_cssstylesheet.h')
-rw-r--r--xfa/fde/css/fde_cssstylesheet.h20
1 files changed, 12 insertions, 8 deletions
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);