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

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

Issue 886263003: Remove mask painting. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: fix comment Created 5 years, 10 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 | « no previous file | sky/engine/core/rendering/InlineFlowBox.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 * Copyright (C) 2003, 2004, 2005, 2006, 2007 Apple Inc. All rights reserved. 2 * Copyright (C) 2003, 2004, 2005, 2006, 2007 Apple Inc. All rights reserved.
3 * 3 *
4 * This library is free software; you can redistribute it and/or 4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public 5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either 6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version. 7 * version 2 of the License, or (at your option) any later version.
8 * 8 *
9 * This library is distributed in the hope that it will be useful, 9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 void InlineBox::adjustPosition(float dx, float dy) 186 void InlineBox::adjustPosition(float dx, float dy)
187 { 187 {
188 m_topLeft.move(dx, dy); 188 m_topLeft.move(dx, dy);
189 189
190 if (renderer().isReplaced()) 190 if (renderer().isReplaced())
191 toRenderBox(renderer()).move(dx, dy); 191 toRenderBox(renderer()).move(dx, dy);
192 } 192 }
193 193
194 void InlineBox::paint(PaintInfo& paintInfo, const LayoutPoint& paintOffset, Layo utUnit /* lineTop */, LayoutUnit /*lineBottom*/) 194 void InlineBox::paint(PaintInfo& paintInfo, const LayoutPoint& paintOffset, Layo utUnit /* lineTop */, LayoutUnit /*lineBottom*/)
195 { 195 {
196 if (paintInfo.phase == PaintPhaseMask)
197 return;
198
199 LayoutPoint childPoint = paintOffset; 196 LayoutPoint childPoint = paintOffset;
200 RenderBlock::paintAsInlineBlock(&renderer(), paintInfo, childPoint); 197 RenderBlock::paintAsInlineBlock(&renderer(), paintInfo, childPoint);
201 } 198 }
202 199
203 bool InlineBox::nodeAtPoint(const HitTestRequest& request, HitTestResult& result , const HitTestLocation& locationInContainer, const LayoutPoint& accumulatedOffs et, LayoutUnit /* lineTop */, LayoutUnit /*lineBottom*/) 200 bool InlineBox::nodeAtPoint(const HitTestRequest& request, HitTestResult& result , const HitTestLocation& locationInContainer, const LayoutPoint& accumulatedOffs et, LayoutUnit /* lineTop */, LayoutUnit /*lineBottom*/)
204 { 201 {
205 // Hit test all phases of replaced elements atomically, as though the replac ed element established its 202 // Hit test all phases of replaced elements atomically, as though the replac ed element established its
206 // own stacking context. (See Appendix E.2, section 6.4 on inline block/tab le elements in the CSS2.1 203 // own stacking context. (See Appendix E.2, section 6.4 on inline block/tab le elements in the CSS2.1
207 // specification.) 204 // specification.)
208 LayoutPoint childPoint = accumulatedOffset; 205 LayoutPoint childPoint = accumulatedOffset;
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
322 b->showTreeForThis(); 319 b->showTreeForThis();
323 } 320 }
324 321
325 void showLineTree(const blink::InlineBox* b) 322 void showLineTree(const blink::InlineBox* b)
326 { 323 {
327 if (b) 324 if (b)
328 b->showLineTreeForThis(); 325 b->showLineTreeForThis();
329 } 326 }
330 327
331 #endif 328 #endif
OLDNEW
« no previous file with comments | « no previous file | sky/engine/core/rendering/InlineFlowBox.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698