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

Side by Side Diff: third_party/WebKit/Source/platform/fonts/Font.cpp

Issue 2940933003: DO NOT SUBMIT results of new clang-format (Closed)
Patch Set: Created 3 years, 6 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2000 Dirk Mueller (mueller@kde.org) 4 * (C) 2000 Dirk Mueller (mueller@kde.org)
5 * Copyright (C) 2003, 2006, 2010, 2011 Apple Inc. All rights reserved. 5 * Copyright (C) 2003, 2006, 2010, 2011 Apple Inc. All rights reserved.
6 * Copyright (c) 2007, 2008, 2010 Google Inc. All rights reserved. 6 * Copyright (c) 2007, 2008, 2010 Google Inc. All rights reserved.
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 119
120 SkMatrix m; 120 SkMatrix m;
121 m.setSinCos(-1, 0, point.X(), point.Y()); 121 m.setSinCos(-1, 0, point.X(), point.Y());
122 canvas->concat(m); 122 canvas->concat(m);
123 } 123 }
124 124
125 canvas->drawTextBlob(blob_info.blob, point.X(), point.Y(), flags); 125 canvas->drawTextBlob(blob_info.blob, point.X(), point.Y(), flags);
126 } 126 }
127 } 127 }
128 128
129 } // anonymous ns 129 } // namespace
130 130
131 bool Font::DrawText(PaintCanvas* canvas, 131 bool Font::DrawText(PaintCanvas* canvas,
132 const TextRunPaintInfo& run_info, 132 const TextRunPaintInfo& run_info,
133 const FloatPoint& point, 133 const FloatPoint& point,
134 float device_scale_factor, 134 float device_scale_factor,
135 const PaintFlags& flags) const { 135 const PaintFlags& flags) const {
136 // Don't draw anything while we are using custom fonts that are in the process 136 // Don't draw anything while we are using custom fonts that are in the process
137 // of loading. 137 // of loading.
138 if (ShouldSkipDrawing()) 138 if (ShouldSkipDrawing())
139 return false; 139 return false;
(...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after
519 519
520 bool Font::LoadingCustomFonts() const { 520 bool Font::LoadingCustomFonts() const {
521 return font_fallback_list_ && font_fallback_list_->LoadingCustomFonts(); 521 return font_fallback_list_ && font_fallback_list_->LoadingCustomFonts();
522 } 522 }
523 523
524 bool Font::IsFallbackValid() const { 524 bool Font::IsFallbackValid() const {
525 return !font_fallback_list_ || font_fallback_list_->IsValid(); 525 return !font_fallback_list_ || font_fallback_list_->IsValid();
526 } 526 }
527 527
528 } // namespace blink 528 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698