Skip to content
Permalink
Browse files
Remove unused RenderBox::reflectionBox().
<https://webkit.org/b/135661>

Reviewed by Antti Koivisto.

* rendering/RenderBox.cpp:
(WebCore::RenderBox::reflectionBox): Deleted.
* rendering/RenderBox.h:


Canonical link: https://commits.webkit.org/153534@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@172165 268f45cc-cd09-0410-ab3c-d52691b4dbfc
  • Loading branch information
Andreas Kling committed Aug 6, 2014
1 parent f9f33a2 commit 62f82e31b9c57e35107d3338f2635c9258f32ca6
Showing 3 changed files with 11 additions and 25 deletions.
@@ -1,3 +1,14 @@
2014-08-06 Andreas Kling <akling@apple.com>

Remove unused RenderBox::reflectionBox().
<https://webkit.org/b/135661>

Reviewed by Antti Koivisto.

* rendering/RenderBox.cpp:
(WebCore::RenderBox::reflectionBox): Deleted.
* rendering/RenderBox.h:

2014-08-06 Brian J. Burg <burg@cs.washington.edu>

Web Inspector: convert ReplayManager to a promise-based API
@@ -690,30 +690,6 @@ void RenderBox::addFocusRingRects(Vector<IntRect>& rects, const LayoutPoint& add
rects.append(pixelSnappedIntRect(additionalOffset, size()));
}

LayoutRect RenderBox::reflectionBox() const
{
LayoutRect result;
if (!style().boxReflect())
return result;
LayoutRect box = borderBoxRect();
result = box;
switch (style().boxReflect()->direction()) {
case ReflectionBelow:
result.move(0, box.height() + reflectionOffset());
break;
case ReflectionAbove:
result.move(0, -box.height() - reflectionOffset());
break;
case ReflectionLeft:
result.move(-box.width() - reflectionOffset(), 0);
break;
case ReflectionRight:
result.move(box.width() + reflectionOffset(), 0);
break;
}
return result;
}

int RenderBox::reflectionOffset() const
{
if (!style().boxReflect())
@@ -304,7 +304,6 @@ class RenderBox : public RenderBoxModelObject {
virtual void absoluteRects(Vector<IntRect>&, const LayoutPoint& accumulatedOffset) const override;
virtual void absoluteQuads(Vector<FloatQuad>&, bool* wasFixed) const override;

LayoutRect reflectionBox() const;
int reflectionOffset() const;
// Given a rect in the object's coordinate space, returns the corresponding rect in the reflection.
LayoutRect reflectedRect(const LayoutRect&) const;

0 comments on commit 62f82e3

Please sign in to comment.