khtml Namespace Reference
Classes | |
class | RenderStyleDeclarationImpl |
class | StyleSelector |
this class selects a RenderStyle for a given Element based on the collection of stylesheets it contains. More... | |
class | CSSStyleSelector |
the StyleSelector implementation for CSS. More... | |
class | CSSOrderedProperty |
class | CSSOrderedPropertyList |
class | CSSOrderedRule |
class | CSSStyleSelectorList |
class | MouseEvent |
class | MousePressEvent |
class | MouseDoubleClickEvent |
class | MouseMoveEvent |
class | MouseReleaseEvent |
class | DrawContentsEvent |
Enumerations | |
enum | PseudoState { PseudoUnknown, PseudoNone, PseudoLink, PseudoVisited } |
enum | Source { Default = 0, NonCSSHint = 1, User = 2, Author = 3, Inline = 4, AuthorImportant = 5, InlineImportant = 6, UserImportant = 7 } |
enum | ObjectAdvanceState { LeftObject = 0x01, AdvancedToSibling = 0x02, EnteredObject = 0x04 } |
enum | ObjectTraversalState { OutsideDescending, InsideDescending, InsideAscending, OutsideAscending } |
Functions | |
DOMString | stringForListStyleType (EListStyleType type) |
DOM::DOMString | stringForListStyleType (khtml::EListStyleType type) |
DOMString | parseURL (const DOMString &url) |
static void | bubbleSort (CSSOrderedProperty **b, CSSOrderedProperty **e) |
static void | cleanpath (QString &path) |
static PseudoState | checkPseudoState (const CSSStyleSelector::Encodedurl &encodedurl, DOM::ElementImpl *e) |
static bool | matchNth (int count, const QString &nth) |
static void | precomputeAttributeDependenciesAux (DOM::DocumentImpl *doc, DOM::CSSSelector *sel, bool isAncestor, bool isSubject) |
static Length | convertToLength (CSSPrimitiveValueImpl *primitiveValue, RenderStyle *style, QPaintDeviceMetrics *paintDeviceMetrics, bool *ok=0) |
static QColor | colorForCSSValue (int css_value) |
static int | nextFontSize (const QValueVector< int > &a, int v, bool smaller) |
static RenderObject * | traverseRenderObjects (RenderObject *obj, ObjectTraversalState &trav, bool toBegin, RenderObject *base, int &state) |
static RenderObject * | renderObjectBelow (RenderObject *obj, ObjectTraversalState &trav, RenderObject *base) |
static RenderObject * | renderObjectAbove (RenderObject *obj, ObjectTraversalState &trav, RenderObject *base) |
static bool | isIndicatedInlineBox (InlineBox *box) |
static bool | isIndicatedFlow (RenderObject *r) |
static RenderObject * | advanceObject (RenderObject *r, ObjectTraversalState &trav, bool toBegin, RenderObject *base, int &state) |
static bool | isUnsuitable (RenderObject *r, ObjectTraversalState trav) |
static RenderObject * | advanceSuitableObject (RenderObject *r, ObjectTraversalState &trav, bool toBegin, RenderObject *base, int &state) |
static NodeImpl * | nextLeafNode (NodeImpl *r, NodeImpl *baseElem) |
void | mapDOMPosToRenderPos (NodeImpl *node, long offset, RenderObject *&r, long &r_ofs, bool &outside, bool &outsideEnd) |
void | mapRenderPosToDOMPos (RenderObject *r, long r_ofs, bool outside, bool outsideEnd, NodeImpl *&node, long &offset) |
static void | ensureLeafNode (NodeImpl *&node, NodeImpl *base) |
static void | mapRenderPosToTraversalState (bool outside, bool atEnd, bool toBegin, ObjectTraversalState &trav) |
static void | mapTraversalStateToRenderPos (ObjectTraversalState trav, bool toBegin, bool &outside, bool &atEnd) |
static RenderObject * | findRenderer (NodeImpl *&node, long offset, RenderObject *base, long &r_ofs, bool &outside, bool &outsideEnd) |
static ElementImpl * | determineBaseElement (NodeImpl *caretNode) |
InlineFlowBox * | seekBaseFlowBox (InlineBox *b, RenderObject *base=0) |
bool | isBlockRenderReplaced (RenderObject *r) |
static CaretBoxLine * | findCaretBoxLine (DOM::NodeImpl *node, long offset, CaretBoxLineDeleter *cblDeleter, RenderObject *base, long &r_ofs, CaretBoxIterator &caretBoxIt) |
static RenderTable * | findTableUpTo (RenderObject *r, RenderFlow *cb) |
static bool | isDescendant (RenderObject *r, RenderObject *cb) |
static bool | containsEditableElement (KHTMLPart *part, RenderBlock *cb, RenderTable *&table, bool fromEnd=false) |
static bool | containsEditableChildElement (KHTMLPart *part, RenderBlock *cb, RenderTable *&table, bool fromEnd, RenderObject *start) |
static bool | isCaretBoxEmpty (CaretBox *box) |
static RenderTableCell * | findNearestTableCellInRow (KHTMLPart *part, int x, RenderTableSection::RowStruct *row, bool fromEnd) |
static RenderTableCell * | findNearestTableCell (KHTMLPart *part, int x, TableRowIterator &it, bool fromEnd) |
static RenderObject * | commonAncestorTableSectionOrCell (RenderObject *r1, RenderObject *r2) |
static int | findRowInSection (RenderTableSection *section, RenderTableCell *cell, RenderTableSection::RowStruct *&row, RenderTableCell *&directCell) |
static RenderTable * | findFirstDescendantTable (RenderObject *leaf, RenderBlock *block) |
static RenderTableCell * | containingTableCell (RenderObject *r) |
static CaretBox * | nearestCaretBox (LineIterator &it, CaretViewContext *cv, int &x, int &absx, int &absy) |
static void | moveItToNextWord (EditableCharacterIterator &it) |
static void | moveItToPrevWord (EditableCharacterIterator &it) |
static void | moveIteratorByPage (LinearDocument &ld, ErgonomicEditableLineIterator &it, int mindist, bool next) |
void | applyRule (DOM::CSSProperty *prop) |
Variables | |
static PseudoState | pseudoState |
static const colorMap | cmap [] |
const char *const | wmgroup = "WM" |
const char *const | generalgroup = "General" |
static const uiColors | uimap [] |
Enumeration Type Documentation
|
Flags representing the type of advance that has been made.
Definition at line 35 of file khtml_caret.cpp. |
|
All possible states that may occur during render object traversal.
Definition at line 47 of file khtml_caret.cpp. |
Function Documentation
|
Advances to the next render object, taking into account the current traversal state.
Definition at line 187 of file khtml_caret.cpp. |
|
Advances to the next render object, taking into account the current traversal state, but skipping render objects which are not suitable for having placed the caret into them.
Definition at line 305 of file khtml_caret.cpp. |
|
returns the nearest common ancestor of two objects that is a table cell, a table section, or 0 if not inside a common table.
If Definition at line 2161 of file khtml_caret.cpp. |
|
looks for the table cell the given object
Definition at line 2257 of file khtml_caret.cpp. |
|
checks whether the given block contains at least one editable child element, beginning with but excluding Warning: This function has linear complexity, and therefore is expensive. Use it sparingly, and cache the result.
Definition at line 1188 of file khtml_caret.cpp. |
|
checks whether the given block contains at least one editable element. Warning: This function has linear complexity, and therefore is expensive. Use it sparingly, and cache the result.
Definition at line 1131 of file khtml_caret.cpp. |
|
returns a suitable base element
Definition at line 622 of file khtml_caret.cpp. |
|
Make sure the given node is a leaf node.
Definition at line 530 of file khtml_caret.cpp. |
|
determines the caret line box that contains the given position. If the node does not map to a render object, the function will snap to the next suitable render object following it.
Definition at line 964 of file khtml_caret.cpp. |
|
finds the table that is the first direct or indirect descendant of
Definition at line 2244 of file khtml_caret.cpp. |
|
finds the cell corresponding to absolute x-coordinate If there is no direct cell, or the cell is not accessible, the function will return the nearest suitable cell.
Definition at line 2071 of file khtml_caret.cpp. |
|
finds the nearest editable cell around the given absolute x-coordinate It will dive into nested tables as necessary to provide seamless navigation.
If the cell at
Definition at line 2099 of file khtml_caret.cpp. |
|
Finds the next node that has a renderer.
Note that if the initial
Definition at line 584 of file khtml_caret.cpp. |
|
Finds the row that contains the given cell, directly, or indirectly.
Definition at line 2210 of file khtml_caret.cpp. |
|
finds the innermost table object
Definition at line 1107 of file khtml_caret.cpp. |
|
determines whether the given element is a block level replaced element.
Definition at line 943 of file khtml_caret.cpp. |
|
returns true when the given caret box is empty, i. e. should not take place in caret movement. Definition at line 1760 of file khtml_caret.cpp. |
|
checks whether
Definition at line 1115 of file khtml_caret.cpp. |
|
Checks whether the given render object matches the IndicatedFlows policy.
Definition at line 162 of file khtml_caret.cpp. |
|
Checks whether the given inline box matches the IndicatedFlows policy.
Definition at line 144 of file khtml_caret.cpp. |
|
Check whether the current render object is unsuitable in caret mode handling. Some render objects cannot be handled correctly in caret mode. These objects are therefore considered to be unsuitable. The null object is suitable, as it denotes reaching the end.
Definition at line 283 of file khtml_caret.cpp. |
|
Maps a DOM Range position to the corresponding caret position. The offset boundary is not checked for validity.
Definition at line 411 of file khtml_caret.cpp. |
|
Maps a caret position to the corresponding DOM Range position.
Definition at line 483 of file khtml_caret.cpp. |
|
Converts a caret position to its respective object traversal state.
Definition at line 541 of file khtml_caret.cpp. |
|
Converts a traversal state to its respective caret position.
Definition at line 557 of file khtml_caret.cpp. |
|
moves the iterator by one page.
Definition at line 2592 of file khtml_caret.cpp. |
|
moves the given iterator to the beginning of the next word. If the end is reached, the iterator will be positioned there.
Definition at line 2513 of file khtml_caret.cpp. |
|
moves the given iterator to the beginning of the previous word. If the beginning is reached, the iterator will be positioned there.
Definition at line 2548 of file khtml_caret.cpp. |
|
seeks the caret box which contains or is the nearest to
Definition at line 2448 of file khtml_caret.cpp. |
|
Returns the next leaf node. Using this function delivers leaf nodes as if the whole DOM tree were a linear chain of its leaf nodes.
Definition at line 327 of file khtml_caret.cpp. |
|
Like RenderObject::objectAbove, but confined to stay within
Definition at line 125 of file khtml_caret.cpp. |
|
Like RenderObject::objectBelow, but confined to stay within
Definition at line 105 of file khtml_caret.cpp. |
|
seeks the root line box that is the parent of the given inline box.
Definition at line 931 of file khtml_caret.cpp. |
|
Traverses the render object tree in a fine granularity.
Definition at line 60 of file khtml_caret.cpp. |
Variable Documentation
|
Initial value: { { CSS_VAL_AQUA, 0xFF00FFFF }, { CSS_VAL_BLACK, 0xFF000000 }, { CSS_VAL_BLUE, 0xFF0000FF }, { CSS_VAL_CRIMSON, 0xFFDC143C }, { CSS_VAL_FUCHSIA, 0xFFFF00FF }, { CSS_VAL_GRAY, 0xFF808080 }, { CSS_VAL_GREEN, 0xFF008000 }, { CSS_VAL_INDIGO, 0xFF4B0082 }, { CSS_VAL_LIME, 0xFF00FF00 }, { CSS_VAL_MAROON, 0xFF800000 }, { CSS_VAL_NAVY, 0xFF000080 }, { CSS_VAL_OLIVE, 0xFF808000 }, { CSS_VAL_ORANGE, 0xFFFFA500 }, { CSS_VAL_PURPLE, 0xFF800080 }, { CSS_VAL_RED, 0xFFFF0000 }, { CSS_VAL_SILVER, 0xFFC0C0C0 }, { CSS_VAL_TEAL, 0xFF008080 }, { CSS_VAL_WHITE, 0xFFFFFFFF }, { CSS_VAL_YELLOW, 0xFFFFFF00 }, { CSS_VAL_INVERT, invertedColor }, { CSS_VAL_TRANSPARENT, transparentColor }, { CSS_VAL_GREY, 0xff808080 }, { 0, 0 } } Definition at line 1929 of file cssstyleselector.cpp. |