dillo
3.0.5
About: dillo is a small, fast, extensible Web browser particularly suitable for older or smaller computers and embedded systems (but only limited or no support for frames, CSS, JavaScript, Java). Fossies Dox: dillo-3.0.5.tar.gz ("inofficial" and yet experimental doxygen-generated source code documentation) 
|
Go to the documentation of this file. 91 static const int CSS_LENGTH_FRAC_MAX = (1 << (32 - 15 - 1)) - 1;
92 static const int CSS_LENGTH_INT_MAX = (1 << (32 - 4)) - 1;
98 if (iv > CSS_LENGTH_INT_MAX)
99 iv = CSS_LENGTH_INT_MAX;
100 else if (iv < -CSS_LENGTH_INT_MAX)
101 iv = -CSS_LENGTH_INT_MAX;
109 if (v > CSS_LENGTH_FRAC_MAX)
110 v = CSS_LENGTH_FRAC_MAX;
111 else if (v < -CSS_LENGTH_FRAC_MAX)
112 v = -CSS_LENGTH_FRAC_MAX;
113 return ((
int) (v * (1 << 15)) & ~7 ) | t;
129 return (
float) (l >> 3);
136 return ((
float)(l & ~7)) / (1 << 15);
464 for (
int i = 0; i <
size (); i++)
470 return this == other;
476 <lout::object::ConstString, RuleList > {
479 <
lout::object::ConstString,
RuleList > (true, true, 256) {};
int specificity()
Return the specificity of the selector.
HTML document tree interface.
void insert(CssRule *rule)
A CssSelector CssPropertyList pair.
CssLength CSS_CREATE_LENGTH(float v, CssLengthType t)
int getRequiredMatchCache()
This class holds a CSS property and value pair.
CssRule * get(int i) const
Return the one element, explicitly.
CssLetterSpacingExtensions
const char * getPseudoClass()
bool match(Doctree *dt, const DoctreeNode *node, int i, Combinator comb, MatchCache *matchCache)
Return whether selector matches at a given node in the document tree.
lout::misc::SimpleVector< char * > * getClass()
void apply(CssPropertyList *props, Doctree *docTree, const DoctreeNode *node, MatchCache *matchCache) const
void setMatchCacheOffset(int mo)
void apply(CssPropertyList *props)
Merge properties into argument property list.
lout::misc::SimpleVector< struct CombinatorAndSelector > selectorList
void apply(CssPropertyList *props, Doctree *docTree, DoctreeNode *node, CssPropertyList *tagStyle, CssPropertyList *tagStyleImportant, CssPropertyList *nonCssHints)
Apply a CSS context to a property list.
int size() const
Return the number of elements put into this vector.
RuleList elementTable[ntags]
int hashValue()
Return a hash value for the object.
Typed version of container::untyped::HashTable.
This is the base class for many other classes, which defines very common virtual methods.
static CssStyleSheet userAgentSheet
HashTable(bool ownerOfKeys, bool ownerOfValues, int tableSize=251)
int getRequiredMatchCache()
int specificity()
Return the specificity of the simple selector.
bool match(Doctree *dt, const DoctreeNode *node, MatchCache *matchCache)
bool match(const DoctreeNode *node)
Return whether simple selector matches at a given node of the document tree.
CssSimpleSelector * top()
void set(CssPropertyName name, CssValueType type, CssPropertyValue value)
Set property to a given name and type.
void apply(CssPropertyList *props, Doctree *docTree, const DoctreeNode *node, MatchCache *matchCache) const
Apply a stylesheet to a property list.
CssLengthType CSS_LENGTH_TYPE(CssLength l)
void addSimpleSelector(Combinator c)
CssStyleSheet sheet[CSS_PRIMARY_USER_IMPORTANT+1]
SimpleVector(int initAlloc=1)
CssPropertyList(bool ownerOfStrings=false)
CssSimpleSelector * selector
void setSelect(SelectType t, const char *v)
A list of CssProperty objects.
CssRule(CssSelector *selector, CssPropertyList *props, int pos)
lout::misc::SimpleVector< char * > klass
void addRule(CssRule *rule)
Insert a rule into CssStyleSheet.
bool equals(lout::object::Object *other)
Returns, whether two objects are equal.
CssBackgroundPosition * posVal
void addRule(CssSelector *sel, CssPropertyList *props, CssPrimaryOrder order)
Simple (simpler than container::untyped::Vector and container::typed::Vector) template based vector.
float CSS_LENGTH_VALUE(CssLength l)