Skip to content

Commit

Permalink
Revert of Remove unused sourceData variable in InspectorStyleSheet. (…
Browse files Browse the repository at this point in the history
…patchset #1 id:1 of https://codereview.chromium.org/574963002/)

Reason for revert:
This code is still needed

Original issue's description:
> Remove unused sourceData variable in InspectorStyleSheet.
> 
> Breaks build for targets that treat unused variables as errors.
> 
> [email protected], [email protected]
> 
> Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=182145

[email protected],[email protected]

Review URL: https://codereview.chromium.org/611333002

git-svn-id: svn://svn.chromium.org/blink/trunk@182928 bbb929c8-8fbe-4397-9dbb-9b2b20218538
  • Loading branch information
[email protected] committed Sep 30, 2014
1 parent f06f4f1 commit 9b220aa
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Source/core/inspector/InspectorStyleSheet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -674,6 +674,7 @@ PassRefPtr<TypeBuilder::CSS::CSSStyle> InspectorStyle::styleWithProperties() con
RefPtr<Array<TypeBuilder::CSS::ShorthandEntry> > shorthandEntries = Array<TypeBuilder::CSS::ShorthandEntry>::create();
HashSet<String> foundShorthands;
OwnPtr<Vector<unsigned> > lineEndings(m_parentStyleSheet ? m_parentStyleSheet->lineEndings() : PassOwnPtr<Vector<unsigned> >());
RefPtrWillBeRawPtr<CSSRuleSourceData> sourceData = extractSourceData();

WillBeHeapVector<InspectorStyleProperty> properties;
populateAllProperties(properties);
Expand All @@ -697,8 +698,10 @@ PassRefPtr<TypeBuilder::CSS::CSSStyle> InspectorStyle::styleWithProperties() con
property->setImportant(true);
if (it->hasSource) {
property->setRange(buildSourceRangeObject(propertyEntry.range, lineEndings.get()));
if (!propertyEntry.disabled)
if (!propertyEntry.disabled) {
ASSERT_UNUSED(sourceData, sourceData);
property->setImplicit(false);
}
property->setDisabled(propertyEntry.disabled);
} else if (!propertyEntry.disabled) {
bool implicit = m_style->isPropertyImplicit(name);
Expand Down

0 comments on commit 9b220aa

Please sign in to comment.