| OLD | NEW |
| 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 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 173 bidiResolver.createBidiRunsForLine(TextRunIterator(&run, run.length())); | 173 bidiResolver.createBidiRunsForLine(TextRunIterator(&run, run.length())); |
| 174 if (!bidiRuns.runCount()) | 174 if (!bidiRuns.runCount()) |
| 175 return true; | 175 return true; |
| 176 | 176 |
| 177 FloatPoint currPoint = point; | 177 FloatPoint currPoint = point; |
| 178 BidiCharacterRun* bidiRun = bidiRuns.firstRun(); | 178 BidiCharacterRun* bidiRun = bidiRuns.firstRun(); |
| 179 while (bidiRun) { | 179 while (bidiRun) { |
| 180 TextRun subrun = | 180 TextRun subrun = |
| 181 run.subRun(bidiRun->start(), bidiRun->stop() - bidiRun->start()); | 181 run.subRun(bidiRun->start(), bidiRun->stop() - bidiRun->start()); |
| 182 bool isRTL = bidiRun->level() % 2; | 182 bool isRTL = bidiRun->level() % 2; |
| 183 subrun.setDirection(isRTL ? TextDirection::Rtl : TextDirection::Ltr); | 183 subrun.setDirection(isRTL ? TextDirection::kRtl : TextDirection::kLtr); |
| 184 subrun.setDirectionalOverride(bidiRun->dirOverride(false)); | 184 subrun.setDirectionalOverride(bidiRun->dirOverride(false)); |
| 185 | 185 |
| 186 TextRunPaintInfo subrunInfo(subrun); | 186 TextRunPaintInfo subrunInfo(subrun); |
| 187 subrunInfo.bounds = runInfo.bounds; | 187 subrunInfo.bounds = runInfo.bounds; |
| 188 | 188 |
| 189 // TODO: investigate blob consolidation/caching (technically, | 189 // TODO: investigate blob consolidation/caching (technically, |
| 190 // all subruns could be part of the same blob). | 190 // all subruns could be part of the same blob). |
| 191 GlyphBuffer glyphBuffer; | 191 GlyphBuffer glyphBuffer; |
| 192 float runWidth = buildGlyphBuffer(subrunInfo, glyphBuffer); | 192 float runWidth = buildGlyphBuffer(subrunInfo, glyphBuffer); |
| 193 drawGlyphBuffer(canvas, paint, subrunInfo, glyphBuffer, currPoint, | 193 drawGlyphBuffer(canvas, paint, subrunInfo, glyphBuffer, currPoint, |
| (...skipping 442 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 636 | 636 |
| 637 bool Font::loadingCustomFonts() const { | 637 bool Font::loadingCustomFonts() const { |
| 638 return m_fontFallbackList && m_fontFallbackList->loadingCustomFonts(); | 638 return m_fontFallbackList && m_fontFallbackList->loadingCustomFonts(); |
| 639 } | 639 } |
| 640 | 640 |
| 641 bool Font::isFallbackValid() const { | 641 bool Font::isFallbackValid() const { |
| 642 return !m_fontFallbackList || m_fontFallbackList->isValid(); | 642 return !m_fontFallbackList || m_fontFallbackList->isValid(); |
| 643 } | 643 } |
| 644 | 644 |
| 645 } // namespace blink | 645 } // namespace blink |
| OLD | NEW |