| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |