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

Side by Side Diff: Source/core/dom/Range.cpp

Issue 1104243003: Oilpan: put ClientRect(List) on the heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Remove transition types uses also Created 5 years, 8 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 * (C) 1999 Lars Knoll (knoll@kde.org) 2 * (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 2000 Gunnstein Lye (gunnstein@netcom.no) 3 * (C) 2000 Gunnstein Lye (gunnstein@netcom.no)
4 * (C) 2000 Frederik Holljen (frederik.holljen@hig.no) 4 * (C) 2000 Frederik Holljen (frederik.holljen@hig.no)
5 * (C) 2001 Peter Kelly (pmk@post.com) 5 * (C) 2001 Peter Kelly (pmk@post.com)
6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r ights reserved. 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r ights reserved.
7 * Copyright (C) 2011 Motorola Mobility. All rights reserved. 7 * Copyright (C) 2011 Motorola Mobility. 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 1612 matching lines...) Expand 10 before | Expand all | Expand 10 after
1623 end = endOfParagraph(end); 1623 end = endOfParagraph(end);
1624 } else if (unit == "document") { 1624 } else if (unit == "document") {
1625 start = startOfDocument(start); 1625 start = startOfDocument(start);
1626 end = endOfDocument(end); 1626 end = endOfDocument(end);
1627 } else 1627 } else
1628 return; 1628 return;
1629 setStart(start.deepEquivalent().containerNode(), start.deepEquivalent().comp uteOffsetInContainerNode(), exceptionState); 1629 setStart(start.deepEquivalent().containerNode(), start.deepEquivalent().comp uteOffsetInContainerNode(), exceptionState);
1630 setEnd(end.deepEquivalent().containerNode(), end.deepEquivalent().computeOff setInContainerNode(), exceptionState); 1630 setEnd(end.deepEquivalent().containerNode(), end.deepEquivalent().computeOff setInContainerNode(), exceptionState);
1631 } 1631 }
1632 1632
1633 PassRefPtrWillBeRawPtr<ClientRectList> Range::getClientRects() const 1633 ClientRectList* Range::getClientRects() const
1634 { 1634 {
1635 m_ownerDocument->updateLayoutIgnorePendingStylesheets(); 1635 m_ownerDocument->updateLayoutIgnorePendingStylesheets();
1636 1636
1637 Vector<FloatQuad> quads; 1637 Vector<FloatQuad> quads;
1638 getBorderAndTextQuads(quads); 1638 getBorderAndTextQuads(quads);
1639 1639
1640 return ClientRectList::create(quads); 1640 return ClientRectList::create(quads);
1641 } 1641 }
1642 1642
1643 PassRefPtrWillBeRawPtr<ClientRect> Range::getBoundingClientRect() const 1643 ClientRect* Range::getBoundingClientRect() const
1644 { 1644 {
1645 return ClientRect::create(boundingRect()); 1645 return ClientRect::create(boundingRect());
1646 } 1646 }
1647 1647
1648 void Range::getBorderAndTextQuads(Vector<FloatQuad>& quads) const 1648 void Range::getBorderAndTextQuads(Vector<FloatQuad>& quads) const
1649 { 1649 {
1650 Node* startContainer = m_start.container(); 1650 Node* startContainer = m_start.container();
1651 Node* endContainer = m_end.container(); 1651 Node* endContainer = m_end.container();
1652 Node* stopNode = pastLastNode(); 1652 Node* stopNode = pastLastNode();
1653 1653
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
1710 1710
1711 void showTree(const blink::Range* range) 1711 void showTree(const blink::Range* range)
1712 { 1712 {
1713 if (range && range->boundaryPointsValid()) { 1713 if (range && range->boundaryPointsValid()) {
1714 range->startContainer()->showTreeAndMark(range->startContainer(), "S", r ange->endContainer(), "E"); 1714 range->startContainer()->showTreeAndMark(range->startContainer(), "S", r ange->endContainer(), "E");
1715 fprintf(stderr, "start offset: %d, end offset: %d\n", range->startOffset (), range->endOffset()); 1715 fprintf(stderr, "start offset: %d, end offset: %d\n", range->startOffset (), range->endOffset());
1716 } 1716 }
1717 } 1717 }
1718 1718
1719 #endif 1719 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698