public int getOriginOrder ( ) { if ( important ) { if ( origin == StyleSheet . Origin . AUTHOR ) return 4 ; else if ( origin == StyleSheet . Origin . AGENT ) return 1 ; else return 5 ; } else { if ( origin == StyleSheet . Origin . AUTHOR ) return 3 ; else if ( origin == StyleSheet . Origin . AGENT ) return 1 ; else return 2 ; } }
Computes the priority order of the declaration based on its origin and importance according to the CSS specification .