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

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

Issue 55783002: Introduce BorderImageLength and BorderImageLengthBox (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Moved BorderImageLength{,Box} to core/rendering/style 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
« no previous file with comments | « Source/core/rendering/style/NinePieceImage.h ('k') | Source/core/rendering/style/RenderStyle.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) 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 21 matching lines...) Expand all
32 if (!data->get()) 32 if (!data->get())
33 data->init(); 33 data->init();
34 return *data; 34 return *data;
35 } 35 }
36 36
37 NinePieceImage::NinePieceImage() 37 NinePieceImage::NinePieceImage()
38 : m_data(defaultData()) 38 : m_data(defaultData())
39 { 39 {
40 } 40 }
41 41
42 NinePieceImage::NinePieceImage(PassRefPtr<StyleImage> image, LengthBox imageSlic es, bool fill, LengthBox borderSlices, LengthBox outset, ENinePieceImageRule hor izontalRule, ENinePieceImageRule verticalRule) 42 NinePieceImage::NinePieceImage(PassRefPtr<StyleImage> image, LengthBox imageSlic es, bool fill, const BorderImageLengthBox& borderSlices, const BorderImageLength Box& outset, ENinePieceImageRule horizontalRule, ENinePieceImageRule verticalRul e)
43 { 43 {
44 m_data.init(); 44 m_data.init();
45 m_data.access()->image = image; 45 m_data.access()->image = image;
46 m_data.access()->imageSlices = imageSlices; 46 m_data.access()->imageSlices = imageSlices;
47 m_data.access()->borderSlices = borderSlices; 47 m_data.access()->borderSlices = borderSlices;
48 m_data.access()->outset = outset; 48 m_data.access()->outset = outset;
49 m_data.access()->fill = fill; 49 m_data.access()->fill = fill;
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 }
(...skipping 26 matching lines...) Expand all
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/NinePieceImage.h ('k') | Source/core/rendering/style/RenderStyle.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698