Page Speed Optimization Libraries  1.7.30.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions
net_instaweb::SplitHtmlState Class Reference

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

#include "split_html_config.h"

List of all members.

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:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines