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

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

Issue 19614004: Compositor hit test performance improvement (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Merge with trunk Created 7 years, 4 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 * 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 599 matching lines...) Expand 10 before | Expand all | Expand 10 after
610 610
611 virtual bool shouldComputeSizeAsReplaced() const { return isReplaced() && !i sInlineBlockOrInlineTable(); } 611 virtual bool shouldComputeSizeAsReplaced() const { return isReplaced() && !i sInlineBlockOrInlineTable(); }
612 612
613 virtual void mapLocalToContainer(const RenderLayerModelObject* repaintContai ner, TransformState&, MapCoordinatesFlags = ApplyContainerFlip, bool* wasFixed = 0) const OVERRIDE; 613 virtual void mapLocalToContainer(const RenderLayerModelObject* repaintContai ner, TransformState&, MapCoordinatesFlags = ApplyContainerFlip, bool* wasFixed = 0) const OVERRIDE;
614 virtual void mapAbsoluteToLocalPoint(MapCoordinatesFlags, TransformState&) c onst; 614 virtual void mapAbsoluteToLocalPoint(MapCoordinatesFlags, TransformState&) c onst;
615 615
616 void paintRootBoxFillLayers(const PaintInfo&); 616 void paintRootBoxFillLayers(const PaintInfo&);
617 617
618 RenderObject* splitAnonymousBoxesAroundChild(RenderObject* beforeChild); 618 RenderObject* splitAnonymousBoxesAroundChild(RenderObject* beforeChild);
619 619
620 virtual void addLayerHitTestRects(LayerHitTestRects&, const RenderLayer* cur rentCompositedLayer, const LayoutPoint& layerOffset) const OVERRIDE; 620 virtual void addLayerHitTestRects(LayerHitTestRects&, const RenderLayer* cur rentCompositedLayer, const LayoutPoint& layerOffset, const LayoutRect& container Rect) const OVERRIDE;
621 virtual void computeSelfHitTestRects(Vector<LayoutRect>&, const LayoutPoint& layerOffset) const OVERRIDE; 621 virtual void computeSelfHitTestRects(Vector<LayoutRect>&, const LayoutPoint& layerOffset) const OVERRIDE;
622 622
623 private: 623 private:
624 void updateShapeOutsideInfoAfterStyleChange(const ShapeValue* shapeOutside, const ShapeValue* oldShapeOutside); 624 void updateShapeOutsideInfoAfterStyleChange(const ShapeValue* shapeOutside, const ShapeValue* oldShapeOutside);
625 void updateGridPositionAfterStyleChange(const RenderStyle*); 625 void updateGridPositionAfterStyleChange(const RenderStyle*);
626 626
627 bool includeVerticalScrollbarSize() const; 627 bool includeVerticalScrollbarSize() const;
628 bool includeHorizontalScrollbarSize() const; 628 bool includeHorizontalScrollbarSize() const;
629 629
630 // Returns true if we did a full repaint 630 // Returns true if we did a full repaint
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
743 if (UNLIKELY(m_inlineBoxWrapper != 0)) 743 if (UNLIKELY(m_inlineBoxWrapper != 0))
744 deleteLineBoxWrapper(); 744 deleteLineBoxWrapper();
745 } 745 }
746 746
747 m_inlineBoxWrapper = boxWrapper; 747 m_inlineBoxWrapper = boxWrapper;
748 } 748 }
749 749
750 } // namespace WebCore 750 } // namespace WebCore
751 751
752 #endif // RenderBox_h 752 #endif // RenderBox_h
OLDNEW
« no previous file with comments | « Source/core/page/scrolling/ScrollingCoordinator.cpp ('k') | Source/core/rendering/RenderBox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698