Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(202)

Side by Side Diff: third_party/WebKit/Source/core/html/HTMLViewSourceDocument.h

Issue 2589123002: Fix links are not shown for srcset in view-source (Closed)
Patch Set: Fix links are not shown for srcset in view-source Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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,
78 int start,
79 int end);
77 void maybeAddSpanForAnnotation(SourceAnnotation); 80 void maybeAddSpanForAnnotation(SourceAnnotation);
78 81
79 Element* addLink(const AtomicString& url, bool isAnchor); 82 Element* addLink(const AtomicString& url, bool isAnchor);
80 Element* addBase(const AtomicString& href); 83 Element* addBase(const AtomicString& href);
81 84
82 String m_type; 85 String m_type;
83 Member<Element> m_current; 86 Member<Element> m_current;
84 Member<HTMLTableSectionElement> m_tbody; 87 Member<HTMLTableSectionElement> m_tbody;
85 Member<HTMLTableCellElement> m_td; 88 Member<HTMLTableCellElement> m_td;
86 int m_lineNumber; 89 int m_lineNumber;
87 }; 90 };
88 91
89 } // namespace blink 92 } // namespace blink
90 93
91 #endif // HTMLViewSourceDocument_h 94 #endif // HTMLViewSourceDocument_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698