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

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: Various fixes and test additions 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
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 600 matching lines...) Expand 10 before | Expand all | Expand 10 after
611 LayoutUnit computeIntrinsicLogicalContentHeightUsing(Length logicalHeightLen gth, LayoutUnit intrinsicContentHeight, LayoutUnit borderAndPadding) const; 611 LayoutUnit computeIntrinsicLogicalContentHeightUsing(Length logicalHeightLen gth, LayoutUnit intrinsicContentHeight, LayoutUnit borderAndPadding) const;
612 612
613 virtual bool shouldComputeSizeAsReplaced() const { return isReplaced() && !i sInlineBlockOrInlineTable(); } 613 virtual bool shouldComputeSizeAsReplaced() const { return isReplaced() && !i sInlineBlockOrInlineTable(); }
614 614
615 virtual void mapLocalToContainer(const RenderLayerModelObject* repaintContai ner, TransformState&, MapCoordinatesFlags = ApplyContainerFlip, bool* wasFixed = 0) const OVERRIDE; 615 virtual void mapLocalToContainer(const RenderLayerModelObject* repaintContai ner, TransformState&, MapCoordinatesFlags = ApplyContainerFlip, bool* wasFixed = 0) const OVERRIDE;
616 virtual void mapAbsoluteToLocalPoint(MapCoordinatesFlags, TransformState&) c onst; 616 virtual void mapAbsoluteToLocalPoint(MapCoordinatesFlags, TransformState&) c onst;
617 617
618 void paintRootBoxFillLayers(const PaintInfo&); 618 void paintRootBoxFillLayers(const PaintInfo&);
619 619
620 RenderObject* splitAnonymousBoxesAroundChild(RenderObject* beforeChild); 620 RenderObject* splitAnonymousBoxesAroundChild(RenderObject* beforeChild);
621 621
622 virtual void addLayerHitTestRects(LayerHitTestRects&, const RenderLayer* cur rentCompositedLayer, const LayoutPoint& layerOffset) const OVERRIDE;
623 virtual void computeOwnHitTestRects(Vector<IntRect>&, const LayoutPoint& lay erOffset) const OVERRIDE;
624
622 private: 625 private:
623 void updateShapeOutsideInfoAfterStyleChange(const ShapeValue* shapeOutside, const ShapeValue* oldShapeOutside); 626 void updateShapeOutsideInfoAfterStyleChange(const ShapeValue* shapeOutside, const ShapeValue* oldShapeOutside);
624 627
625 bool includeVerticalScrollbarSize() const; 628 bool includeVerticalScrollbarSize() const;
626 bool includeHorizontalScrollbarSize() const; 629 bool includeHorizontalScrollbarSize() const;
627 630
628 // Returns true if we did a full repaint 631 // Returns true if we did a full repaint
629 bool repaintLayerRectsForImage(WrappedImagePtr image, const FillLayer* layer s, bool drawingBackground); 632 bool repaintLayerRectsForImage(WrappedImagePtr image, const FillLayer* layer s, bool drawingBackground);
630 633
631 bool skipContainingBlockForPercentHeightCalculation(const RenderBox* contain ingBlock) const; 634 bool skipContainingBlockForPercentHeightCalculation(const RenderBox* contain ingBlock) const;
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
736 if (UNLIKELY(m_inlineBoxWrapper != 0)) 739 if (UNLIKELY(m_inlineBoxWrapper != 0))
737 deleteLineBoxWrapper(); 740 deleteLineBoxWrapper();
738 } 741 }
739 742
740 m_inlineBoxWrapper = boxWrapper; 743 m_inlineBoxWrapper = boxWrapper;
741 } 744 }
742 745
743 } // namespace WebCore 746 } // namespace WebCore
744 747
745 #endif // RenderBox_h 748 #endif // RenderBox_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698