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

Side by Side Diff: Source/core/rendering/style/NinePieceImage.cpp

Issue 55813002: Convert animation and renderer code to know about BorderImageLength (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@length-relative-die-step-1-4
Patch Set: Rebased to latest master Created 7 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org)
3 * (C) 2000 Antti Koivisto (koivisto@kde.org) 3 * (C) 2000 Antti Koivisto (koivisto@kde.org)
4 * (C) 2000 Dirk Mueller (mueller@kde.org) 4 * (C) 2000 Dirk Mueller (mueller@kde.org)
5 * Copyright (C) 2003, 2005, 2006, 2007, 2008, 2013 Apple Inc. All rights reserv ed. 5 * Copyright (C) 2003, 2005, 2006, 2007, 2008, 2013 Apple Inc. All rights reserv ed.
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 m_data.access()->horizontalRule = horizontalRule; 50 m_data.access()->horizontalRule = horizontalRule;
51 m_data.access()->verticalRule = verticalRule; 51 m_data.access()->verticalRule = verticalRule;
52 } 52 }
53 53
54 NinePieceImageData::NinePieceImageData() 54 NinePieceImageData::NinePieceImageData()
55 : fill(false) 55 : fill(false)
56 , horizontalRule(StretchImageRule) 56 , horizontalRule(StretchImageRule)
57 , verticalRule(StretchImageRule) 57 , verticalRule(StretchImageRule)
58 , image(0) 58 , image(0)
59 , imageSlices(Length(100, Percent), Length(100, Percent), Length(100, Percen t), Length(100, Percent)) 59 , imageSlices(Length(100, Percent), Length(100, Percent), Length(100, Percen t), Length(100, Percent))
60 , borderSlices(Length(1, Relative), Length(1, Relative), Length(1, Relative) , Length(1, Relative)) 60 , borderSlices(1.0, 1.0, 1.0, 1.0)
61 , outset(0) 61 , outset(Length(0, Fixed), Length(0, Fixed), Length(0, Fixed), Length(0, Fix ed))
62 { 62 {
63 } 63 }
64 64
65 NinePieceImageData::NinePieceImageData(const NinePieceImageData& other) 65 NinePieceImageData::NinePieceImageData(const NinePieceImageData& other)
66 : RefCounted<NinePieceImageData>() 66 : RefCounted<NinePieceImageData>()
67 , fill(other.fill) 67 , fill(other.fill)
68 , horizontalRule(other.horizontalRule) 68 , horizontalRule(other.horizontalRule)
69 , verticalRule(other.verticalRule) 69 , verticalRule(other.verticalRule)
70 , image(other.image) 70 , image(other.image)
71 , imageSlices(other.imageSlices) 71 , imageSlices(other.imageSlices)
72 , borderSlices(other.borderSlices) 72 , borderSlices(other.borderSlices)
73 , outset(other.outset) 73 , outset(other.outset)
74 { 74 {
75 } 75 }
76 76
77 bool NinePieceImageData::operator==(const NinePieceImageData& other) const 77 bool NinePieceImageData::operator==(const NinePieceImageData& other) const
78 { 78 {
79 return StyleImage::imagesEquivalent(image.get(), other.image.get()) 79 return StyleImage::imagesEquivalent(image.get(), other.image.get())
80 && imageSlices == other.imageSlices 80 && imageSlices == other.imageSlices
81 && fill == other.fill 81 && fill == other.fill
82 && borderSlices == other.borderSlices 82 && borderSlices == other.borderSlices
83 && outset == other.outset 83 && outset == other.outset
84 && horizontalRule == other.horizontalRule 84 && horizontalRule == other.horizontalRule
85 && verticalRule == other.verticalRule; 85 && verticalRule == other.verticalRule;
86 } 86 }
87 87
88 } 88 }
OLDNEW
« no previous file with comments | « Source/core/rendering/style/BorderImageLengthBox.h ('k') | Source/core/rendering/style/RenderStyle.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698