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

Side by Side Diff: sky/engine/core/dom/Range.cpp

Issue 723253004: Remove tons of OILPAN. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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 | « sky/engine/core/dom/Range.h ('k') | sky/engine/core/dom/RangeBoundaryPoint.h » ('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 * (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 1509 matching lines...) Expand 10 before | Expand all | Expand 10 after
1520 if (quads.isEmpty()) 1520 if (quads.isEmpty())
1521 return FloatRect(); 1521 return FloatRect();
1522 1522
1523 FloatRect result; 1523 FloatRect result;
1524 for (size_t i = 0; i < quads.size(); ++i) 1524 for (size_t i = 0; i < quads.size(); ++i)
1525 result.unite(quads[i].boundingBox()); 1525 result.unite(quads[i].boundingBox());
1526 1526
1527 return result; 1527 return result;
1528 } 1528 }
1529 1529
1530 void Range::trace(Visitor* visitor)
1531 {
1532 visitor->trace(m_ownerDocument);
1533 visitor->trace(m_start);
1534 visitor->trace(m_end);
1535 }
1536
1537 } // namespace blink 1530 } // namespace blink
1538 1531
1539 #ifndef NDEBUG 1532 #ifndef NDEBUG
1540 1533
1541 void showTree(const blink::Range* range) 1534 void showTree(const blink::Range* range)
1542 { 1535 {
1543 if (range && range->boundaryPointsValid()) { 1536 if (range && range->boundaryPointsValid()) {
1544 range->startContainer()->showTreeAndMark(range->startContainer(), "S", r ange->endContainer(), "E"); 1537 range->startContainer()->showTreeAndMark(range->startContainer(), "S", r ange->endContainer(), "E");
1545 fprintf(stderr, "start offset: %d, end offset: %d\n", range->startOffset (), range->endOffset()); 1538 fprintf(stderr, "start offset: %d, end offset: %d\n", range->startOffset (), range->endOffset());
1546 } 1539 }
1547 } 1540 }
1548 1541
1549 #endif 1542 #endif
OLDNEW
« no previous file with comments | « sky/engine/core/dom/Range.h ('k') | sky/engine/core/dom/RangeBoundaryPoint.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698