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

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

Issue 709213002: Remove ContentData. (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/loader/ImageLoader.cpp ('k') | sky/engine/core/rendering/RenderImage.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 * (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 28 matching lines...) Expand all
39 #include "core/rendering/HitTestLocation.h" 39 #include "core/rendering/HitTestLocation.h"
40 #include "core/rendering/HitTestResult.h" 40 #include "core/rendering/HitTestResult.h"
41 #include "core/rendering/InlineIterator.h" 41 #include "core/rendering/InlineIterator.h"
42 #include "core/rendering/InlineTextBox.h" 42 #include "core/rendering/InlineTextBox.h"
43 #include "core/rendering/PaintInfo.h" 43 #include "core/rendering/PaintInfo.h"
44 #include "core/rendering/RenderFlexibleBox.h" 44 #include "core/rendering/RenderFlexibleBox.h"
45 #include "core/rendering/RenderInline.h" 45 #include "core/rendering/RenderInline.h"
46 #include "core/rendering/RenderLayer.h" 46 #include "core/rendering/RenderLayer.h"
47 #include "core/rendering/RenderObjectInlines.h" 47 #include "core/rendering/RenderObjectInlines.h"
48 #include "core/rendering/RenderView.h" 48 #include "core/rendering/RenderView.h"
49 #include "core/rendering/style/ContentData.h"
50 #include "core/rendering/style/RenderStyle.h" 49 #include "core/rendering/style/RenderStyle.h"
51 #include "platform/geometry/FloatQuad.h" 50 #include "platform/geometry/FloatQuad.h"
52 #include "platform/geometry/TransformState.h" 51 #include "platform/geometry/TransformState.h"
53 #include "platform/graphics/GraphicsContextCullSaver.h" 52 #include "platform/graphics/GraphicsContextCullSaver.h"
54 #include "platform/graphics/GraphicsContextStateSaver.h" 53 #include "platform/graphics/GraphicsContextStateSaver.h"
55 #include "wtf/StdLibExtras.h" 54 #include "wtf/StdLibExtras.h"
56 #include "wtf/TemporaryChange.h" 55 #include "wtf/TemporaryChange.h"
57 56
58 using namespace WTF; 57 using namespace WTF;
59 using namespace Unicode; 58 using namespace Unicode;
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 { 129 {
131 for (const FillLayer* layer = &styleLayer; layer; layer = layer->next()) 130 for (const FillLayer* layer = &styleLayer; layer; layer = layer->next())
132 appendImageIfNotNull(images, layer->image()); 131 appendImageIfNotNull(images, layer->image());
133 } 132 }
134 133
135 static void appendImagesFromStyle(Vector<ImageResource*>& images, RenderStyle& b lockStyle) 134 static void appendImagesFromStyle(Vector<ImageResource*>& images, RenderStyle& b lockStyle)
136 { 135 {
137 appendLayers(images, blockStyle.backgroundLayers()); 136 appendLayers(images, blockStyle.backgroundLayers());
138 appendLayers(images, blockStyle.maskLayers()); 137 appendLayers(images, blockStyle.maskLayers());
139 138
140 const ContentData* contentData = blockStyle.contentData();
141 if (contentData && contentData->isImage())
142 appendImageIfNotNull(images, toImageContentData(contentData)->image());
143 appendImageIfNotNull(images, blockStyle.listStyleImage()); 139 appendImageIfNotNull(images, blockStyle.listStyleImage());
144 appendImageIfNotNull(images, blockStyle.borderImageSource()); 140 appendImageIfNotNull(images, blockStyle.borderImageSource());
145 appendImageIfNotNull(images, blockStyle.maskBoxImageSource()); 141 appendImageIfNotNull(images, blockStyle.maskBoxImageSource());
146 } 142 }
147 143
148 void RenderBlock::removeFromGlobalMaps() 144 void RenderBlock::removeFromGlobalMaps()
149 { 145 {
150 if (gPercentHeightDescendantsMap) 146 if (gPercentHeightDescendantsMap)
151 removeBlockFromDescendantAndContainerMaps(this, gPercentHeightDescendant sMap, gPercentHeightContainerMap); 147 removeBlockFromDescendantAndContainerMaps(this, gPercentHeightDescendant sMap, gPercentHeightContainerMap);
152 if (gPositionedDescendantsMap) 148 if (gPositionedDescendantsMap)
(...skipping 2786 matching lines...) Expand 10 before | Expand all | Expand 10 after
2939 void RenderBlock::showLineTreeAndMark(const InlineBox* markedBox1, const char* m arkedLabel1, const InlineBox* markedBox2, const char* markedLabel2, const Render Object* obj) const 2935 void RenderBlock::showLineTreeAndMark(const InlineBox* markedBox1, const char* m arkedLabel1, const InlineBox* markedBox2, const char* markedLabel2, const Render Object* obj) const
2940 { 2936 {
2941 showRenderObject(); 2937 showRenderObject();
2942 for (const RootInlineBox* root = firstRootBox(); root; root = root->nextRoot Box()) 2938 for (const RootInlineBox* root = firstRootBox(); root; root = root->nextRoot Box())
2943 root->showLineTreeAndMark(markedBox1, markedLabel1, markedBox2, markedLa bel2, obj, 1); 2939 root->showLineTreeAndMark(markedBox1, markedLabel1, markedBox2, markedLa bel2, obj, 1);
2944 } 2940 }
2945 2941
2946 #endif 2942 #endif
2947 2943
2948 } // namespace blink 2944 } // namespace blink
OLDNEW
« no previous file with comments | « sky/engine/core/loader/ImageLoader.cpp ('k') | sky/engine/core/rendering/RenderImage.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698