| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
| 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
| 4 * (C) 2007 David Smith (catfish.man@gmail.com) | 4 * (C) 2007 David Smith (catfish.man@gmail.com) |
| 5 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc.
All rights reserved. | 5 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc.
All rights reserved. |
| 6 * Copyright (C) Research In Motion Limited 2010. All rights reserved. | 6 * Copyright (C) Research In Motion Limited 2010. 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 CharCategory charCategory = category(c); | 47 CharCategory charCategory = category(c); |
| 48 return charCategory == Punctuation_Open | 48 return charCategory == Punctuation_Open |
| 49 || charCategory == Punctuation_Close | 49 || charCategory == Punctuation_Close |
| 50 || charCategory == Punctuation_InitialQuote | 50 || charCategory == Punctuation_InitialQuote |
| 51 || charCategory == Punctuation_FinalQuote | 51 || charCategory == Punctuation_FinalQuote |
| 52 || charCategory == Punctuation_Other; | 52 || charCategory == Punctuation_Other; |
| 53 } | 53 } |
| 54 | 54 |
| 55 static inline bool isSpaceForFirstLetter(UChar c) | 55 static inline bool isSpaceForFirstLetter(UChar c) |
| 56 { | 56 { |
| 57 return isSpaceOrNewline(c) || c == noBreakSpace; | 57 return isSpaceOrNewline(c) || c == noBreakSpaceCharacter; |
| 58 } | 58 } |
| 59 | 59 |
| 60 unsigned FirstLetterPseudoElement::firstLetterLength(const String& text) | 60 unsigned FirstLetterPseudoElement::firstLetterLength(const String& text) |
| 61 { | 61 { |
| 62 unsigned length = 0; | 62 unsigned length = 0; |
| 63 unsigned textLength = text.length(); | 63 unsigned textLength = text.length(); |
| 64 | 64 |
| 65 if (textLength == 0) | 65 if (textLength == 0) |
| 66 return length; | 66 return length; |
| 67 | 67 |
| (...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 311 | 311 |
| 312 // We only manage the style for the generated content items. | 312 // We only manage the style for the generated content items. |
| 313 if (!child->isText() && !child->isQuote() && !child->isImage()) | 313 if (!child->isText() && !child->isQuote() && !child->isImage()) |
| 314 continue; | 314 continue; |
| 315 | 315 |
| 316 child->setPseudoStyle(layoutObject->mutableStyle()); | 316 child->setPseudoStyle(layoutObject->mutableStyle()); |
| 317 } | 317 } |
| 318 } | 318 } |
| 319 | 319 |
| 320 } // namespace blink | 320 } // namespace blink |
| OLD | NEW |