|
From: CVS C. to T. <the...@li...> - 2012-03-21 21:34:19
|
Revision: 688
http://themis.svn.sourceforge.net/themis/?rev=688&view=rev
Author: mark_hellegers
Date: 2012-03-21 21:34:13 +0000 (Wed, 21 Mar 2012)
Log Message:
-----------
Added support for font-family: monospace (for TT and PRE elements at the moment).
Modified Paths:
--------------
trunk/themis/modules/CSSParser/html4.css
trunk/themis/modules/CSSRenderer/CSSView.cpp
Modified: trunk/themis/modules/CSSParser/html4.css
===================================================================
--- trunk/themis/modules/CSSParser/html4.css 2012-03-17 19:38:23 UTC (rev 687)
+++ trunk/themis/modules/CSSParser/html4.css 2012-03-21 21:34:13 UTC (rev 688)
@@ -20,7 +20,13 @@
SPAN { display: inline }
STRONG { display: inline;
font-weight: bold }
+STRIKE { display: inline}
+S { display: inline}
CODE { display: inline }
+TT { display: inline;
+ font-family: monospace}
+PRE { display: inline;
+ font-family: monospace}
SCRIPT { display: none }
NOSCRIPT { display: none }
STYLE { display: none }
Modified: trunk/themis/modules/CSSRenderer/CSSView.cpp
===================================================================
--- trunk/themis/modules/CSSRenderer/CSSView.cpp 2012-03-17 19:38:23 UTC (rev 687)
+++ trunk/themis/modules/CSSRenderer/CSSView.cpp 2012-03-21 21:34:13 UTC (rev 688)
@@ -487,6 +487,18 @@
}
}
}
+ else if (propertyName == "font-family") {
+ CSSPrimitiveValuePtr primitiveValue = shared_static_cast<CSSPrimitiveValue>(value);
+ if (primitiveValue.get()) {
+ TDOMString valueString = primitiveValue->getStringValue();
+ if (valueString == "monospace") {
+ if (mFont == NULL) {
+ mFont = new BFont(be_fixed_font);
+ mInheritedFont = false;
+ }
+ }
+ }
+ }
}
}
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|