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

Unified Diff: Source/core/page/scrolling/ScrollingCoordinator.cpp

Issue 206093004: Modify condition for fixedToRight and fixedToBottom Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 9 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/page/scrolling/ScrollingCoordinator.cpp
diff --git a/Source/core/page/scrolling/ScrollingCoordinator.cpp b/Source/core/page/scrolling/ScrollingCoordinator.cpp
index c09c01c5755f87eab0487d5af1a31e37ae6fe59b..27eb579005c09f628fd261651462ae2af8b2042b 100644
--- a/Source/core/page/scrolling/ScrollingCoordinator.cpp
+++ b/Source/core/page/scrolling/ScrollingCoordinator.cpp
@@ -188,8 +188,8 @@ static WebLayerPositionConstraint computePositionConstraint(const RenderLayer* l
do {
if (layer->renderer()->style()->position() == FixedPosition) {
const RenderObject* fixedPositionObject = layer->renderer();
- bool fixedToRight = !fixedPositionObject->style()->right().isAuto();
- bool fixedToBottom = !fixedPositionObject->style()->bottom().isAuto();
+ bool fixedToRight = !fixedPositionObject->style()->right().isAuto() && fixedPositionObject->style()->left().isAuto();
+ bool fixedToBottom = !fixedPositionObject->style()->bottom().isAuto() && fixedPositionObject->style()->top().isAuto();
return WebLayerPositionConstraint::fixedPosition(fixedToRight, fixedToBottom);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698