NetSurf
Data Fields
html_content Struct Reference

Data specific to CONTENT_HTML. More...

#include <private.h>

Collaboration diagram for html_content:
[legend]

Data Fields

struct content base
 
dom_hubbub_parser * parser
 Parser object handle. More...
 
bool parse_completed
 Whether the parse has been completed. More...
 
bool conversion_begun
 Whether or not the conversion has begun. More...
 
dom_document * document
 Document tree. More...
 
dom_document_quirks_mode quirks
 Quirkyness of document. More...
 
char * encoding
 Encoding of source, NULL if unknown. More...
 
dom_hubbub_encoding_source encoding_source
 Source of encoding information. More...
 
struct nsurlbase_url
 Base URL (may be a copy of content->url). More...
 
char * base_target
 Base target. More...
 
bool aborted
 Content has been aborted in the LOADING state. More...
 
bool refresh
 Whether a meta refresh has been handled. More...
 
bool reflowing
 Whether a layout (reflow) is in progress. More...
 
bool had_initial_layout
 Whether an initial layout has been done. More...
 
bool enable_scripting
 Whether scripts are enabled for this content. More...
 
dom_node * title
 
int * bctx
 A talloc context purely for the render box tree. More...
 
void * box_conversion_context
 A context pointer for the box conversion, NULL if no conversion is in progress. More...
 
struct boxlayout
 Box tree, or NULL. More...
 
colour background_colour
 Document background colour. More...
 
const struct gui_layout_tablefont_func
 Font callback table. More...
 
unsigned int scripts_count
 Number of entries in scripts. More...
 
struct html_scriptscripts
 Scripts. More...
 
struct jsthreadjsthread
 javascript thread in use More...
 
unsigned int stylesheet_count
 Number of entries in stylesheet_content. More...
 
struct html_stylesheetstylesheets
 Stylesheets. More...
 
css_select_ctx * select_ctx
 Style selection media specification. More...
 
css_media media
 
css_unit_ctx unit_len_ctx
 CSS length conversion context for document. More...
 
lwc_string * universal
 
unsigned int num_objects
 Number of entries in object_list. More...
 
struct content_html_objectobject_list
 List of objects. More...
 
struct formforms
 Forms, in reverse order to document. More...
 
struct imagemap ** imagemaps
 Hash table of imagemaps. More...
 
struct browser_windowbw
 Browser window containing this document, or NULL if not open. More...
 
struct content_html_framesframeset
 Frameset information. More...
 
struct content_html_iframeiframe
 Inline frame information. More...
 
struct html_contentpage
 Content of type CONTENT_HTML containing this, or NULL if not an object within a page. More...
 
html_drag_type drag_type
 Current drag type. More...
 
union html_drag_owner drag_owner
 Widget capturing all mouse events. More...
 
html_selection_type selection_type
 Current selection state. More...
 
union html_selection_owner selection_owner
 Current selection owner. More...
 
html_focus_type focus_type
 Current input focus target type. More...
 
union html_focus_owner focus_owner
 Current input focus target. More...
 
struct selectionsel
 HTML content's own text selection object. More...
 
struct form_controlvisible_select_menu
 Open core-handled form SELECT menu, or NULL if none currently open. More...
 

Detailed Description

Data specific to CONTENT_HTML.

Definition at line 93 of file private.h.

Field Documentation

◆ aborted

bool html_content::aborted

Content has been aborted in the LOADING state.

Definition at line 116 of file private.h.

Referenced by html_begin_conversion(), html_box_convert_done(), html_create_html_data(), html_fetch_object(), html_finish_conversion(), and html_stop().

◆ background_colour

colour html_content::background_colour

Document background colour.

Definition at line 142 of file private.h.

Referenced by html_create_html_data(), and html_redraw().

◆ base

struct content html_content::base

◆ base_target

char* html_content::base_target

Base target.

Definition at line 113 of file private.h.

Referenced by html_create_html_data(), html_destroy(), html_get_base_target(), and html_process_inserted_base().

◆ base_url

struct nsurl* html_content::base_url

◆ bctx

int* html_content::bctx

◆ box_conversion_context

void* html_content::box_conversion_context

A context pointer for the box conversion, NULL if no conversion is in progress.

Definition at line 138 of file private.h.

Referenced by html_box_convert_done(), html_destroy(), and html_finish_conversion().

◆ bw

struct browser_window* html_content::bw

Browser window containing this document, or NULL if not open.

Definition at line 177 of file private.h.

Referenced by box_textarea_callback(), box_textarea_keypress(), default_mouse_action(), form_select_menu_scroll_callback(), html_close(), html_create_html_data(), html_object_callback(), and html_open().

◆ conversion_begun

bool html_content::conversion_begun

Whether or not the conversion has begun.

Definition at line 98 of file private.h.

Referenced by html_begin_conversion(), and html_create_html_data().

◆ document

dom_document* html_content::document

◆ drag_owner

union html_drag_owner html_content::drag_owner

