| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 float xHeight() const override; | 52 float xHeight() const override; |
| 53 | 53 |
| 54 void drawText(WebCanvas*, const WebTextRun&, const WebFloatPoint& leftBaseli
ne, WebColor, | 54 void drawText(WebCanvas*, const WebTextRun&, const WebFloatPoint& leftBaseli
ne, WebColor, |
| 55 const WebRect& clip) const override; | 55 const WebRect& clip) const override; |
| 56 | 56 |
| 57 int calculateWidth(const WebTextRun&) const override; | 57 int calculateWidth(const WebTextRun&) const override; |
| 58 int offsetForPosition(const WebTextRun&, float position) const override; | 58 int offsetForPosition(const WebTextRun&, float position) const override; |
| 59 WebFloatRect selectionRectForText(const WebTextRun&, const WebFloatPoint& le
ftBaseline, | 59 WebFloatRect selectionRectForText(const WebTextRun&, const WebFloatPoint& le
ftBaseline, |
| 60 int height, int from = 0, int to = -1) const override; | 60 int height, int from = 0, int to = -1) const override; |
| 61 | 61 |
| 62 DisplayItemClient displayItemClient() const { return toDisplayItemClient(thi
s); } | 62 DisplayItemClient displayItemClient() const { return DisplayItemClient(this)
; } |
| 63 String debugName() const { return "WebFontImpl"; } | 63 String debugName() const { return "WebFontImpl"; } |
| 64 | 64 |
| 65 private: | 65 private: |
| 66 Font m_font; | 66 Font m_font; |
| 67 }; | 67 }; |
| 68 | 68 |
| 69 } // namespace blink | 69 } // namespace blink |
| 70 | 70 |
| 71 #endif | 71 #endif |
| OLD | NEW |