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

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

Issue 791023006: Delete invalidateTreeIfNeeded. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Remove unneeded call Created 5 years, 11 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 | « sky/engine/core/rendering/RenderInline.h ('k') | sky/engine/core/rendering/RenderLayer.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) 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 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. 4 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 820 matching lines...) Expand 10 before | Expand all | Expand 10 after
831 logicalOffset.setWidth(std::max(LayoutUnit(), -offsetForInFlowPosition() .width())); 831 logicalOffset.setWidth(std::max(LayoutUnit(), -offsetForInFlowPosition() .width()));
832 else 832 else
833 logicalOffset.setWidth(inlinePosition); 833 logicalOffset.setWidth(inlinePosition);
834 834
835 if (!child.style()->hasStaticBlockPosition()) 835 if (!child.style()->hasStaticBlockPosition())
836 logicalOffset.setHeight(blockPosition); 836 logicalOffset.setHeight(blockPosition);
837 837
838 return logicalOffset; 838 return logicalOffset;
839 } 839 }
840 840
841 void RenderInline::imageChanged(WrappedImagePtr, const IntRect*)
842 {
843 if (!parent())
844 return;
845
846 // FIXME: We can do better.
847 setShouldDoFullPaintInvalidation(true);
848 }
849
850 namespace { 841 namespace {
851 842
852 class AbsoluteRectsIgnoringEmptyRectsGeneratorContext : public AbsoluteRectsGene ratorContext { 843 class AbsoluteRectsIgnoringEmptyRectsGeneratorContext : public AbsoluteRectsGene ratorContext {
853 public: 844 public:
854 AbsoluteRectsIgnoringEmptyRectsGeneratorContext(Vector<IntRect>& rects, cons t LayoutPoint& accumulatedOffset) 845 AbsoluteRectsIgnoringEmptyRectsGeneratorContext(Vector<IntRect>& rects, cons t LayoutPoint& accumulatedOffset)
855 : AbsoluteRectsGeneratorContext(rects, accumulatedOffset) { } 846 : AbsoluteRectsGeneratorContext(rects, accumulatedOffset) { }
856 847
857 void operator()(const FloatRect& rect) 848 void operator()(const FloatRect& rect)
858 { 849 {
859 if (!rect.isEmpty()) 850 if (!rect.isEmpty())
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
1036 pixelSnappedBox.maxY(), 1027 pixelSnappedBox.maxY(),
1037 pixelSnappedBox.maxX() + outlineWidth, 1028 pixelSnappedBox.maxX() + outlineWidth,
1038 pixelSnappedBox.maxY() + outlineWidth, 1029 pixelSnappedBox.maxY() + outlineWidth,
1039 BSBottom, outlineColor, outlineStyle, 1030 BSBottom, outlineColor, outlineStyle,
1040 outlineWidth, 1031 outlineWidth,
1041 outlineWidth, 1032 outlineWidth,
1042 antialias); 1033 antialias);
1043 } 1034 }
1044 1035
1045 } // namespace blink 1036 } // namespace blink
OLDNEW
« no previous file with comments | « sky/engine/core/rendering/RenderInline.h ('k') | sky/engine/core/rendering/RenderLayer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698