[Webkit-unassigned] [Bug 128958] Add support for the isolation property
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Feb 18 10:28:33 PST 2014
https://bugs.webkit.org/show_bug.cgi?id=128958
Andreas Kling <akling at apple.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #224479|review? |review-
Flag| |
--- Comment #3 from Andreas Kling <akling at apple.com> 2014-02-18 10:25:44 PST ---
(From update of attachment 224479)
View in context: https://bugs.webkit.org/attachment.cgi?id=224479&action=review
> Source/WebCore/css/CSSPrimitiveValueMappings.h:4158
> +template<> inline CSSPrimitiveValue::CSSPrimitiveValue(Isolation i)
Short variable names like "i" are not consistent with WebKit style. We tend to prefer e.g like "isolation".
> Source/WebCore/css/CSSPrimitiveValueMappings.h:4169
> + switch (i) {
> + case IsolationAuto:
> + m_value.valueID = CSSValueAuto;
> + break;
> + case IsolationIsolate:
> + m_value.valueID = CSSValueIsolate;
> + break;
> + }
We should have a default case here with ASSERT_NOT_REACHED(), just like we do when converting in the other direction.
> Source/WebCore/rendering/style/RenderStyle.h:974
> + void setIsolation(Isolation v) { rareNonInheritedData.access()->m_isolation = v; }
Using rareNonInheritedData.access() like this will force the RenderStyle to create its own unique copy of the StyleRareNonInheritedData. If you look at other setters in this file, they use a macro (SET_VAR) that first checks if the value being written is identical to the existing one, and avoids a copy in that case.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list