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

Side by Side Diff: sky/engine/core/rendering/RenderBlock.cpp

Issue 1070313003: Remove page-break properties and captions (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: 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 * 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) 2007 David Smith (catfish.man@gmail.com) 4 * (C) 2007 David Smith (catfish.man@gmail.com)
5 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserved. 5 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserved.
6 * Copyright (C) Research In Motion Limited 2010. All rights reserved. 6 * Copyright (C) Research In Motion Limited 2010. All rights reserved.
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 1095 matching lines...) Expand 10 before | Expand all | Expand 10 after
1106 // look for the closest line box in the root box which is at the passed-in y coordinate 1106 // look for the closest line box in the root box which is at the passed-in y coordinate
1107 InlineBox* closestBox = 0; 1107 InlineBox* closestBox = 0;
1108 RootInlineBox* firstRootBoxWithChildren = 0; 1108 RootInlineBox* firstRootBoxWithChildren = 0;
1109 RootInlineBox* lastRootBoxWithChildren = 0; 1109 RootInlineBox* lastRootBoxWithChildren = 0;
1110 for (RootInlineBox* root = firstRootBox(); root; root = root->nextRootBox()) { 1110 for (RootInlineBox* root = firstRootBox(); root; root = root->nextRootBox()) {
1111 if (!root->firstLeafChild()) 1111 if (!root->firstLeafChild())
1112 continue; 1112 continue;
1113 if (!firstRootBoxWithChildren) 1113 if (!firstRootBoxWithChildren)
1114 firstRootBoxWithChildren = root; 1114 firstRootBoxWithChildren = root;
1115 1115
1116 if (root->isFirstAfterPageBreak() && (pointInLogicalContents.y() < root- >lineTopWithLeading()))
1117 break;
1118
1119 lastRootBoxWithChildren = root; 1116 lastRootBoxWithChildren = root;
1120 1117
1121 // check if this root line box is located at this y coordinate 1118 // check if this root line box is located at this y coordinate
1122 if (pointInLogicalContents.y() < root->selectionBottom()) { 1119 if (pointInLogicalContents.y() < root->selectionBottom()) {
1123 closestBox = root->closestLeafChildForLogicalLeftPosition(pointInLog icalContents.x()); 1120 closestBox = root->closestLeafChildForLogicalLeftPosition(pointInLog icalContents.x());
1124 if (closestBox) 1121 if (closestBox)
1125 break; 1122 break;
1126 } 1123 }
1127 } 1124 }
1128 1125
(...skipping 559 matching lines...) Expand 10 before | Expand all | Expand 10 after
1688 void RenderBlock::showLineTreeAndMark(const InlineBox* markedBox1, const char* m arkedLabel1, const InlineBox* markedBox2, const char* markedLabel2, const Render Object* obj) const 1685 void RenderBlock::showLineTreeAndMark(const InlineBox* markedBox1, const char* m arkedLabel1, const InlineBox* markedBox2, const char* markedLabel2, const Render Object* obj) const
1689 { 1686 {
1690 showRenderObject(); 1687 showRenderObject();
1691 for (const RootInlineBox* root = firstRootBox(); root; root = root->nextRoot Box()) 1688 for (const RootInlineBox* root = firstRootBox(); root; root = root->nextRoot Box())
1692 root->showLineTreeAndMark(markedBox1, markedLabel1, markedBox2, markedLa bel2, obj, 1); 1689 root->showLineTreeAndMark(markedBox1, markedLabel1, markedBox2, markedLa bel2, obj, 1);
1693 } 1690 }
1694 1691
1695 #endif 1692 #endif
1696 1693
1697 } // namespace blink 1694 } // namespace blink
OLDNEW
« no previous file with comments | « sky/engine/core/css/parser/BisonCSSParser-in.cpp ('k') | sky/engine/core/rendering/RootInlineBox.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698