OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights | 2 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights |
3 * reserved. | 3 * reserved. |
4 * Copyright (C) 2008, 2009, 2010, 2011 Google Inc. All rights reserved. | 4 * Copyright (C) 2008, 2009, 2010, 2011 Google Inc. All rights reserved. |
5 * Copyright (C) 2011 Igalia S.L. | 5 * Copyright (C) 2011 Igalia S.L. |
6 * Copyright (C) 2011 Motorola Mobility. All rights reserved. | 6 * Copyright (C) 2011 Motorola Mobility. All rights reserved. |
7 * | 7 * |
8 * Redistribution and use in source and binary forms, with or without | 8 * Redistribution and use in source and binary forms, with or without |
9 * modification, are permitted provided that the following conditions | 9 * modification, are permitted provided that the following conditions |
10 * are met: | 10 * are met: |
(...skipping 24 matching lines...) Expand all Loading... |
35 #include "core/dom/Text.h" | 35 #include "core/dom/Text.h" |
36 #include "core/dom/shadow/ElementShadow.h" | 36 #include "core/dom/shadow/ElementShadow.h" |
37 #include "core/editing/EditingStyle.h" | 37 #include "core/editing/EditingStyle.h" |
38 #include "core/editing/EditingStyleUtilities.h" | 38 #include "core/editing/EditingStyleUtilities.h" |
39 #include "core/editing/EditingUtilities.h" | 39 #include "core/editing/EditingUtilities.h" |
40 #include "core/editing/VisibleSelection.h" | 40 #include "core/editing/VisibleSelection.h" |
41 #include "core/editing/VisibleUnits.h" | 41 #include "core/editing/VisibleUnits.h" |
42 #include "core/editing/serializers/Serialization.h" | 42 #include "core/editing/serializers/Serialization.h" |
43 #include "core/html/HTMLBodyElement.h" | 43 #include "core/html/HTMLBodyElement.h" |
44 #include "core/html/HTMLElement.h" | 44 #include "core/html/HTMLElement.h" |
45 #include "wtf/text/StringBuilder.h" | 45 #include "platform/wtf/text/StringBuilder.h" |
46 | 46 |
47 namespace blink { | 47 namespace blink { |
48 | 48 |
49 namespace { | 49 namespace { |
50 | 50 |
51 template <typename Strategy> | 51 template <typename Strategy> |
52 TextOffset ToTextOffset(const PositionTemplate<Strategy>& position) { | 52 TextOffset ToTextOffset(const PositionTemplate<Strategy>& position) { |
53 if (position.IsNull()) | 53 if (position.IsNull()) |
54 return TextOffset(); | 54 return TextOffset(); |
55 | 55 |
(...skipping 491 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
547 if (element.IsHTMLElement() && ShouldAnnotate()) | 547 if (element.IsHTMLElement() && ShouldAnnotate()) |
548 inline_style->MergeStyleFromRulesForSerialization(&ToHTMLElement(element)); | 548 inline_style->MergeStyleFromRulesForSerialization(&ToHTMLElement(element)); |
549 | 549 |
550 return inline_style; | 550 return inline_style; |
551 } | 551 } |
552 | 552 |
553 template class StyledMarkupSerializer<EditingStrategy>; | 553 template class StyledMarkupSerializer<EditingStrategy>; |
554 template class StyledMarkupSerializer<EditingInFlatTreeStrategy>; | 554 template class StyledMarkupSerializer<EditingInFlatTreeStrategy>; |
555 | 555 |
556 } // namespace blink | 556 } // namespace blink |
OLD | NEW |