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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 #include "core/editing/PlainTextRange.h" | 42 #include "core/editing/PlainTextRange.h" |
43 #include "core/editing/VisibleUnits.h" | 43 #include "core/editing/VisibleUnits.h" |
44 #include "core/editing/iterators/TextIterator.h" | 44 #include "core/editing/iterators/TextIterator.h" |
45 #include "core/editing/serializers/HTMLInterchange.h" | 45 #include "core/editing/serializers/HTMLInterchange.h" |
46 #include "core/frame/UseCounter.h" | 46 #include "core/frame/UseCounter.h" |
47 #include "core/html/HTMLFontElement.h" | 47 #include "core/html/HTMLFontElement.h" |
48 #include "core/html/HTMLSpanElement.h" | 48 #include "core/html/HTMLSpanElement.h" |
49 #include "core/layout/LayoutObject.h" | 49 #include "core/layout/LayoutObject.h" |
50 #include "core/layout/LayoutText.h" | 50 #include "core/layout/LayoutText.h" |
51 #include "platform/heap/Handle.h" | 51 #include "platform/heap/Handle.h" |
52 #include "wtf/StdLibExtras.h" | 52 #include "platform/wtf/StdLibExtras.h" |
53 #include "wtf/text/StringBuilder.h" | 53 #include "platform/wtf/text/StringBuilder.h" |
54 | 54 |
55 namespace blink { | 55 namespace blink { |
56 | 56 |
57 using namespace HTMLNames; | 57 using namespace HTMLNames; |
58 | 58 |
59 static bool HasNoAttributeOrOnlyStyleAttribute( | 59 static bool HasNoAttributeOrOnlyStyleAttribute( |
60 const HTMLElement* element, | 60 const HTMLElement* element, |
61 ShouldStyleAttributeBeEmpty should_style_attribute_be_empty) { | 61 ShouldStyleAttributeBeEmpty should_style_attribute_be_empty) { |
62 AttributeCollection attributes = element->Attributes(); | 62 AttributeCollection attributes = element->Attributes(); |
63 if (attributes.IsEmpty()) | 63 if (attributes.IsEmpty()) |
(...skipping 1976 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2040 | 2040 |
2041 DEFINE_TRACE(ApplyStyleCommand) { | 2041 DEFINE_TRACE(ApplyStyleCommand) { |
2042 visitor->Trace(style_); | 2042 visitor->Trace(style_); |
2043 visitor->Trace(start_); | 2043 visitor->Trace(start_); |
2044 visitor->Trace(end_); | 2044 visitor->Trace(end_); |
2045 visitor->Trace(styled_inline_element_); | 2045 visitor->Trace(styled_inline_element_); |
2046 CompositeEditCommand::Trace(visitor); | 2046 CompositeEditCommand::Trace(visitor); |
2047 } | 2047 } |
2048 | 2048 |
2049 } // namespace blink | 2049 } // namespace blink |
OLD | NEW |