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

Issue 2042113002: Revert of Make CSSComputedStyledeclaration::getPropertyCSSValue return const (Closed)

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

Description

Revert of Make CSSComputedStyledeclaration::getPropertyCSSValue return const (patchset #3 id:40001 of https://codereview.chromium.org/2034013002/ ) Reason for revert: """ ../../third_party/WebKit/Source/core/css/cssom/ComputedStylePropertyMap.cpp:14:15: error: cannot initialize a variable of type 'blink::CSSValue *' with an rvalue of type 'const blink::CSSValue *' CSSValue* cssValue = m_computedStyleDeclaration->getPropertyCSSValueInternal(propertyID); """ https://build.chromium.org/p/chromium.memory.fyi/builders/Chromium%20Linux%20TSan%20Builder/builds/23734/steps/compile/logs/stdio Original issue's description: > 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. > > BUG=526586 > > Committed: https://crrev.com/5896ec297d9240b691e7f70a239498b795531dc1 > Cr-Commit-Position: refs/heads/master@{#398151} TBR=haraken@chromium.org,timloh@chromium.org,yukishiino@chromium.org,sashab@chromium.org # Skipping CQ checks because original CL landed less than 1 days ago. NOPRESUBMIT=true NOTREECHECKS=true NOTRY=true BUG=526586 Committed: https://crrev.com/41b2e7dad0fb637ebcf9dbd6c0e60d4bfbde48ee Cr-Commit-Position: refs/heads/master@{#398156}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+78 lines, -82 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/editing/EditingStyle.cpp View 29 chunks +52 lines, -56 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: 9 (3 generated)
erikchen
Created Revert of Make CSSComputedStyledeclaration::getPropertyCSSValue return const
4 years, 6 months ago (2016-06-06 23:11:16 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2042113002/1
4 years, 6 months ago (2016-06-06 23:12:01 UTC) #3
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 6 months ago (2016-06-06 23:12:52 UTC) #5
commit-bot: I haz the power
Patchset 1 (id:??) landed as https://crrev.com/41b2e7dad0fb637ebcf9dbd6c0e60d4bfbde48ee Cr-Commit-Position: refs/heads/master@{#398156}
4 years, 6 months ago (2016-06-06 23:14:08 UTC) #7
haraken
LGTM
4 years, 6 months ago (2016-06-06 23:17:29 UTC) #8
Yuki
4 years, 6 months ago (2016-06-07 05:18:15 UTC) #9
Message was sent while issue was closed.
lgtm

Powered by Google App Engine
This is Rietveld 408576698