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

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

Issue 1468913002: Find In Page hides the text when text color matches text search hightlight color. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update paintSelectionBackground to use new helper function Created 5 years 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, 2009, 2010, 2011 Apple Inc. All r ights reserved. 5 * Copyright (C) 2003, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r ights reserved.
6 * Copyright (C) 2006 Graham Dennis (graham.dennis@gmail.com) 6 * Copyright (C) 2006 Graham Dennis (graham.dennis@gmail.com)
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 20 matching lines...) Expand all
31 #include "core/animation/css/CSSTransitionData.h" 31 #include "core/animation/css/CSSTransitionData.h"
32 #include "core/css/CSSPrimitiveValue.h" 32 #include "core/css/CSSPrimitiveValue.h"
33 #include "core/style/BorderValue.h" 33 #include "core/style/BorderValue.h"
34 #include "core/style/CounterDirectives.h" 34 #include "core/style/CounterDirectives.h"
35 #include "core/style/DataRef.h" 35 #include "core/style/DataRef.h"
36 #include "core/style/ComputedStyleConstants.h" 36 #include "core/style/ComputedStyleConstants.h"
37 #include "core/style/LineClampValue.h" 37 #include "core/style/LineClampValue.h"
38 #include "core/style/NinePieceImage.h" 38 #include "core/style/NinePieceImage.h"
39 #include "core/style/OutlineValue.h" 39 #include "core/style/OutlineValue.h"
40 #include "core/style/SVGComputedStyle.h" 40 #include "core/style/SVGComputedStyle.h"
41 #include "core/style/SVGComputedStyleDefs.h"
41 #include "core/style/ShapeValue.h" 42 #include "core/style/ShapeValue.h"
42 #include "core/style/StyleBackgroundData.h" 43 #include "core/style/StyleBackgroundData.h"
43 #include "core/style/StyleBoxData.h" 44 #include "core/style/StyleBoxData.h"
44 #include "core/style/StyleContentAlignmentData.h" 45 #include "core/style/StyleContentAlignmentData.h"
45 #include "core/style/StyleDeprecatedFlexibleBoxData.h" 46 #include "core/style/StyleDeprecatedFlexibleBoxData.h"
46 #include "core/style/StyleDifference.h" 47 #include "core/style/StyleDifference.h"
47 #include "core/style/StyleFilterData.h" 48 #include "core/style/StyleFilterData.h"
48 #include "core/style/StyleFlexibleBoxData.h" 49 #include "core/style/StyleFlexibleBoxData.h"
49 #include "core/style/StyleGridData.h" 50 #include "core/style/StyleGridData.h"
50 #include "core/style/StyleGridItemData.h" 51 #include "core/style/StyleGridItemData.h"
(...skipping 1424 matching lines...) Expand 10 before | Expand all | Expand 10 after
1475 void setSubtreeWillChangeContents(bool b) { SET_VAR(rareInheritedData, m_sub treeWillChangeContents, b); } 1476 void setSubtreeWillChangeContents(bool b) { SET_VAR(rareInheritedData, m_sub treeWillChangeContents, b); }
1476 1477
1477 bool requiresAcceleratedCompositingForExternalReasons(bool b) { return rareN onInheritedData->m_requiresAcceleratedCompositingForExternalReasons; } 1478 bool requiresAcceleratedCompositingForExternalReasons(bool b) { return rareN onInheritedData->m_requiresAcceleratedCompositingForExternalReasons; }
1478 void setRequiresAcceleratedCompositingForExternalReasons(bool b) { SET_VAR(r areNonInheritedData, m_requiresAcceleratedCompositingForExternalReasons, b); } 1479 void setRequiresAcceleratedCompositingForExternalReasons(bool b) { SET_VAR(r areNonInheritedData, m_requiresAcceleratedCompositingForExternalReasons, b); }
1479 1480
1480 const SVGComputedStyle& svgStyle() const { return *m_svgStyle.get(); } 1481 const SVGComputedStyle& svgStyle() const { return *m_svgStyle.get(); }
1481 SVGComputedStyle& accessSVGStyle() { return *m_svgStyle.access(); } 1482 SVGComputedStyle& accessSVGStyle() { return *m_svgStyle.access(); }
1482 1483
1483 const SVGPaintType& fillPaintType() const { return svgStyle().fillPaintType( ); } 1484 const SVGPaintType& fillPaintType() const { return svgStyle().fillPaintType( ); }
1484 Color fillPaintColor() const { return svgStyle().fillPaintColor(); } 1485 Color fillPaintColor() const { return svgStyle().fillPaintColor(); }
1486 void setFillPaintColor(const Color& c) { accessSVGStyle().setFillPaint(SVGPa intType::SVG_PAINTTYPE_RGBCOLOR, c, ""); }
1485 float fillOpacity() const { return svgStyle().fillOpacity(); } 1487 float fillOpacity() const { return svgStyle().fillOpacity(); }
1486 void setFillOpacity(float f) { accessSVGStyle().setFillOpacity(f); } 1488 void setFillOpacity(float f) { accessSVGStyle().setFillOpacity(f); }
1487 1489
1488 const SVGPaintType& strokePaintType() const { return svgStyle().strokePaintT ype(); } 1490 const SVGPaintType& strokePaintType() const { return svgStyle().strokePaintT ype(); }
1489 Color strokePaintColor() const { return svgStyle().strokePaintColor(); } 1491 Color strokePaintColor() const { return svgStyle().strokePaintColor(); }
1490 float strokeOpacity() const { return svgStyle().strokeOpacity(); } 1492 float strokeOpacity() const { return svgStyle().strokeOpacity(); }
1491 void setStrokeOpacity(float f) { accessSVGStyle().setStrokeOpacity(f); } 1493 void setStrokeOpacity(float f) { accessSVGStyle().setStrokeOpacity(f); }
1492 const UnzoomedLength& strokeWidth() const { return svgStyle().strokeWidth(); } 1494 const UnzoomedLength& strokeWidth() const { return svgStyle().strokeWidth(); }
1493 void setStrokeWidth(const UnzoomedLength& w) { accessSVGStyle().setStrokeWid th(w); } 1495 void setStrokeWidth(const UnzoomedLength& w) { accessSVGStyle().setStrokeWid th(w); }
1494 SVGDashArray* strokeDashArray() const { return svgStyle().strokeDashArray(); } 1496 SVGDashArray* strokeDashArray() const { return svgStyle().strokeDashArray(); }
(...skipping 512 matching lines...) Expand 10 before | Expand all | Expand 10 after
2007 } 2009 }
2008 2010
2009 inline bool ComputedStyle::hasPseudoElementStyle() const 2011 inline bool ComputedStyle::hasPseudoElementStyle() const
2010 { 2012 {
2011 return noninherited_flags.pseudoBits & PSEUDO_ELEMENT_MASK; 2013 return noninherited_flags.pseudoBits & PSEUDO_ELEMENT_MASK;
2012 } 2014 }
2013 2015
2014 } // namespace blink 2016 } // namespace blink
2015 2017
2016 #endif // ComputedStyle_h 2018 #endif // ComputedStyle_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698