OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006, 2008, 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 PassRefPtrWillBeRawPtr<Element> addSpanWithClassName(const AtomicString&); | 68 PassRefPtrWillBeRawPtr<Element> addSpanWithClassName(const AtomicString&); |
69 void addLine(const AtomicString& className); | 69 void addLine(const AtomicString& className); |
70 void finishLine(); | 70 void finishLine(); |
71 void addText(const String& text, const AtomicString& className, SourceAnnota
tion = AnnotateSourceAsSafe); | 71 void addText(const String& text, const AtomicString& className, SourceAnnota
tion = AnnotateSourceAsSafe); |
72 int addRange(const String& source, int start, int end, const AtomicString& c
lassName, bool isLink = false, bool isAnchor = false, const AtomicString& link =
nullAtom); | 72 int addRange(const String& source, int start, int end, const AtomicString& c
lassName, bool isLink = false, bool isAnchor = false, const AtomicString& link =
nullAtom); |
73 void maybeAddSpanForAnnotation(SourceAnnotation); | 73 void maybeAddSpanForAnnotation(SourceAnnotation); |
74 | 74 |
75 PassRefPtrWillBeRawPtr<Element> addLink(const AtomicString& url, bool isAnch
or); | 75 PassRefPtrWillBeRawPtr<Element> addLink(const AtomicString& url, bool isAnch
or); |
76 PassRefPtrWillBeRawPtr<Element> addBase(const AtomicString& href); | 76 PassRefPtrWillBeRawPtr<Element> addBase(const AtomicString& href); |
77 | 77 |
| 78 String debugName() const override { return "HTMLViewSourceDocument"; } |
| 79 |
78 String m_type; | 80 String m_type; |
79 RefPtrWillBeMember<Element> m_current; | 81 RefPtrWillBeMember<Element> m_current; |
80 RefPtrWillBeMember<HTMLTableSectionElement> m_tbody; | 82 RefPtrWillBeMember<HTMLTableSectionElement> m_tbody; |
81 RefPtrWillBeMember<HTMLTableCellElement> m_td; | 83 RefPtrWillBeMember<HTMLTableCellElement> m_td; |
82 int m_lineNumber; | 84 int m_lineNumber; |
83 }; | 85 }; |
84 | 86 |
85 } | 87 } |
86 | 88 |
87 #endif // HTMLViewSourceDocument_h | 89 #endif // HTMLViewSourceDocument_h |
OLD | NEW |