-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert of Revert of Implement unset value handling (patchset #1 id:1 of
https://codereview.chromium.org/782853002/) Reason for revert: A build fix has landed, so the revert is no longer necessary. Original issue's description: > Revert of Implement unset value handling (patchset #4 id:80001 of https://codereview.chromium.org/775153002/) > > Reason for revert: > This broke the Linux Oilpan Builder. > > Logs: http://build.chromium.org/p/chromium.perf/builders/Linux%20Oilpan%20Builder/builds/13454/steps/compile/logs/stdio#error1 > > BUG=439604 > > Original issue's description: > > Implement unset value handling > > > > This patch accepts unset as a valid CSS value and creates > > a CSSUnsetValue object for it. Then when resolving it the > > rules stated in below link are implemented: > > > > http://dev.w3.org/csswg/css-cascade/#valuedef-unset > > > > Add a test for the new behavior. > > > > BUG=431689 > > > > Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=186604 > > TBR=timloh@chromium.org,rob.buis@samsung.com > NOTREECHECKS=true > NOTRY=true > BUG=431689 > > Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=186627 TBR=timloh@chromium.org,rob.buis@samsung.com NOTREECHECKS=true NOTRY=true BUG=439604 Review URL: https://codereview.chromium.org/773483003 git-svn-id: svn://svn.chromium.org/blink/trunk@186637 bbb929c8-8fbe-4397-9dbb-9b2b20218538
- Loading branch information
1 parent
4425411
commit 3537c9a
Showing
11 changed files
with
119 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<body> | ||
<span>all</span><br> | ||
<span style="color: green">unset</span> | ||
</body> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<style> | ||
span { | ||
font-weight: bold; | ||
color: yellow; | ||
border: 5px solid red; | ||
display: none; | ||
} | ||
|
||
.all { | ||
all: unset; | ||
} | ||
|
||
.unset { | ||
font-weight: unset; | ||
color: unset; | ||
border: unset; | ||
display: unset; | ||
} | ||
</style> | ||
<body> | ||
<span class="all">all</span><br> | ||
<div style="color: green; font-weight: normal;"> | ||
<span class="unset">unset</span> | ||
</span> | ||
</body> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// Copyright 2014 The Chromium Authors. All rights reserved. | ||
// Use of this source code is governed by a BSD-style license that can be | ||
// found in the LICENSE file. | ||
|
||
#include "config.h" | ||
#include "core/css/CSSUnsetValue.h" | ||
|
||
#include "wtf/text/WTFString.h" | ||
|
||
namespace blink { | ||
|
||
String CSSUnsetValue::customCSSText() const | ||
{ | ||
return "unset"; | ||
} | ||
|
||
} // namespace blink |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
// Copyright 2014 The Chromium Authors. All rights reserved. | ||
// Use of this source code is governed by a BSD-style license that can be | ||
// found in the LICENSE file. | ||
|
||
#ifndef CSSUnsetValue_h | ||
#define CSSUnsetValue_h | ||
|
||
#include "core/css/CSSValue.h" | ||
#include "wtf/PassRefPtr.h" | ||
|
||
namespace blink { | ||
|
||
class CSSUnsetValue : public CSSValue { | ||
public: | ||
static PassRefPtrWillBeRawPtr<CSSUnsetValue> create() | ||
{ | ||
return adoptRefWillBeNoop(new CSSUnsetValue); | ||
} | ||
|
||
String customCSSText() const; | ||
|
||
bool equals(const CSSUnsetValue&) const { return true; } | ||
|
||
void traceAfterDispatch(Visitor* visitor) { CSSValue::traceAfterDispatch(visitor); } | ||
|
||
private: | ||
CSSUnsetValue() | ||
: CSSValue(UnsetClass) | ||
{ | ||
} | ||
}; | ||
|
||
DEFINE_CSS_VALUE_TYPE_CASTS(CSSUnsetValue, isUnsetValue()); | ||
|
||
} // namespace blink | ||
|
||
#endif // CSSUnsetValue_h |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters