Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(113)

Issue 2046463003: Resubmission of sashab's patch: Make CSSComputedStyledeclaration::getPropertyCSSValue return const (Closed)

Created:
4 years, 6 months ago by meade_UTC10
Modified:
4 years, 6 months ago
Reviewers:
haraken, Timothy Loh, Yuki
CC:
chromium-reviews, caseq+blink_chromium.org, blink-reviews-style_chromium.org, blink-reviews-css, devtools-reviews_chromium.org, lushnikov+blink_chromium.org, pfeldman+blink_chromium.org, dglazkov+blink, apavlov+blink_chromium.org, darktears, blink-reviews, blink-reviews-bindings_chromium.org, sergeyv+blink_chromium.org, kozyatinskiy+blink_chromium.org, rwlbuis, sashab
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Resubmission 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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+80 lines, -76 lines) Patch
M third_party/WebKit/Source/bindings/core/v8/custom/V8CSSStyleDeclarationCustom.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/css/CSSComputedStyleDeclaration.h View 2 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/css/CSSComputedStyleDeclaration.cpp View 8 chunks +8 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/core/css/CSSStyleDeclaration.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/css/CSSValueList.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/css/CSSValueList.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/css/PropertySetCSSStyleDeclaration.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/css/PropertySetCSSStyleDeclaration.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/css/cssom/ComputedStylePropertyMap.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/editing/EditingStyle.cpp View 29 chunks +53 lines, -49 lines 0 comments Download
M third_party/WebKit/Source/core/editing/commands/ApplyStyleCommand.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/inspector/LayoutEditor.h View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/LayoutEditor.cpp View 3 chunks +5 lines, -5 lines 0 comments Download

Messages

Total messages: 11 (5 generated)
meade_UTC10
Hi Haraken, Yuki, Tim, This is a re-land of Sasha's patch from yesterday that conflicted ...
4 years, 6 months ago (2016-06-07 01:07:51 UTC) #3
haraken
LGTM
4 years, 6 months ago (2016-06-07 01:19:53 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2046463003/20001
4 years, 6 months ago (2016-06-07 04:34:32 UTC) #6
Yuki
lgtm
4 years, 6 months ago (2016-06-07 05:19:10 UTC) #7
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 6 months ago (2016-06-07 05:29:45 UTC) #9
commit-bot: I haz the power
4 years, 6 months ago (2016-06-07 05:32:00 UTC) #11
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/897d431a873f7369215769d55b83257b78b28671
Cr-Commit-Position: refs/heads/master@{#398235}

Powered by Google App Engine
This is Rietveld 408576698