Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 * (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) 2004, 2005, 2006, 2007, 2008, 2011 Apple Inc. All rights reserv ed. | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2011 Apple Inc. All rights reserv ed. |
| 7 * Copyright (C) 2009 Google Inc. All rights reserved. | 7 * Copyright (C) 2009 Google Inc. All rights reserved. |
| 8 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/) | 8 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/) |
| 9 * | 9 * |
| 10 * This library is free software; you can redistribute it and/or | 10 * This library is free software; you can redistribute it and/or |
| (...skipping 1558 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1569 { | 1569 { |
| 1570 // For any layout object that doesn't override this method (the main example is LayoutText), | 1570 // For any layout object that doesn't override this method (the main example is LayoutText), |
| 1571 // the rect is assumed to be in the parent's coordinate space, except for co ntainer flip. | 1571 // the rect is assumed to be in the parent's coordinate space, except for co ntainer flip. |
| 1572 | 1572 |
| 1573 if (ancestor == this) | 1573 if (ancestor == this) |
| 1574 return true; | 1574 return true; |
| 1575 | 1575 |
| 1576 if (LayoutObject* parent = this->parent()) { | 1576 if (LayoutObject* parent = this->parent()) { |
| 1577 if (parent->isBox()) { | 1577 if (parent->isBox()) { |
| 1578 LayoutBox* parentBox = toLayoutBox(parent); | 1578 LayoutBox* parentBox = toLayoutBox(parent); |
| 1579 | |
| 1580 // Never flip for SVG as it handles writing modes itself. | |
| 1581 if (!isSVG()) { | |
| 1582 parentBox->flipForWritingMode(rect); | |
| 1583 } | |
|
wkorman
2016/07/18 23:21:28
nit: don't need the curlies
chrishtr
2016/07/18 23:26:57
Removed.
| |
| 1584 | |
| 1579 if (!parentBox->mapScrollingContentsRectToBoxSpace(rect, parent == a ncestor ? ApplyNonScrollOverflowClip : ApplyOverflowClip, visualRectFlags)) | 1585 if (!parentBox->mapScrollingContentsRectToBoxSpace(rect, parent == a ncestor ? ApplyNonScrollOverflowClip : ApplyOverflowClip, visualRectFlags)) |
| 1580 return false; | 1586 return false; |
| 1581 // Never flip for SVG as it handles writing modes itself. | |
| 1582 if (!isSVG()) | |
| 1583 parentBox->flipForWritingMode(rect); | |
| 1584 } | 1587 } |
| 1585 return parent->mapToVisualRectInAncestorSpace(ancestor, rect, visualRect Flags); | 1588 return parent->mapToVisualRectInAncestorSpace(ancestor, rect, visualRect Flags); |
| 1586 } | 1589 } |
| 1587 return true; | 1590 return true; |
| 1588 } | 1591 } |
| 1589 | 1592 |
| 1590 void LayoutObject::dirtyLinesFromChangedChild(LayoutObject*, MarkingBehavior) | 1593 void LayoutObject::dirtyLinesFromChangedChild(LayoutObject*, MarkingBehavior) |
| 1591 { | 1594 { |
| 1592 } | 1595 } |
| 1593 | 1596 |
| (...skipping 2084 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 3678 const blink::LayoutObject* root = object1; | 3681 const blink::LayoutObject* root = object1; |
| 3679 while (root->parent()) | 3682 while (root->parent()) |
| 3680 root = root->parent(); | 3683 root = root->parent(); |
| 3681 root->showLayoutTreeAndMark(object1, "*", object2, "-", 0); | 3684 root->showLayoutTreeAndMark(object1, "*", object2, "-", 0); |
| 3682 } else { | 3685 } else { |
| 3683 WTFLogAlways("%s", "Cannot showLayoutTree. Root is (nil)"); | 3686 WTFLogAlways("%s", "Cannot showLayoutTree. Root is (nil)"); |
| 3684 } | 3687 } |
| 3685 } | 3688 } |
| 3686 | 3689 |
| 3687 #endif | 3690 #endif |
| OLD | NEW |