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

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

Issue 17471008: Rework compositor touch hit testing (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: CR feedback - accumulate LayoutRects instead of IntRects, disable when page isn't composited. Also… Created 7 years, 5 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
« no previous file with comments | « Source/core/rendering/RenderBlock.cpp ('k') | Source/core/rendering/RenderBox.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 * Copyright (C) 2003, 2006, 2007 Apple Inc. All rights reserved. 4 * Copyright (C) 2003, 2006, 2007 Apple Inc. All rights reserved.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 597 matching lines...) Expand 10 before | Expand all | Expand 10 after
608 LayoutUnit computeIntrinsicLogicalContentHeightUsing(Length logicalHeightLen gth, LayoutUnit intrinsicContentHeight, LayoutUnit borderAndPadding) const; 608 LayoutUnit computeIntrinsicLogicalContentHeightUsing(Length logicalHeightLen gth, LayoutUnit intrinsicContentHeight, LayoutUnit borderAndPadding) const;
609 609
610 virtual bool shouldComputeSizeAsReplaced() const { return isReplaced() && !i sInlineBlockOrInlineTable(); } 610 virtual bool shouldComputeSizeAsReplaced() const { return isReplaced() && !i sInlineBlockOrInlineTable(); }
611 611
612 virtual void mapLocalToContainer(const RenderLayerModelObject* repaintContai ner, TransformState&, MapCoordinatesFlags = ApplyContainerFlip, bool* wasFixed = 0) const OVERRIDE; 612 virtual void mapLocalToContainer(const RenderLayerModelObject* repaintContai ner, TransformState&, MapCoordinatesFlags = ApplyContainerFlip, bool* wasFixed = 0) const OVERRIDE;
613 virtual void mapAbsoluteToLocalPoint(MapCoordinatesFlags, TransformState&) c onst; 613 virtual void mapAbsoluteToLocalPoint(MapCoordinatesFlags, TransformState&) c onst;
614 614
615 void paintRootBoxFillLayers(const PaintInfo&); 615 void paintRootBoxFillLayers(const PaintInfo&);
616 616
617 RenderObject* splitAnonymousBoxesAroundChild(RenderObject* beforeChild); 617 RenderObject* splitAnonymousBoxesAroundChild(RenderObject* beforeChild);
618 618
619 virtual void addLayerHitTestRects(LayerHitTestRects&, const RenderLayer* cur rentCompositedLayer, const LayoutPoint& layerOffset) const OVERRIDE;
620 virtual void computeSelfHitTestRects(Vector<LayoutRect>&, const LayoutPoint& layerOffset) const OVERRIDE;
621
619 private: 622 private:
620 void updateShapeOutsideInfoAfterStyleChange(const ShapeValue* shapeOutside, const ShapeValue* oldShapeOutside); 623 void updateShapeOutsideInfoAfterStyleChange(const ShapeValue* shapeOutside, const ShapeValue* oldShapeOutside);
621 624
622 bool includeVerticalScrollbarSize() const; 625 bool includeVerticalScrollbarSize() const;
623 bool includeHorizontalScrollbarSize() const; 626 bool includeHorizontalScrollbarSize() const;
624 627
625 // Returns true if we did a full repaint 628 // Returns true if we did a full repaint
626 bool repaintLayerRectsForImage(WrappedImagePtr image, const FillLayer* layer s, bool drawingBackground); 629 bool repaintLayerRectsForImage(WrappedImagePtr image, const FillLayer* layer s, bool drawingBackground);
627 630
628 bool skipContainingBlockForPercentHeightCalculation(const RenderBox* contain ingBlock) const; 631 bool skipContainingBlockForPercentHeightCalculation(const RenderBox* contain ingBlock) const;
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
738 if (UNLIKELY(m_inlineBoxWrapper != 0)) 741 if (UNLIKELY(m_inlineBoxWrapper != 0))
739 deleteLineBoxWrapper(); 742 deleteLineBoxWrapper();
740 } 743 }
741 744
742 m_inlineBoxWrapper = boxWrapper; 745 m_inlineBoxWrapper = boxWrapper;
743 } 746 }
744 747
745 } // namespace WebCore 748 } // namespace WebCore
746 749
747 #endif // RenderBox_h 750 #endif // RenderBox_h
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderBlock.cpp ('k') | Source/core/rendering/RenderBox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698