| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2004, 2006, 2007 Apple Inc. All rights reserved. | 2 * Copyright (C) 2004, 2006, 2007 Apple Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 result.append('"'); | 138 result.append('"'); |
| 139 } else if (c == '\n' || c == noBreakSpaceCharacter) { | 139 } else if (c == '\n' || c == noBreakSpaceCharacter) { |
| 140 result.append(' '); | 140 result.append(' '); |
| 141 } else { | 141 } else { |
| 142 if (c >= 0x20 && c < 0x7F) { | 142 if (c >= 0x20 && c < 0x7F) { |
| 143 result.append(c); | 143 result.append(c); |
| 144 } else { | 144 } else { |
| 145 result.append('\\'); | 145 result.append('\\'); |
| 146 result.append('x'); | 146 result.append('x'); |
| 147 result.append('{'); | 147 result.append('{'); |
| 148 appendUnsignedAsHex(c, result); | 148 HexNumber::appendUnsignedAsHex(c, result); |
| 149 result.append('}'); | 149 result.append('}'); |
| 150 } | 150 } |
| 151 } | 151 } |
| 152 } | 152 } |
| 153 result.append('"'); | 153 result.append('"'); |
| 154 return result.toString(); | 154 return result.toString(); |
| 155 } | 155 } |
| 156 | 156 |
| 157 TextStream& operator<<(TextStream& ts, const Color& c) { | 157 TextStream& operator<<(TextStream& ts, const Color& c) { |
| 158 return ts << c.nameForLayoutTreeAsText(); | 158 return ts << c.nameForLayoutTreeAsText(); |
| (...skipping 722 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 881 element->document().updateStyleAndLayout(); | 881 element->document().updateStyleAndLayout(); |
| 882 | 882 |
| 883 LayoutObject* layoutObject = element->layoutObject(); | 883 LayoutObject* layoutObject = element->layoutObject(); |
| 884 if (!layoutObject || !layoutObject->isListItem()) | 884 if (!layoutObject || !layoutObject->isListItem()) |
| 885 return String(); | 885 return String(); |
| 886 | 886 |
| 887 return toLayoutListItem(layoutObject)->markerText(); | 887 return toLayoutListItem(layoutObject)->markerText(); |
| 888 } | 888 } |
| 889 | 889 |
| 890 } // namespace blink | 890 } // namespace blink |
| OLD | NEW |