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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 void addText(const String& text, | 67 void addText(const String& text, |
68 const AtomicString& className, | 68 const AtomicString& className, |
69 SourceAnnotation = AnnotateSourceAsSafe); | 69 SourceAnnotation = AnnotateSourceAsSafe); |
70 int addRange(const String& source, | 70 int addRange(const String& source, |
71 int start, | 71 int start, |
72 int end, | 72 int end, |
73 const AtomicString& className, | 73 const AtomicString& className, |
74 bool isLink = false, | 74 bool isLink = false, |
75 bool isAnchor = false, | 75 bool isAnchor = false, |
76 const AtomicString& link = nullAtom); | 76 const AtomicString& link = nullAtom); |
77 int addSrcset(const String& source, | 77 int addSrcset(const String& source, int start, int end); |
78 int start, | |
79 int end); | |
80 void maybeAddSpanForAnnotation(SourceAnnotation); | 78 void maybeAddSpanForAnnotation(SourceAnnotation); |
81 | 79 |
82 Element* addLink(const AtomicString& url, bool isAnchor); | 80 Element* addLink(const AtomicString& url, bool isAnchor); |
83 Element* addBase(const AtomicString& href); | 81 Element* addBase(const AtomicString& href); |
84 | 82 |
85 String m_type; | 83 String m_type; |
86 Member<Element> m_current; | 84 Member<Element> m_current; |
87 Member<HTMLTableSectionElement> m_tbody; | 85 Member<HTMLTableSectionElement> m_tbody; |
88 Member<HTMLTableCellElement> m_td; | 86 Member<HTMLTableCellElement> m_td; |
89 int m_lineNumber; | 87 int m_lineNumber; |
90 }; | 88 }; |
91 | 89 |
92 } // namespace blink | 90 } // namespace blink |
93 | 91 |
94 #endif // HTMLViewSourceDocument_h | 92 #endif // HTMLViewSourceDocument_h |
OLD | NEW |