mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-09 01:08:39 +09:00
Issue #2490 - Part 7: Push the nsIDOMCSSRule implementation up to css::Rule.
This commit is contained in:
parent
8c871f602e
commit
fce04b3591
8 changed files with 171 additions and 435 deletions
|
|
@ -1227,30 +1227,10 @@ DOMCSSDeclarationImpl::DocToUpdate()
|
|||
namespace mozilla {
|
||||
namespace css {
|
||||
|
||||
NS_IMETHODIMP
|
||||
StyleRule::GetType(uint16_t* aType)
|
||||
uint16_t
|
||||
StyleRule::Type() const
|
||||
{
|
||||
*aType = nsIDOMCSSRule::STYLE_RULE;
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
StyleRule::GetParentStyleSheet(nsIDOMCSSStyleSheet** aSheet)
|
||||
{
|
||||
return Rule::GetParentStyleSheet(aSheet);
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
StyleRule::GetParentRule(nsIDOMCSSRule** aParentRule)
|
||||
{
|
||||
return Rule::GetParentRule(aParentRule);
|
||||
}
|
||||
|
||||
css::Rule*
|
||||
StyleRule::GetCSSRule()
|
||||
{
|
||||
return this;
|
||||
return nsIDOMCSSRule::STYLE_RULE;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
|
|
@ -1435,8 +1415,8 @@ StyleRule::List(FILE* out, int32_t aIndent) const
|
|||
}
|
||||
#endif
|
||||
|
||||
NS_IMETHODIMP
|
||||
StyleRule::GetCssText(nsAString& aCssText)
|
||||
void
|
||||
StyleRule::GetCssTextImpl(nsAString& aCssText) const
|
||||
{
|
||||
if (mSelector) {
|
||||
mSelector->ToString(aCssText, GetStyleSheet());
|
||||
|
|
@ -1452,14 +1432,6 @@ StyleRule::GetCssText(nsAString& aCssText)
|
|||
}
|
||||
aCssText.Append(char16_t(' '));
|
||||
aCssText.Append(char16_t('}'));
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
StyleRule::SetCssText(const nsAString& aCssText)
|
||||
{
|
||||
// XXX TBI - need to re-parse rule & declaration
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue