< prev index next >

src/java.desktop/share/classes/javax/swing/text/html/StyleSheet.java

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 1997, 2017, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this --- 1,7 ---- /* ! * Copyright (c) 1997, 2018, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this
*** 1512,1524 **** private Style createResolvedStyle(String selector, Vector<Element> elements, HTML.Tag t) { int numElements = elements.size(); // Build three arrays, one for tags, one for class's, and one for // id's ! String tags[] = new String[numElements]; ! String ids[] = new String[numElements]; ! String classes[] = new String[numElements]; for (int counter = 0; counter < numElements; counter++) { Element e = elements.elementAt(counter); AttributeSet attr = e.getAttributes(); if (counter == 0 && e.isLeaf()) { // For leafs, we use the second tier attributes. --- 1512,1524 ---- private Style createResolvedStyle(String selector, Vector<Element> elements, HTML.Tag t) { int numElements = elements.size(); // Build three arrays, one for tags, one for class's, and one for // id's ! String[] tags = new String[numElements]; ! String[] ids = new String[numElements]; ! String[] classes = new String[numElements]; for (int counter = 0; counter < numElements; counter++) { Element e = elements.elementAt(counter); AttributeSet attr = e.getAttributes(); if (counter == 0 && e.isLeaf()) { // For leafs, we use the second tier attributes.
*** 2445,2455 **** return result; } /* list of roman numerals */ ! static final char romanChars[][] = { {'i', 'v'}, {'x', 'l' }, {'c', 'd' }, {'m', '?' }, }; --- 2445,2455 ---- return result; } /* list of roman numerals */ ! static final char[][] romanChars = { {'i', 'v'}, {'x', 'l' }, {'c', 'd' }, {'m', '?' }, };
*** 3408,3417 **** /** * The HTML/CSS size model has seven slots * that one can assign sizes to. */ ! static final int sizeMapDefault[] = { 8, 10, 12, 14, 18, 24, 36 }; ! private int sizeMap[] = sizeMapDefault; private boolean w3cLengthUnits = false; } --- 3408,3417 ---- /** * The HTML/CSS size model has seven slots * that one can assign sizes to. */ ! static final int[] sizeMapDefault = { 8, 10, 12, 14, 18, 24, 36 }; ! private int[] sizeMap = sizeMapDefault; private boolean w3cLengthUnits = false; }
< prev index next >