Chromium Code Reviews| Index: ui/gfx/render_text_win.cc |
| diff --git a/ui/gfx/render_text_win.cc b/ui/gfx/render_text_win.cc |
| index 0b72ab68b4888b0aa100df9f411c98fe267a4d25..03c4c243f49b349d2af170fac5a31c295d832656 100644 |
| --- a/ui/gfx/render_text_win.cc |
| +++ b/ui/gfx/render_text_win.cc |
| @@ -646,7 +646,8 @@ void RenderTextWin::LayoutTextRun(internal::TextRun* run) { |
| HRESULT hr = ShapeTextRunWithFont(run, current_font); |
| bool glyphs_missing = false; |
| - if (hr == USP_E_SCRIPT_NOT_IN_FONT) { |
| + if (hr == USP_E_SCRIPT_NOT_IN_FONT || |
| + hr == HRESULT_FROM_WIN32(ERROR_INVALID_WINDOW_HANDLE)) { |
|
msw
2012/10/12 21:34:55
It seems like this should trash the invalid |cache
|
| glyphs_missing = true; |
| } else if (hr == S_OK) { |
| // If |hr| is S_OK, there could still be missing glyphs in the output. |