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

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

Issue 2755493004: Replace ASSERT, ASSERT_NOT_REACHED, and RELEASE_ASSERT in core/css/ (Closed)
Patch Set: All windows error are Resolved now. Created 3 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 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 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. 3 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc.
4 * All rights reserved. 4 * All rights reserved.
5 * Copyright (C) 2013 Google Inc. All rights reserved. 5 * Copyright (C) 2013 Google Inc. All rights reserved.
6 * Copyright (C) 2015 Collabora Ltd. All rights reserved. 6 * Copyright (C) 2015 Collabora Ltd. 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 23 matching lines...) Expand all
34 #include "platform/fonts/FontDescription.h" 34 #include "platform/fonts/FontDescription.h"
35 35
36 namespace blink { 36 namespace blink {
37 37
38 FontBuilder::FontBuilder(const Document& document) 38 FontBuilder::FontBuilder(const Document& document)
39 : m_document(&document), m_flags(0) { 39 : m_document(&document), m_flags(0) {
40 DCHECK(document.frame()); 40 DCHECK(document.frame());
41 } 41 }
42 42
43 void FontBuilder::setInitial(float effectiveZoom) { 43 void FontBuilder::setInitial(float effectiveZoom) {
44 ASSERT(m_document->settings()); 44 DCHECK(m_document->settings());
45 if (!m_document->settings()) 45 if (!m_document->settings())
46 return; 46 return;
47 47
48 setFamilyDescription(m_fontDescription, 48 setFamilyDescription(m_fontDescription,
49 FontBuilder::initialFamilyDescription()); 49 FontBuilder::initialFamilyDescription());
50 setSize(m_fontDescription, FontBuilder::initialSize()); 50 setSize(m_fontDescription, FontBuilder::initialSize());
51 } 51 }
52 52
53 void FontBuilder::didChangeEffectiveZoom() { 53 void FontBuilder::didChangeEffectiveZoom() {
54 set(PropertySetFlag::EffectiveZoom); 54 set(PropertySetFlag::EffectiveZoom);
(...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after
417 FontDescription::Size(FontSize::initialKeywordSize(), 0.0f, false)); 417 FontDescription::Size(FontSize::initialKeywordSize(), 0.0f, false));
418 updateSpecifiedSize(fontDescription, documentStyle); 418 updateSpecifiedSize(fontDescription, documentStyle);
419 updateComputedSize(fontDescription, documentStyle); 419 updateComputedSize(fontDescription, documentStyle);
420 420
421 updateOrientation(fontDescription, documentStyle); 421 updateOrientation(fontDescription, documentStyle);
422 documentStyle.setFontDescription(fontDescription); 422 documentStyle.setFontDescription(fontDescription);
423 documentStyle.font().update(fontSelector); 423 documentStyle.font().update(fontSelector);
424 } 424 }
425 425
426 } // namespace blink 426 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698