classpath-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cp-patches] Patch: CSS Parser


From: Lillian Angel
Subject: [cp-patches] Patch: CSS Parser
Date: Tue, 20 Dec 2005 13:55:30 -0500

Implemented some more parts of the CSS parser. I added some more
comments in to help with implementation later. I have reached a point
where I can no longer properly implement the functions since I am
currently unable to throughly test. I will come back to this and finish
the implementation soon.

2005-12-19  Lillian Angel  <address@hidden>

        * javax/swing/text/html/CSSParser.java
        (CSSParser): Initialized tokenBuffer with some
        arbitrary size. This makes append much more efficent since
        a new array will not been created with each append.
        (append): Fixed append to create a new larger array if
        needed.
        (nextToken): Finished implemented. Should decrease the
        tokenBufferLength if an identifier was read. This way " and '
        are not added to the buffer.
        (parse): Implemented to call the appropriate parsing function
        based on parameter.
        (getNextStatement): Implemented.
        (parseAtRule): Added some helpful comments for implementing.
        (parseRuleSet): Likewise.
        (parseIdentifiers): Likewise.
        (readComment): Likewise.
        * javax/swing/text/html/StyleSheet.java
        (addRule): Implemented.
        (loadRules): Implemented.
        (importStyleSheet): Removed implementation for now. It causes
        a loop. Added FIXME
        (startRule): Implemented.
        (handleProperty): Implemented.
        (addSelector): Implemented.

Attachment: patch.diff
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]