MCPcopy Create free account
hub / github.com/w3c/epubcheck / parseItem

Method parseItem

src/main/java/com/adobe/epubcheck/css/CSSChecker.java:167–187  ·  view source on GitHub ↗
(CssSource source, CSSHandler handler)

Source from the content-addressed store, hash-verified

165 }
166
167 void parseItem(CssSource source, CSSHandler handler)
168 throws IOException,
169 CssExceptions.CssException
170 {
171 if (!isStyleAttribute)
172 {
173 if (this.mode == Mode.FILE)
174 {
175 new CssParser(context.locale).parse(source, handler, handler);
176 }
177 else
178 {
179 new CssParser(context.locale).parse(new StringReader(this.value), context.path, handler, handler);
180 }
181 }
182 else
183 {
184 new CssParser(context.locale)
185 .parseStyleAttribute(new StringReader(this.value), context.path, handler, handler);
186 }
187 }
188}

Callers 1

checkContentMethod · 0.95

Calls 2

parseStyleAttributeMethod · 0.80
parseMethod · 0.45

Tested by

no test coverage detected