Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1135)

Unified Diff: third_party/WebKit/Source/web/WebFontImpl.h

Issue 1497873002: Make DisplayItemClient an interface (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/Source/web/PageOverlay.h ('k') | third_party/WebKit/Source/web/WebLocalFrameImpl.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/web/WebFontImpl.h
diff --git a/third_party/WebKit/Source/web/WebFontImpl.h b/third_party/WebKit/Source/web/WebFontImpl.h
index b6c2378f65f09dd488c189496a72c2631afbb7fc..2929dcf4bd2e0e6a96f29528c6d3e2e5eaaf672d 100644
--- a/third_party/WebKit/Source/web/WebFontImpl.h
+++ b/third_party/WebKit/Source/web/WebFontImpl.h
@@ -39,7 +39,7 @@ namespace blink {
class FontDescription;
-class WebFontImpl final : public WebFont {
+class WebFontImpl final : public WebFont, public DisplayItemClient {
public:
explicit WebFontImpl(const FontDescription&);
@@ -59,8 +59,7 @@ public:
WebFloatRect selectionRectForText(const WebTextRun&, const WebFloatPoint& leftBaseline,
int height, int from = 0, int to = -1) const override;
- DisplayItemClient displayItemClient() const { return toDisplayItemClient(this); }
- String debugName() const { return "WebFontImpl"; }
+ String debugName() const final { return "WebFontImpl"; }
private:
Font m_font;
« no previous file with comments | « third_party/WebKit/Source/web/PageOverlay.h ('k') | third_party/WebKit/Source/web/WebLocalFrameImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698