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

Side by Side Diff: Source/core/css/resolver/FontBuilder.cpp

Issue 186403002: Make font-related CSS properties less custom. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserved. 3 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserved.
4 * Copyright (C) 2013 Google Inc. All rights reserved. 4 * Copyright (C) 2013 Google Inc. All rights reserved.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 448 matching lines...) Expand 10 before | Expand all | Expand 10 after
459 scope.fontDescription().setItalic(italic); 459 scope.fontDescription().setItalic(italic);
460 } 460 }
461 461
462 void FontBuilder::setSmallCaps(FontSmallCaps smallCaps) 462 void FontBuilder::setSmallCaps(FontSmallCaps smallCaps)
463 { 463 {
464 FontDescriptionChangeScope scope(this); 464 FontDescriptionChangeScope scope(this);
465 465
466 scope.fontDescription().setSmallCaps(smallCaps); 466 scope.fontDescription().setSmallCaps(smallCaps);
467 } 467 }
468 468
469 void FontBuilder::setTextRenderingMode(TextRenderingMode textRenderingMode) 469 void FontBuilder::setTextRendering(TextRenderingMode textRenderingMode)
470 { 470 {
471 FontDescriptionChangeScope scope(this); 471 FontDescriptionChangeScope scope(this);
472 472
473 scope.fontDescription().setTextRenderingMode(textRenderingMode); 473 scope.fontDescription().setTextRendering(textRenderingMode);
474 } 474 }
475 475
476 void FontBuilder::setKerning(FontDescription::Kerning kerning) 476 void FontBuilder::setKerning(FontDescription::Kerning kerning)
477 { 477 {
478 FontDescriptionChangeScope scope(this); 478 FontDescriptionChangeScope scope(this);
479 479
480 scope.fontDescription().setKerning(kerning); 480 scope.fontDescription().setKerning(kerning);
481 } 481 }
482 482
483 void FontBuilder::setFontSmoothing(FontSmoothingMode foontSmoothingMode) 483 void FontBuilder::setFontSmoothing(FontSmoothingMode foontSmoothingMode)
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
667 FontOrientation fontOrientation; 667 FontOrientation fontOrientation;
668 NonCJKGlyphOrientation glyphOrientation; 668 NonCJKGlyphOrientation glyphOrientation;
669 getFontAndGlyphOrientation(documentStyle, fontOrientation, glyphOrientation) ; 669 getFontAndGlyphOrientation(documentStyle, fontOrientation, glyphOrientation) ;
670 fontDescription.setOrientation(fontOrientation); 670 fontDescription.setOrientation(fontOrientation);
671 fontDescription.setNonCJKGlyphOrientation(glyphOrientation); 671 fontDescription.setNonCJKGlyphOrientation(glyphOrientation);
672 documentStyle->setFontDescription(fontDescription); 672 documentStyle->setFontDescription(fontDescription);
673 documentStyle->font().update(fontSelector); 673 documentStyle->font().update(fontSelector);
674 } 674 }
675 675
676 } 676 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698