// and getAdapterFor() is slow, so add a check on the tagName to
// filter
// those stylesheet stuff first.
if (IHTMLConstants.TAG_LINK.equalsIgnoreCase(tagName)
|| IHTMLConstants.TAG_STYLE.equalsIgnoreCase(tagName)) {
INodeAdapter adapter = notifier
.getAdapterFor(IStyleSheetAdapter.class);
if (adapter instanceof IStyleSheetAdapter) {
// XXX: see bug 171740. This is a (hopefully) temporary
// workaround that avoids having the call to getSheet throw an NPE
IStyleSheetAdapter sheetAdapter = (IStyleSheetAdapter) adapter;