DescriptionResubmission of sashab's patch: Make CSSComputedStyledeclaration::getPropertyCSSValue return const
Make CSSComputedStyledeclaration::getPropertyCSSValue() return a const
CSSValue* instead of a regular CSSValue*. This required changing
CSSStyleDeclaration::getPropertyCSSValueInternal() return a const
CSSValue* as well, and marking CSSValueList::copy() as a const method
(which it already was, it was just missing the const modifier). This is
pre-work for making CSSValueList store const CSSValues.
This patch is mostly mechanical changes, but does contain one logic
change: the static method mergeTextDecorationValues in EditingStyle
needs to be changed since it modifies a CSSValueList that points inside
the mutable style. Instead, the function is changed to take two
CSSValueLists and return a new one, and the callsite is changed to
replace the old CSSValueList with the new one in the style rather than
modifying the old CSSValueList in-place.
Original patch is here:
https://codereview.chromium.org/2034013002
BUG=526586
Committed: https://crrev.com/897d431a873f7369215769d55b83257b78b28671
Cr-Commit-Position: refs/heads/master@{#398235}
Patch Set 1 #Patch Set 2 : Add missing const #Messages
Total messages: 11 (5 generated)
|