Page Speed Optimization Libraries  1.9.32.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | List of all members
net_instaweb::SplitHtmlState Class Reference

Represents the filter state necessary to perform the split. More...

#include "split_html_config.h"

Public Member Functions

 SplitHtmlState (const SplitHtmlConfig *config)
 
std::vector< int > * num_children_stack ()
 
bool ElementMatchesXpath (const HtmlElement *element, const std::vector< XpathUnit > &xpath_units) const
 
GoogleString MatchPanelIdForElement (HtmlElement *element) const
 Returns the panel id of the panel whose xpath matched with element.
 
bool IsElementSiblingOfCurrentPanel (HtmlElement *element) const
 
bool IsElementParentOfCurrentPanel (HtmlElement *element) const
 Returns true if element is the parent of current panel.
 
bool IsEndMarkerForCurrentPanel (HtmlElement *element) const
 
const HtmlElement * current_panel_parent_element () const
 
void set_current_panel_parent_element (HtmlElement *element)
 
const GoogleString & current_panel_id () const
 
void set_current_panel_id (const GoogleString &panel_id)
 
void UpdateNumChildrenStack (const HtmlElement *element)
 

Detailed Description

Represents the filter state necessary to perform the split.

Member Function Documentation

bool net_instaweb::SplitHtmlState::IsElementSiblingOfCurrentPanel ( HtmlElement *  element) const

Returns true if element is sibling of the current start element on top of stack.

bool net_instaweb::SplitHtmlState::IsEndMarkerForCurrentPanel ( HtmlElement *  element) const

Returns true if element matches with the end_marker for panel corresponding to panel_id


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