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

Side by Side Diff: Source/core/layout/LayoutObject.h

Issue 1303653002: Introduce LayoutObject::createPositionWithAffinity(int offset) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 2015-08-19T12:20:28 Created 5 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
« no previous file with comments | « Source/core/layout/LayoutBlock.cpp ('k') | Source/core/layout/LayoutObject.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) 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 699 matching lines...) Expand 10 before | Expand all | Expand 10 after
710 710
711 CompositingState compositingState() const; 711 CompositingState compositingState() const;
712 virtual CompositingReasons additionalCompositingReasons() const; 712 virtual CompositingReasons additionalCompositingReasons() const;
713 713
714 bool hitTest(HitTestResult&, const HitTestLocation& locationInContainer, con st LayoutPoint& accumulatedOffset, HitTestFilter = HitTestAll); 714 bool hitTest(HitTestResult&, const HitTestLocation& locationInContainer, con st LayoutPoint& accumulatedOffset, HitTestFilter = HitTestAll);
715 virtual void updateHitTestResult(HitTestResult&, const LayoutPoint&); 715 virtual void updateHitTestResult(HitTestResult&, const LayoutPoint&);
716 virtual bool nodeAtPoint(HitTestResult&, const HitTestLocation& locationInCo ntainer, const LayoutPoint& accumulatedOffset, HitTestAction); 716 virtual bool nodeAtPoint(HitTestResult&, const HitTestLocation& locationInCo ntainer, const LayoutPoint& accumulatedOffset, HitTestAction);
717 717
718 virtual PositionWithAffinity positionForPoint(const LayoutPoint&); 718 virtual PositionWithAffinity positionForPoint(const LayoutPoint&);
719 PositionWithAffinity createPositionWithAffinity(int offset, EAffinity); 719 PositionWithAffinity createPositionWithAffinity(int offset, EAffinity);
720 PositionWithAffinity createPositionWithAffinity(int offset);
720 PositionWithAffinity createPositionWithAffinity(const Position&); 721 PositionWithAffinity createPositionWithAffinity(const Position&);
721 722
722 virtual void dirtyLinesFromChangedChild(LayoutObject*); 723 virtual void dirtyLinesFromChangedChild(LayoutObject*);
723 724
724 // Set the style of the object and update the state of the object accordingl y. 725 // Set the style of the object and update the state of the object accordingl y.
725 void setStyle(PassRefPtr<ComputedStyle>); 726 void setStyle(PassRefPtr<ComputedStyle>);
726 727
727 // Set the style of the object if it's generated content. 728 // Set the style of the object if it's generated content.
728 void setPseudoStyle(PassRefPtr<ComputedStyle>); 729 void setPseudoStyle(PassRefPtr<ComputedStyle>);
729 730
(...skipping 940 matching lines...) Expand 10 before | Expand all | Expand 10 after
1670 void showTree(const blink::LayoutObject*); 1671 void showTree(const blink::LayoutObject*);
1671 void showLineTree(const blink::LayoutObject*); 1672 void showLineTree(const blink::LayoutObject*);
1672 void showLayoutTree(const blink::LayoutObject* object1); 1673 void showLayoutTree(const blink::LayoutObject* object1);
1673 // We don't make object2 an optional parameter so that showLayoutTree 1674 // We don't make object2 an optional parameter so that showLayoutTree
1674 // can be called from gdb easily. 1675 // can be called from gdb easily.
1675 void showLayoutTree(const blink::LayoutObject* object1, const blink::LayoutObjec t* object2); 1676 void showLayoutTree(const blink::LayoutObject* object1, const blink::LayoutObjec t* object2);
1676 1677
1677 #endif 1678 #endif
1678 1679
1679 #endif // LayoutObject_h 1680 #endif // LayoutObject_h
OLDNEW
« no previous file with comments | « Source/core/layout/LayoutBlock.cpp ('k') | Source/core/layout/LayoutObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698