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/layout/LayoutObject.h

Issue 1142283004: Implement a Hit Test Cache. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 7 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) 2000 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org)
3 * (C) 2000 Antti Koivisto (koivisto@kde.org) 3 * (C) 2000 Antti Koivisto (koivisto@kde.org)
4 * (C) 2000 Dirk Mueller (mueller@kde.org) 4 * (C) 2000 Dirk Mueller (mueller@kde.org)
5 * (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com) 5 * (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com)
6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2012 Apple Inc. All r ights reserved. 6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2012 Apple Inc. All r ights reserved.
7 * Copyright (C) 2009 Google Inc. All rights reserved. 7 * Copyright (C) 2009 Google Inc. 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 708 matching lines...) Expand 10 before | Expand all | Expand 10 after
719 // Used for element state updates that cannot be fixed with a 719 // Used for element state updates that cannot be fixed with a
720 // paint invalidation and do not need a relayout. 720 // paint invalidation and do not need a relayout.
721 virtual void updateFromElement() { } 721 virtual void updateFromElement() { }
722 722
723 virtual void addAnnotatedRegions(Vector<AnnotatedRegionValue>&); 723 virtual void addAnnotatedRegions(Vector<AnnotatedRegionValue>&);
724 724
725 CompositingState compositingState() const; 725 CompositingState compositingState() const;
726 virtual CompositingReasons additionalCompositingReasons() const; 726 virtual CompositingReasons additionalCompositingReasons() const;
727 727
728 bool hitTest(HitTestResult&, const HitTestLocation& locationInContainer, con st LayoutPoint& accumulatedOffset, HitTestFilter = HitTestAll); 728 bool hitTest(HitTestResult&, const HitTestLocation& locationInContainer, con st LayoutPoint& accumulatedOffset, HitTestFilter = HitTestAll);
729 virtual void updateHitTestResult(HitTestResult&, const LayoutPoint&); 729 virtual void updateHitTestResult(HitTestResult&, const LayoutPoint&, const L ayoutRect&);
730 virtual bool nodeAtPoint(HitTestResult&, const HitTestLocation& locationInCo ntainer, const LayoutPoint& accumulatedOffset, HitTestAction); 730 virtual bool nodeAtPoint(HitTestResult&, const HitTestLocation& locationInCo ntainer, const LayoutPoint& accumulatedOffset, HitTestAction);
731 731
732 virtual PositionWithAffinity positionForPoint(const LayoutPoint&); 732 virtual PositionWithAffinity positionForPoint(const LayoutPoint&);
733 PositionWithAffinity createPositionWithAffinity(int offset, EAffinity); 733 PositionWithAffinity createPositionWithAffinity(int offset, EAffinity);
734 PositionWithAffinity createPositionWithAffinity(const Position&); 734 PositionWithAffinity createPositionWithAffinity(const Position&);
735 735
736 virtual void dirtyLinesFromChangedChild(LayoutObject*); 736 virtual void dirtyLinesFromChangedChild(LayoutObject*);
737 737
738 // Set the style of the object and update the state of the object accordingl y. 738 // Set the style of the object and update the state of the object accordingl y.
739 void setStyle(PassRefPtr<ComputedStyle>); 739 void setStyle(PassRefPtr<ComputedStyle>);
(...skipping 923 matching lines...) Expand 10 before | Expand all | Expand 10 after
1663 void showTree(const blink::LayoutObject*); 1663 void showTree(const blink::LayoutObject*);
1664 void showLineTree(const blink::LayoutObject*); 1664 void showLineTree(const blink::LayoutObject*);
1665 void showLayoutTree(const blink::LayoutObject* object1); 1665 void showLayoutTree(const blink::LayoutObject* object1);
1666 // We don't make object2 an optional parameter so that showLayoutTree 1666 // We don't make object2 an optional parameter so that showLayoutTree
1667 // can be called from gdb easily. 1667 // can be called from gdb easily.
1668 void showLayoutTree(const blink::LayoutObject* object1, const blink::LayoutObjec t* object2); 1668 void showLayoutTree(const blink::LayoutObject* object1, const blink::LayoutObjec t* object2);
1669 1669
1670 #endif 1670 #endif
1671 1671
1672 #endif // LayoutObject_h 1672 #endif // LayoutObject_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698