DescriptionAdd a public Blink function to canonicalize CSS selectors and restrict their type.
This adds the ability for Blink embedders to check that a selector is
appropriate in the <content select> attribute or the planned
WebDocument::watchSelectors() API, which is currently impossible in
Javascript.
This also adds a C++ equivalent of writing a rule into a stylesheet
and then retrieving its selector from CSSStyleRule.selectorText, which
is also useful for the WebDocument::watchSelectors() API, which
reports results using the selectorText string.
BUG=172011
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=156880
Patch Set 1 : Initial #
Total comments: 10
Patch Set 2 : Fix Adam's comments #
Total comments: 2
Patch Set 3 : Add "Web" #
Messages
Total messages: 8 (0 generated)
|