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

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutQuote.cpp

Issue 2758683002: Replace ASSERT_NOT_REACHED with NOTREACHED in core/layout/ (Closed)
Patch Set: Rebase with latest Created 3 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
OLDNEW
1 /** 1 /**
2 * Copyright (C) 2011 Nokia Inc. All rights reserved. 2 * Copyright (C) 2011 Nokia Inc. All rights reserved.
3 * Copyright (C) 2012 Google Inc. All rights reserved. 3 * Copyright (C) 2012 Google Inc. All rights reserved.
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after
287 String LayoutQuote::computeText() const { 287 String LayoutQuote::computeText() const {
288 switch (m_type) { 288 switch (m_type) {
289 case NO_OPEN_QUOTE: 289 case NO_OPEN_QUOTE:
290 case NO_CLOSE_QUOTE: 290 case NO_CLOSE_QUOTE:
291 return emptyString; 291 return emptyString;
292 case CLOSE_QUOTE: 292 case CLOSE_QUOTE:
293 return quotesData()->getCloseQuote(m_depth - 1).impl(); 293 return quotesData()->getCloseQuote(m_depth - 1).impl();
294 case OPEN_QUOTE: 294 case OPEN_QUOTE:
295 return quotesData()->getOpenQuote(m_depth).impl(); 295 return quotesData()->getOpenQuote(m_depth).impl();
296 } 296 }
297 ASSERT_NOT_REACHED(); 297 NOTREACHED();
298 return emptyString; 298 return emptyString;
299 } 299 }
300 300
301 const QuotesData* LayoutQuote::quotesData() const { 301 const QuotesData* LayoutQuote::quotesData() const {
302 if (const QuotesData* customQuotes = style()->quotes()) 302 if (const QuotesData* customQuotes = style()->quotes())
303 return customQuotes; 303 return customQuotes;
304 304
305 if (const QuotesData* quotes = quotesDataForLanguage(style()->locale())) 305 if (const QuotesData* quotes = quotesDataForLanguage(style()->locale()))
306 return quotes; 306 return quotes;
307 307
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
393 if (m_depth) 393 if (m_depth)
394 m_depth--; 394 m_depth--;
395 break; 395 break;
396 } 396 }
397 } 397 }
398 if (oldDepth != m_depth) 398 if (oldDepth != m_depth)
399 updateText(); 399 updateText();
400 } 400 }
401 401
402 } // namespace blink 402 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698