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

Side by Side Diff: third_party/WebKit/Source/core/style/ComputedStyle.cpp

Issue 2844253004: Generate getters/setters for VisitedLinkColor. (Closed)
Patch Set: Rebase Created 3 years, 7 months 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 | « third_party/WebKit/Source/core/style/ComputedStyle.h ('k') | no next file » | 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 Antti Koivisto (koivisto@kde.org) 2 * Copyright (C) 1999 Antti Koivisto (koivisto@kde.org)
3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights
4 * reserved. 4 * reserved.
5 * Copyright (C) 2011 Adobe Systems Incorporated. All rights reserved. 5 * Copyright (C) 2011 Adobe Systems Incorporated. All rights reserved.
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 1388 matching lines...) Expand 10 before | Expand all | Expand 10 after
1399 return rare_inherited_data_->list_style_image_.Get(); 1399 return rare_inherited_data_->list_style_image_.Get();
1400 } 1400 }
1401 void ComputedStyle::SetListStyleImage(StyleImage* v) { 1401 void ComputedStyle::SetListStyleImage(StyleImage* v) {
1402 if (rare_inherited_data_->list_style_image_ != v) 1402 if (rare_inherited_data_->list_style_image_ != v)
1403 rare_inherited_data_.Access()->list_style_image_ = v; 1403 rare_inherited_data_.Access()->list_style_image_ = v;
1404 } 1404 }
1405 1405
1406 Color ComputedStyle::GetColor() const { 1406 Color ComputedStyle::GetColor() const {
1407 return inherited_data_->color_; 1407 return inherited_data_->color_;
1408 } 1408 }
1409 Color ComputedStyle::VisitedLinkColor() const {
1410 return inherited_data_->visited_link_color_;
1411 }
1412 void ComputedStyle::SetColor(const Color& v) { 1409 void ComputedStyle::SetColor(const Color& v) {
1413 SET_VAR(inherited_data_, color_, v); 1410 SET_VAR(inherited_data_, color_, v);
1414 } 1411 }
1415 void ComputedStyle::SetVisitedLinkColor(const Color& v) {
1416 SET_VAR(inherited_data_, visited_link_color_, v);
1417 }
1418 1412
1419 FloatRoundedRect ComputedStyle::GetRoundedBorderFor( 1413 FloatRoundedRect ComputedStyle::GetRoundedBorderFor(
1420 const LayoutRect& border_rect, 1414 const LayoutRect& border_rect,
1421 bool include_logical_left_edge, 1415 bool include_logical_left_edge,
1422 bool include_logical_right_edge) const { 1416 bool include_logical_right_edge) const {
1423 FloatRoundedRect rounded_rect(PixelSnappedIntRect(border_rect)); 1417 FloatRoundedRect rounded_rect(PixelSnappedIntRect(border_rect));
1424 if (HasBorderRadius()) { 1418 if (HasBorderRadius()) {
1425 FloatRoundedRect::Radii radii = 1419 FloatRoundedRect::Radii radii =
1426 CalcRadiiFor(Border(), BorderTopLeftRadius(), BorderTopRightRadius(), 1420 CalcRadiiFor(Border(), BorderTopLeftRadius(), BorderTopRightRadius(),
1427 BorderBottomLeftRadius(), BorderBottomRightRadius(), 1421 BorderBottomLeftRadius(), BorderBottomRightRadius(),
(...skipping 1057 matching lines...) Expand 10 before | Expand all | Expand 10 after
2485 if (value < 0) 2479 if (value < 0)
2486 fvalue -= 0.5f; 2480 fvalue -= 0.5f;
2487 else 2481 else
2488 fvalue += 0.5f; 2482 fvalue += 0.5f;
2489 } 2483 }
2490 2484
2491 return RoundForImpreciseConversion<int>(fvalue / zoom_factor); 2485 return RoundForImpreciseConversion<int>(fvalue / zoom_factor);
2492 } 2486 }
2493 2487
2494 } // namespace blink 2488 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/style/ComputedStyle.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698