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

Side by Side Diff: sky/engine/core/rendering/style/StyleInheritedData.cpp

Issue 667003003: Remove most of visited link support. (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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Antti Koivisto (koivisto@kde.org) 2 * Copyright (C) 1999 Antti Koivisto (koivisto@kde.org)
3 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved.
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 13 matching lines...) Expand all
24 24
25 #include "core/rendering/style/RenderStyle.h" 25 #include "core/rendering/style/RenderStyle.h"
26 26
27 namespace blink { 27 namespace blink {
28 28
29 StyleInheritedData::StyleInheritedData() 29 StyleInheritedData::StyleInheritedData()
30 : horizontal_border_spacing(RenderStyle::initialHorizontalBorderSpacing()) 30 : horizontal_border_spacing(RenderStyle::initialHorizontalBorderSpacing())
31 , vertical_border_spacing(RenderStyle::initialVerticalBorderSpacing()) 31 , vertical_border_spacing(RenderStyle::initialVerticalBorderSpacing())
32 , line_height(RenderStyle::initialLineHeight()) 32 , line_height(RenderStyle::initialLineHeight())
33 , color(RenderStyle::initialColor()) 33 , color(RenderStyle::initialColor())
34 , visitedLinkColor(RenderStyle::initialColor())
35 { 34 {
36 } 35 }
37 36
38 StyleInheritedData::~StyleInheritedData() 37 StyleInheritedData::~StyleInheritedData()
39 { 38 {
40 } 39 }
41 40
42 StyleInheritedData::StyleInheritedData(const StyleInheritedData& o) 41 StyleInheritedData::StyleInheritedData(const StyleInheritedData& o)
43 : RefCounted<StyleInheritedData>() 42 : RefCounted<StyleInheritedData>()
44 , horizontal_border_spacing(o.horizontal_border_spacing) 43 , horizontal_border_spacing(o.horizontal_border_spacing)
45 , vertical_border_spacing(o.vertical_border_spacing) 44 , vertical_border_spacing(o.vertical_border_spacing)
46 , line_height(o.line_height) 45 , line_height(o.line_height)
47 , font(o.font) 46 , font(o.font)
48 , color(o.color) 47 , color(o.color)
49 , visitedLinkColor(o.visitedLinkColor)
50 { 48 {
51 } 49 }
52 50
53 bool StyleInheritedData::operator==(const StyleInheritedData& o) const 51 bool StyleInheritedData::operator==(const StyleInheritedData& o) const
54 { 52 {
55 return line_height == o.line_height 53 return line_height == o.line_height
56 && font == o.font 54 && font == o.font
57 && color == o.color 55 && color == o.color
58 && visitedLinkColor == o.visitedLinkColor
59 && horizontal_border_spacing == o.horizontal_border_spacing 56 && horizontal_border_spacing == o.horizontal_border_spacing
60 && vertical_border_spacing == o.vertical_border_spacing; 57 && vertical_border_spacing == o.vertical_border_spacing;
61 } 58 }
62 59
63 } // namespace blink 60 } // namespace blink
OLDNEW
« no previous file with comments | « sky/engine/core/rendering/style/StyleInheritedData.h ('k') | sky/engine/core/rendering/style/StyleRareInheritedData.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698