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

Side by Side Diff: Source/core/layout/LayoutText.cpp

Issue 1197833006: Add Experimental Feature to Force the Complex Text Path (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 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
« no previous file with comments | « no previous file | Source/platform/RuntimeEnabledFeatures.in » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * (C) 1999 Lars Knoll (knoll@kde.org) 2 * (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 2000 Dirk Mueller (mueller@kde.org) 3 * (C) 2000 Dirk Mueller (mueller@kde.org)
4 * Copyright (C) 2004, 2005, 2006, 2007 Apple Inc. All rights reserved. 4 * Copyright (C) 2004, 2005, 2006, 2007 Apple Inc. All rights reserved.
5 * Copyright (C) 2006 Andrew Wellington (proton@wiretapped.net) 5 * Copyright (C) 2006 Andrew Wellington (proton@wiretapped.net)
6 * Copyright (C) 2006 Graham Dennis (graham.dennis@gmail.com) 6 * Copyright (C) 2006 Graham Dennis (graham.dennis@gmail.com)
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 1801 matching lines...) Expand 10 before | Expand all | Expand 10 after
1812 1812
1813 long result = iterator->following(current); 1813 long result = iterator->following(current);
1814 if (result == TextBreakDone) 1814 if (result == TextBreakDone)
1815 result = current + 1; 1815 result = current + 1;
1816 1816
1817 return result; 1817 return result;
1818 } 1818 }
1819 1819
1820 bool LayoutText::computeCanUseSimpleFontCodePath() const 1820 bool LayoutText::computeCanUseSimpleFontCodePath() const
1821 { 1821 {
1822 if (RuntimeEnabledFeatures::alwaysUseComplexTextEnabled())
1823 return false;
1822 if (m_text.is8Bit()) 1824 if (m_text.is8Bit())
1823 return true; 1825 return true;
1824 return Character::characterRangeCodePath(characters16(), length()) == Simple Path; 1826 return Character::characterRangeCodePath(characters16(), length()) == Simple Path;
1825 } 1827 }
1826 1828
1827 #if ENABLE(ASSERT) 1829 #if ENABLE(ASSERT)
1828 1830
1829 void LayoutText::checkConsistency() const 1831 void LayoutText::checkConsistency() const
1830 { 1832 {
1831 #ifdef CHECK_CONSISTENCY 1833 #ifdef CHECK_CONSISTENCY
(...skipping 28 matching lines...) Expand all
1860 } 1862 }
1861 1863
1862 void LayoutText::invalidateDisplayItemClients(const LayoutBoxModelObject& paintI nvalidationContainer) const 1864 void LayoutText::invalidateDisplayItemClients(const LayoutBoxModelObject& paintI nvalidationContainer) const
1863 { 1865 {
1864 LayoutObject::invalidateDisplayItemClients(paintInvalidationContainer); 1866 LayoutObject::invalidateDisplayItemClients(paintInvalidationContainer);
1865 for (InlineTextBox* box = firstTextBox(); box; box = box->nextTextBox()) 1867 for (InlineTextBox* box = firstTextBox(); box; box = box->nextTextBox())
1866 paintInvalidationContainer.invalidateDisplayItemClientOnBacking(*box); 1868 paintInvalidationContainer.invalidateDisplayItemClientOnBacking(*box);
1867 } 1869 }
1868 1870
1869 } // namespace blink 1871 } // namespace blink
OLDNEW
« no previous file with comments | « no previous file | Source/platform/RuntimeEnabledFeatures.in » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698