public boolean isInlineStyleValue(Element element, int propidx) { if (!(element instanceof CSSStylableElement)) { return false; } CSSStylableElement elt = (CSSStylableElement)element; String pseudo = ""; // Pending // NOI18N StyleMap sm = elt.getComputedStyleMap(pseudo); if (sm == null) { return false; } Value value = sm.getValue(propidx); if (value == null) { return false; } return sm.getOrigin(propidx) == StyleMap.INLINE_AUTHOR_ORIGIN; } // </Non engine methods, might be separated>
if (cascaded.getOrigin(i) == StyleMap.NON_CSS_ORIGIN) { sb.append("(from HTML attribute) ");
short origin) { Value dval = dest.getValue(idx); short dorg = dest.getOrigin(idx); boolean dimp = dest.isImportant(idx);
short origin) { Value dval = dest.getValue(idx); short dorg = dest.getOrigin(idx); boolean dimp = dest.isImportant(idx);
short origin) { Value dval = dest.getValue(idx); short dorg = dest.getOrigin(idx); boolean dimp = dest.isImportant(idx);
/** * A property in the override style declaration has been removed. */ public void overrideStylePropertyRemoved(CSSStylableElement elt, String name) { StyleDeclarationProvider p = elt.getOverrideStyleDeclarationProvider(); StyleDeclaration declaration = p.getStyleDeclaration(); int idx = getPropertyIndex(name); int ds = declaration.size(); for (int i = 0; i < ds; i++) { if (idx == declaration.getIndex(i)) { declaration.remove(i); StyleMap style = elt.getComputedStyleMap(null); if (style != null && style.getOrigin(idx) == StyleMap.OVERRIDE_ORIGIN /* && style.isComputed(idx) */) { invalidateProperties (elt, new int[] { idx }, null, true); } break; } } }
/** * A property in the override style declaration has been removed. */ public void overrideStylePropertyRemoved(CSSStylableElement elt, String name) { StyleDeclarationProvider p = elt.getOverrideStyleDeclarationProvider(); StyleDeclaration declaration = p.getStyleDeclaration(); int idx = getPropertyIndex(name); int ds = declaration.size(); for (int i = 0; i < ds; i++) { if (idx == declaration.getIndex(i)) { declaration.remove(i); StyleMap style = elt.getComputedStyleMap(null); if (style != null && style.getOrigin(idx) == StyleMap.OVERRIDE_ORIGIN /* && style.isComputed(idx) */) { invalidateProperties (elt, new int[] { idx }, null, true); } break; } } }
/** * A property in the override style declaration has been removed. */ public void overrideStylePropertyRemoved(CSSStylableElement elt, String name) { StyleDeclarationProvider p = elt.getOverrideStyleDeclarationProvider(); StyleDeclaration declaration = p.getStyleDeclaration(); int idx = getPropertyIndex(name); int ds = declaration.size(); for (int i = 0; i < ds; i++) { if (idx == declaration.getIndex(i)) { declaration.remove(i); StyleMap style = elt.getComputedStyleMap(null); if (style != null && style.getOrigin(idx) == StyleMap.OVERRIDE_ORIGIN /* && style.isComputed(idx) */) { invalidateProperties (elt, new int[] { idx }, null, true); } break; } } }
short origin = style.getOrigin(i); if (origin >= StyleMap.INLINE_AUTHOR_ORIGIN) { // ToDo Jlint says: always same result ?? removed = true;
short origin = style.getOrigin(i); if (origin >= StyleMap.INLINE_AUTHOR_ORIGIN) { // ToDo Jlint says: always same result ?? removed = true;
short origin = style.getOrigin(i); if (origin >= StyleMap.INLINE_AUTHOR_ORIGIN) { // ToDo Jlint says: always same result ?? removed = true;
if (style.getOrigin(idx) >= StyleMap.AUTHOR_ORIGIN) {
if (style.getOrigin(idx) >= StyleMap.AUTHOR_ORIGIN) {
if (style.getOrigin(idx) >= StyleMap.AUTHOR_ORIGIN) {