mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-05 15:28:39 +09:00
parent
470a6e4401
commit
13fcc4a046
949 changed files with 95662 additions and 444 deletions
|
|
@ -3304,14 +3304,14 @@ nsComputedDOMStyle::DoGetScrollSnapTypeY()
|
|||
return val.forget();
|
||||
}
|
||||
|
||||
already_AddRefed<CSSValue>
|
||||
nsComputedDOMStyle::DoGetScrollbarWidth()
|
||||
{
|
||||
RefPtr<nsROCSSPrimitiveValue> val = new nsROCSSPrimitiveValue;
|
||||
val->SetIdent(
|
||||
nsCSSProps::ValueToKeywordEnum(StyleUserInterface()->mScrollbarWidth,
|
||||
nsCSSProps::kScrollbarWidthKTable));
|
||||
return val.forget();
|
||||
already_AddRefed<CSSValue>
|
||||
nsComputedDOMStyle::DoGetScrollbarWidth()
|
||||
{
|
||||
RefPtr<nsROCSSPrimitiveValue> val = new nsROCSSPrimitiveValue;
|
||||
val->SetIdent(
|
||||
nsCSSProps::ValueToKeywordEnum(StyleUserInterface()->mScrollbarWidth,
|
||||
nsCSSProps::kScrollbarWidthKTable));
|
||||
return val.forget();
|
||||
}
|
||||
|
||||
already_AddRefed<CSSValue>
|
||||
|
|
@ -6647,7 +6647,14 @@ nsComputedDOMStyle::DoGetAnimationIterationCount()
|
|||
RefPtr<nsROCSSPrimitiveValue> iterationCount = new nsROCSSPrimitiveValue;
|
||||
|
||||
float f = animation->GetIterationCount();
|
||||
float inf = NS_IEEEPositiveInfinity();
|
||||
/* Need a nasty hack here to work around an optimizer bug in gcc
|
||||
4.2 on Mac, which somehow gets confused when directly comparing
|
||||
a float to the return value of NS_IEEEPositiveInfinity when
|
||||
building 32-bit builds. */
|
||||
#ifdef XP_MACOSX
|
||||
volatile
|
||||
#endif
|
||||
float inf = NS_IEEEPositiveInfinity();
|
||||
if (f == inf) {
|
||||
iterationCount->SetIdent(eCSSKeyword_infinite);
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue