|
Add support for the object-position CSS property.
This is hidden behind an "experimental" runtime flag named
"ObjectFitPosition", together with object-fit.
This is an implementation of object-position as described in
http://www.w3.org/TR/2012/CR-css3-images-20120417/#object-position
Object-position is used to offset replaced content within its content
box. Painting is always clipped against the content box, regardless of
the "overflow" property. This property is useful together with
object-fit (to achieve a difference between content box size and
replaced content size, so that specifying alignment is interesting),
but can also be used on its own.
BUG= 236333
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=157745
Total comments: 11
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+838 lines, -32 lines) |
Patch |
|
M |
LayoutTests/animations/resources/animation-test-helpers.js
|
View
|
|
1 chunk |
+13 lines, -0 lines |
0 comments
|
Download
|
|
A |
LayoutTests/fast/css/object-position.html
|
View
|
|
1 chunk |
+49 lines, -0 lines |
0 comments
|
Download
|
|
A |
LayoutTests/fast/css/object-position-expected.html
|
View
|
|
1 chunk |
+53 lines, -0 lines |
0 comments
|
Download
|
|
A |
LayoutTests/fast/css/object-position-svg.html
|
View
|
1
|
1 chunk |
+50 lines, -0 lines |
0 comments
|
Download
|
|
A |
LayoutTests/fast/css/object-position-svg-expected.html
|
View
|
1
|
1 chunk |
+53 lines, -0 lines |
0 comments
|
Download
|
|
A |
LayoutTests/fast/css/object-position-with-fit-contain.html
|
View
|
|
1 chunk |
+50 lines, -0 lines |
0 comments
|
Download
|
|
A |
LayoutTests/fast/css/object-position-with-fit-contain-expected.html
|
View
|
|
1 chunk |
+53 lines, -0 lines |
0 comments
|
Download
|
|
A |
LayoutTests/fast/css/object-position-with-fit-cover.html
|
View
|
|
1 chunk |
+50 lines, -0 lines |
0 comments
|
Download
|
|
A |
LayoutTests/fast/css/object-position-with-fit-cover-expected.html
|
View
|
|
1 chunk |
+53 lines, -0 lines |
0 comments
|
Download
|
|
A |
LayoutTests/fast/css/object-position-with-fit-none.html
|
View
|
|
1 chunk |
+50 lines, -0 lines |
0 comments
|
Download
|
|
A |
LayoutTests/fast/css/object-position-with-fit-none-expected.html
|
View
|
|
1 chunk |
+53 lines, -0 lines |
0 comments
|
Download
|
|
A |
LayoutTests/fast/css/parsing-object-position.html
|
View
|
|
1 chunk |
+80 lines, -0 lines |
0 comments
|
Download
|
|
A |
LayoutTests/fast/css/parsing-object-position-expected.txt
|
View
|
|
1 chunk |
+52 lines, -0 lines |
0 comments
|
Download
|
|
A + |
LayoutTests/fast/css/resources/circle-small.svg
|
View
|
1
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
A |
LayoutTests/transitions/object-position-transition.html
|
View
|
|
1 chunk |
+34 lines, -0 lines |
0 comments
|
Download
|
|
A |
LayoutTests/transitions/object-position-transition-expected.txt
|
View
|
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
|
M |
LayoutTests/webexposed/css-properties-as-js-properties-expected.txt
|
View
|
1
2
3
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
Source/core/css/CSSComputedStyleDeclaration.cpp
|
View
|
1
2
3
|
3 chunks |
+9 lines, -1 line |
0 comments
|
Download
|
|
M |
Source/core/css/CSSParser.h
|
View
|
1
2
3
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
|
M |
Source/core/css/CSSParser-in.cpp
|
View
|
1
2
3
|
3 chunks |
+18 lines, -2 lines |
0 comments
|
Download
|
|
M |
Source/core/css/CSSProperties.in
|
View
|
1
2
3
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
Source/core/css/CSSProperty.cpp
|
View
|
1
2
3
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
Source/core/css/CSSPropertyNames.in
|
View
|
1
2
3
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
Source/core/css/Pair.h
|
View
|
|
1 chunk |
+29 lines, -12 lines |
0 comments
|
Download
|
|
M |
Source/core/css/resolver/StyleBuilderCustom.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
Source/core/css/resolver/StyleBuilderCustom.cpp
|
View
|
1
2
3
|
2 chunks |
+10 lines, -0 lines |
0 comments
|
Download
|
|
M |
Source/core/page/RuntimeCSSEnabled.cpp
|
View
|
1
2
3
|
2 chunks |
+5 lines, -1 line |
0 comments
|
Download
|
|
M |
Source/core/page/UseCounter.cpp
|
View
|
1
2
3
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
Source/core/page/animation/CSSPropertyAnimation.cpp
|
View
|
1
2
3
|
2 chunks |
+7 lines, -0 lines |
0 comments
|
Download
|
|
A + |
Source/core/platform/LengthPoint.h
|
View
|
1
2
3
|
1 chunk |
+36 lines, -8 lines |
0 comments
|
Download
|
|
M |
Source/core/rendering/RenderImage.cpp
|
View
|
1
2
3
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
|
M |
Source/core/rendering/RenderReplaced.cpp
|
View
|
1
2
3
|
2 chunks |
+5 lines, -5 lines |
0 comments
|
Download
|
|
M |
Source/core/rendering/style/RenderStyle.h
|
View
|
1
2
3
|
3 chunks |
+3 lines, -0 lines |
0 comments
|
Download
|
|
M |
Source/core/rendering/style/RenderStyle.cpp
|
View
|
1
2
3
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
Source/core/rendering/style/StyleRareNonInheritedData.h
|
View
|
1
2
3
|
2 chunks |
+3 lines, -0 lines |
0 comments
|
Download
|
|
M |
Source/core/rendering/style/StyleRareNonInheritedData.cpp
|
View
|
1
2
3
|
3 chunks |
+3 lines, -0 lines |
0 comments
|
Download
|
Total messages: 14 (0 generated)
|