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

Side by Side Diff: Source/core/rendering/RenderBox.cpp

Issue 210043008: Kill outlineBox (Closed) Base URL: svn://svn.chromium.org/blink/trunk
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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2005 Allan Sandfeld Jensen (kde@carewolf.com) 4 * (C) 2005 Allan Sandfeld Jensen (kde@carewolf.com)
5 * (C) 2005, 2006 Samuel Weinig (sam.weinig@gmail.com) 5 * (C) 2005, 2006 Samuel Weinig (sam.weinig@gmail.com)
6 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserv ed. 6 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserv ed.
7 * Copyright (C) 2013 Adobe Systems Incorporated. All rights reserved. 7 * Copyright (C) 2013 Adobe Systems Incorporated. All rights reserved.
8 * 8 *
9 * This library is free software; you can redistribute it and/or 9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Library General Public 10 * modify it under the terms of the GNU Library General Public
(...skipping 568 matching lines...) Expand 10 before | Expand all | Expand 10 after
579 rect.move(absPos.x(), absPos.y()); 579 rect.move(absPos.x(), absPos.y());
580 return rect; 580 return rect;
581 } 581 }
582 582
583 FloatQuad RenderBox::absoluteContentQuad() const 583 FloatQuad RenderBox::absoluteContentQuad() const
584 { 584 {
585 LayoutRect rect = contentBoxRect(); 585 LayoutRect rect = contentBoxRect();
586 return localToAbsoluteQuad(FloatRect(rect)); 586 return localToAbsoluteQuad(FloatRect(rect));
587 } 587 }
588 588
589 LayoutRect RenderBox::outlineBoundsForRepaint(const RenderLayerModelObject* repa intContainer, const RenderGeometryMap* geometryMap) const
590 {
591 LayoutRect box = borderBoundingBox();
592 adjustRectForOutline(box);
593
594 if (repaintContainer != this) {
595 FloatQuad containerRelativeQuad;
596 if (geometryMap)
597 containerRelativeQuad = geometryMap->mapToContainer(box, repaintCont ainer);
598 else
599 containerRelativeQuad = localToContainerQuad(FloatRect(box), repaint Container);
600
601 box = containerRelativeQuad.enclosingBoundingBox();
602 }
603
604 if (!RuntimeEnabledFeatures::repaintAfterLayoutEnabled()) {
605 // FIXME: layoutDelta needs to be applied in parts before/after transfor ms and
606 // repaint containers. https://bugs.webkit.org/show_bug.cgi?id=23308
607 box.move(view()->layoutDelta());
608 }
609
610 return box;
611 }
612
613 void RenderBox::addFocusRingRects(Vector<IntRect>& rects, const LayoutPoint& add itionalOffset, const RenderLayerModelObject*) 589 void RenderBox::addFocusRingRects(Vector<IntRect>& rects, const LayoutPoint& add itionalOffset, const RenderLayerModelObject*)
614 { 590 {
615 if (!size().isEmpty()) 591 if (!size().isEmpty())
616 rects.append(pixelSnappedIntRect(additionalOffset, size())); 592 rects.append(pixelSnappedIntRect(additionalOffset, size()));
617 } 593 }
618 594
619 bool RenderBox::canResize() const 595 bool RenderBox::canResize() const
620 { 596 {
621 // We need a special case for <iframe> because they never have 597 // We need a special case for <iframe> because they never have
622 // hasOverflowClip(). However, they do "implicitly" clip their contents, so 598 // hasOverflowClip(). However, they do "implicitly" clip their contents, so
(...skipping 4067 matching lines...) Expand 10 before | Expand all | Expand 10 after
4690 return 0; 4666 return 0;
4691 4667
4692 if (!layoutState && !flowThreadContainingBlock()) 4668 if (!layoutState && !flowThreadContainingBlock())
4693 return 0; 4669 return 0;
4694 4670
4695 RenderBlock* containerBlock = containingBlock(); 4671 RenderBlock* containerBlock = containingBlock();
4696 return containerBlock->offsetFromLogicalTopOfFirstPage() + logicalTop(); 4672 return containerBlock->offsetFromLogicalTopOfFirstPage() + logicalTop();
4697 } 4673 }
4698 4674
4699 } // namespace WebCore 4675 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698