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

Unified Diff: third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp

Issue 2602453002: Update perspective paint properties on perspective-origin changes (Closed)
Patch Set: Update comment, add a relative length update test Created 4 years 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
Index: third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp
diff --git a/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp b/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp
index d566bce62457849e08dff4dd1d9c86918207e0e1..239e70dfd1ed9324f0f1653d7568fe29e1f3307a 100644
--- a/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp
+++ b/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp
@@ -626,6 +626,8 @@ void PaintPropertyTreeBuilder::updateOverflowClip(
static FloatPoint perspectiveOrigin(const LayoutBox& box) {
const ComputedStyle& style = box.styleRef();
+ // Perspective origin has no effect without perspective.
+ DCHECK(style.hasPerspective());
FloatSize borderBoxSize(box.size());
return FloatPoint(
floatValueForLength(style.perspectiveOriginX(), borderBoxSize.width()),

Powered by Google App Engine
This is Rietveld 408576698