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

Side by Side Diff: sky/engine/core/rendering/RenderImage.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/rendering/RenderImage.h ('k') | sky/engine/core/rendering/RenderObject.cpp » ('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) 2000 Dirk Mueller (mueller@kde.org) 4 * (C) 2000 Dirk Mueller (mueller@kde.org)
5 * (C) 2006 Allan Sandfeld Jensen (kde@carewolf.com) 5 * (C) 2006 Allan Sandfeld Jensen (kde@carewolf.com)
6 * (C) 2006 Samuel Weinig (sam.weinig@gmail.com) 6 * (C) 2006 Samuel Weinig (sam.weinig@gmail.com)
7 * Copyright (C) 2003, 2004, 2005, 2006, 2008, 2009, 2010, 2011 Apple Inc. All r ights reserved. 7 * Copyright (C) 2003, 2004, 2005, 2006, 2008, 2009, 2010, 2011 Apple Inc. All r ights reserved.
8 * Copyright (C) 2010 Google Inc. All rights reserved. 8 * Copyright (C) 2010 Google Inc. All rights reserved.
9 * Copyright (C) Research In Motion Limited 2011-2012. All rights reserved. 9 * Copyright (C) Research In Motion Limited 2011-2012. All rights reserved.
10 * 10 *
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 #include "platform/fonts/FontCache.h" 44 #include "platform/fonts/FontCache.h"
45 #include "platform/graphics/GraphicsContext.h" 45 #include "platform/graphics/GraphicsContext.h"
46 #include "platform/graphics/GraphicsContextStateSaver.h" 46 #include "platform/graphics/GraphicsContextStateSaver.h"
47 47
48 namespace blink { 48 namespace blink {
49 49
50 float deviceScaleFactor(LocalFrame*); 50 float deviceScaleFactor(LocalFrame*);
51 51
52 RenderImage::RenderImage(Element* element) 52 RenderImage::RenderImage(Element* element)
53 : RenderReplaced(element, IntSize()) 53 : RenderReplaced(element, IntSize())
54 , m_isGeneratedContent(false)
55 , m_imageDevicePixelRatio(1.0f) 54 , m_imageDevicePixelRatio(1.0f)
56 { 55 {
57 updateAltText(); 56 updateAltText();
58 ResourceLoadPriorityOptimizer::resourceLoadPriorityOptimizer()->addRenderObj ect(this); 57 ResourceLoadPriorityOptimizer::resourceLoadPriorityOptimizer()->addRenderObj ect(this);
59 } 58 }
60 59
61 RenderImage* RenderImage::createAnonymous(Document* document) 60 RenderImage* RenderImage::createAnonymous(Document* document)
62 { 61 {
63 RenderImage* image = new RenderImage(0); 62 RenderImage* image = new RenderImage(0);
64 image->setDocumentForAnonymous(document); 63 image->setDocumentForAnonymous(document);
(...skipping 458 matching lines...) Expand 10 before | Expand all | Expand 10 after
523 return; 522 return;
524 } 523 }
525 } 524 }
526 525
527 bool RenderImage::needsPreferredWidthsRecalculation() const 526 bool RenderImage::needsPreferredWidthsRecalculation() const
528 { 527 {
529 return RenderReplaced::needsPreferredWidthsRecalculation(); 528 return RenderReplaced::needsPreferredWidthsRecalculation();
530 } 529 }
531 530
532 } // namespace blink 531 } // namespace blink
OLDNEW
« no previous file with comments | « sky/engine/core/rendering/RenderImage.h ('k') | sky/engine/core/rendering/RenderObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698