| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2005, 2006, 2008, 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2005, 2006, 2008, 2009 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 286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 297 return; | 297 return; |
| 298 EphemeralRange endEphemeralRange = PlainTextRange(endIndex).createRangeForSe
lection(toContainerNode(scope)); | 298 EphemeralRange endEphemeralRange = PlainTextRange(endIndex).createRangeForSe
lection(toContainerNode(scope)); |
| 299 if (endEphemeralRange.isNull()) | 299 if (endEphemeralRange.isNull()) |
| 300 return; | 300 return; |
| 301 updateStartEnd(startEphemeralRange.startPosition(), endEphemeralRange.startP
osition()); | 301 updateStartEnd(startEphemeralRange.startPosition(), endEphemeralRange.startP
osition()); |
| 302 } | 302 } |
| 303 | 303 |
| 304 static PassRefPtrWillBeRawPtr<MutableStylePropertySet> copyStyleOrCreateEmpty(co
nst StylePropertySet* style) | 304 static PassRefPtrWillBeRawPtr<MutableStylePropertySet> copyStyleOrCreateEmpty(co
nst StylePropertySet* style) |
| 305 { | 305 { |
| 306 if (!style) | 306 if (!style) |
| 307 return MutableStylePropertySet::create(); | 307 return MutableStylePropertySet::create(HTMLQuirksMode); |
| 308 return style->mutableCopy(); | 308 return style->mutableCopy(); |
| 309 } | 309 } |
| 310 | 310 |
| 311 void ApplyStyleCommand::applyRelativeFontStyleChange(EditingStyle* style) | 311 void ApplyStyleCommand::applyRelativeFontStyleChange(EditingStyle* style) |
| 312 { | 312 { |
| 313 static const float MinimumFontSize = 0.1f; | 313 static const float MinimumFontSize = 0.1f; |
| 314 | 314 |
| 315 if (!style || !style->hasFontSizeDelta()) | 315 if (!style || !style->hasFontSizeDelta()) |
| 316 return; | 316 return; |
| 317 | 317 |
| (...skipping 1276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1594 DEFINE_TRACE(ApplyStyleCommand) | 1594 DEFINE_TRACE(ApplyStyleCommand) |
| 1595 { | 1595 { |
| 1596 visitor->trace(m_style); | 1596 visitor->trace(m_style); |
| 1597 visitor->trace(m_start); | 1597 visitor->trace(m_start); |
| 1598 visitor->trace(m_end); | 1598 visitor->trace(m_end); |
| 1599 visitor->trace(m_styledInlineElement); | 1599 visitor->trace(m_styledInlineElement); |
| 1600 CompositeEditCommand::trace(visitor); | 1600 CompositeEditCommand::trace(visitor); |
| 1601 } | 1601 } |
| 1602 | 1602 |
| 1603 } | 1603 } |
| OLD | NEW |