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

Unified Diff: third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp

Issue 2025523002: Revert of getComputedStyle should handle over-constrained properties. (patchset #7 id:100001 of htt… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2743
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/LayoutTests/fast/css/getComputedStyle/getComputedStyle-right-auto-expected.txt ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp
diff --git a/third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp b/third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp
index ec34824adfd266e4da89f93d8a5e6d9a3b495aa2..6d2c3f7d0598817d2c89be56317d6784527380bc 100644
--- a/third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp
+++ b/third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp
@@ -247,14 +247,6 @@ static CSSValue* valueForPositionOffset(const ComputedStyle& style, CSSPropertyI
if (offset.isAuto())
return cssValuePool().createIdentifierValue(CSSValueAuto);
- if (layoutObject) {
- if (!opposite.isAuto() && layoutObject->isInFlowPositioned()) {
- LayoutBlock* container = layoutObject->containingBlock();
- bool ltr = container->style()->isLeftToRightDirection();
- if ((propertyID == CSSPropertyLeft && !ltr) || (propertyID == CSSPropertyRight && ltr) || (propertyID == CSSPropertyBottom))
- return zoomAdjustedPixelValue(-opposite.pixels(), style);
- }
- }
return zoomAdjustedPixelValueForLength(offset, style);
}
« no previous file with comments | « third_party/WebKit/LayoutTests/fast/css/getComputedStyle/getComputedStyle-right-auto-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698