Page Speed Optimization Libraries
1.9.32.2
|
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) |
Represents the filter state necessary to perform the split.
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