◆ drag_type

html_drag_type html_content::drag_type

Current drag type.

Definition at line 190 of file private.h.

Referenced by html_create_html_data(), html_mouse_action(), html_open(), and html_set_drag_type().

◆ enable_scripting

bool html_content::enable_scripting

Whether scripts are enabled for this content.

Definition at line 128 of file private.h.

Referenced by dom_default_action_DOMNodeInserted_cb(), dom_SCRIPT_showed_up(), html_create_html_data(), and html_process_encoding_change().

◆ encoding

char* html_content::encoding

◆ encoding_source

dom_hubbub_encoding_source html_content::encoding_source

Source of encoding information.

Definition at line 108 of file private.h.

Referenced by html_begin_conversion(), html_create_html_data(), html_encoding(), and html_process_encoding_change().

◆ focus_owner

union html_focus_owner html_content::focus_owner

Current input focus target.

Definition at line 202 of file private.h.

Referenced by html_create_html_data(), html_keypress(), and html_set_focus().

◆ focus_type

html_focus_type html_content::focus_type

Current input focus target type.

Definition at line 200 of file private.h.

Referenced by default_mouse_action(), html_create_html_data(), html_keypress(), and html_set_focus().

◆ font_func

const struct gui_layout_table* html_content::font_func

Font callback table.

Definition at line 145 of file private.h.

Referenced by html_create_html_data().

◆ forms

struct form* html_content::forms

Forms, in reverse order to document.

Definition at line 172 of file private.h.

Referenced by html_begin_conversion(), html_create_html_data(), and html_destroy().

◆ frameset

struct content_html_frames* html_content::frameset

Frameset information.

Definition at line 180 of file private.h.

Referenced by html_box_convert_done(), html_create_html_data(), html_destroy(), and html_get_frameset().

◆ had_initial_layout

bool html_content::had_initial_layout

Whether an initial layout has been done.

Definition at line 125 of file private.h.

Referenced by html_object_callback(), and html_reformat().

◆ iframe

struct content_html_iframe* html_content::iframe

Inline frame information.

Definition at line 183 of file private.h.

Referenced by html_create_html_data(), html_destroy(), and html_get_iframe().

◆ imagemaps

struct imagemap** html_content::imagemaps

Hash table of imagemaps.

Definition at line 174 of file private.h.

Referenced by html_create_html_data(), imagemap_add(), imagemap_create(), imagemap_destroy(), imagemap_dump(), and imagemap_get().

◆ jsthread

struct jsthread* html_content::jsthread

◆ layout

struct box* html_content::layout

◆ media

css_media html_content::media

Definition at line 161 of file private.h.

Referenced by box_get_style(), html_create_html_data(), html_destroy(), and html_get_dimensions().

◆ num_objects

unsigned int html_content::num_objects

Number of entries in object_list.

Definition at line 168 of file private.h.

Referenced by html_create_html_data(), html_fetch_object(), and html_get_objects().

◆ object_list

struct content_html_object* html_content::object_list

◆ page

struct html_content* html_content::page

Content of type CONTENT_HTML containing this, or NULL if not an object within a page.

Definition at line 187 of file private.h.

Referenced by html_create_html_data(), html_open(), and html_replace_object().

◆ parse_completed

bool html_content::parse_completed

Whether the parse has been completed.

Definition at line 97 of file private.h.

Referenced by exec_src_script(), html_begin_conversion(), and html_create_html_data().

◆ parser

dom_hubbub_parser* html_content::parser

◆ quirks

dom_document_quirks_mode html_content::quirks

◆ reflowing

bool html_content::reflowing

Whether a layout (reflow) is in progress.

Definition at line 122 of file private.h.

Referenced by box_textarea_callback(), html_create_html_data(), html_overflow_scroll_callback(), and html_reformat().

◆ refresh

bool html_content::refresh

Whether a meta refresh has been handled.

Definition at line 119 of file private.h.

Referenced by html_create_html_data(), and html_process_inserted_meta().

◆ scripts

struct html_script* html_content::scripts

◆ scripts_count

unsigned int html_content::scripts_count

◆ sel

struct selection* html_content::sel

◆ select_ctx

css_select_ctx* html_content::select_ctx

◆ selection_owner

union html_selection_owner html_content::selection_owner

◆ selection_type

html_selection_type html_content::selection_type

◆ stylesheet_count

unsigned int html_content::stylesheet_count

◆ stylesheets

struct html_stylesheet* html_content::stylesheets

◆ title

dom_node* html_content::title

◆ unit_len_ctx

css_unit_ctx html_content::unit_len_ctx

◆ universal

lwc_string* html_content::universal

◆ visible_select_menu

struct form_control* html_content::visible_select_menu

Open core-handled form SELECT menu, or NULL if none currently open.

Definition at line 211 of file private.h.

Referenced by form_select_menu_callback(), gadget_mouse_action(), html_mouse_action(), html_redraw(), and mouse_action_select_menu().


The documentation for this struct was generated from the following file: