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

Unified Diff: content/common/mac/font_descriptor.h

Issue 1052523006: Don't crash when using IME on an input field with a CSS-specified font. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 months 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 | « content/common/mac/attributed_string_coder.mm ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/mac/font_descriptor.h
diff --git a/content/common/mac/font_descriptor.h b/content/common/mac/font_descriptor.h
index 219f1fb2ca8a145567fbf377e86d70deb6a69d37..71d555dbaa8c6675faed85deb66b77a4c6c22975 100644
--- a/content/common/mac/font_descriptor.h
+++ b/content/common/mac/font_descriptor.h
@@ -21,7 +21,9 @@ struct CONTENT_EXPORT FontDescriptor {
FontDescriptor() : font_point_size(0) {}
- // Return an autoreleased NSFont corresponding to the font description.
+ // Return an autoreleased NSFont corresponding to the font description. Note
+ // that this will return nil if the font specified isn't available in this
+ // process.
NSFont* ToNSFont() const;
// Name of the font.
« no previous file with comments | « content/common/mac/attributed_string_coder.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698