mirror of
https://github.com/HeyPuter/firefox.git
synced 2026-11-28 13:40:17 -10:00
Backout e67dad88f860 and assertion-count-tweak followups (bug 914919), since including nsDebug.h in gfx/2d causes issues with some skia headers.
This commit is contained in:
1 parent
25db5a1cfc
commit
1332567df7
3 files changed
+5
-15
No files matched your search
+5
-5
@@ -7,8 +7,8 @@
|
||||
#define MOZILLA_GFX_BASERECT_H_
|
||||
|
||||
#include <cmath>
|
||||
#include <mozilla/Assertions.h>
|
||||
#include <algorithm>
|
||||
#include "nsDebug.h"
|
||||
|
||||
namespace mozilla {
|
||||
namespace gfx {
|
||||
@@ -277,21 +277,21 @@ struct BaseRect {
|
||||
|
||||
// Moves one edge of the rect without moving the opposite edge.
|
||||
void SetLeftEdge(T aX) {
|
||||
NS_ASSERTION(aX <= XMost(), "Bad rect edge");
|
||||
MOZ_ASSERT(aX <= XMost());
|
||||
width = XMost() - aX;
|
||||
x = aX;
|
||||
}
|
||||
void SetRightEdge(T aXMost) {
|
||||
NS_ASSERTION(aXMost >= x, "Bad rect edge");
|
||||
MOZ_ASSERT(aXMost >= x);
|
||||
width = aXMost - x;
|
||||
}
|
||||
void SetTopEdge(T aY) {
|
||||
NS_ASSERTION(aY <= YMost(), "Bad rect edge");
|
||||
MOZ_ASSERT(aY <= YMost());
|
||||
height = YMost() - aY;
|
||||
y = aY;
|
||||
}
|
||||
void SetBottomEdge(T aYMost) {
|
||||
NS_ASSERTION(aYMost >= y, "Bad rect edge");
|
||||
MOZ_ASSERT(aYMost >= y);
|
||||
height = aYMost - y;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
</head>
|
||||
<body>
|
||||
<div style="position: sticky; right: 75px; padding-left: 84862313px;"></div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -502,4 +502,3 @@ load 885009-1.html
|
||||
load 893523.html
|
||||
test-pref(layout.css.sticky.enabled,true) load 914891.html
|
||||
test-pref(layout.css.sticky.enabled,true) load 915475.xhtml
|
||||
asserts(1-3) test-pref(layout.css.sticky.enabled,true) load 914919.html
|
||||
Reference in new issue
Block a user