Changeset 180455 in webkit
- Timestamp:
- Feb 20, 2015, 2:24:31 PM (11 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r180454 r180455 1 2015-02-20 Tim Horton <timothy_horton@apple.com> 2 3 <attachment> turns the wrong blue when you highlight it 4 https://bugs.webkit.org/show_bug.cgi?id=141853 5 6 Reviewed by Simon Fraser. 7 8 * rendering/RenderAttachment.h: 9 * rendering/RenderReplaced.cpp: 10 (WebCore::RenderReplaced::shouldDrawSelectionTint): 11 (WebCore::RenderReplaced::paint): 12 * rendering/RenderReplaced.h: 13 Don't draw the selection tint for RenderAttachment. 14 1 15 2015-02-20 Tim Horton <timothy_horton@apple.com> 2 16 -
trunk/Source/WebCore/rendering/RenderAttachment.h
r180454 r180455 48 48 virtual const char* renderName() const override { return "RenderAttachment"; } 49 49 virtual void paintReplaced(PaintInfo&, const LayoutPoint&) override; 50 51 virtual bool shouldDrawSelectionTint() const override { return false; } 50 52 }; 51 53 -
trunk/Source/WebCore/rendering/RenderReplaced.cpp
r179488 r180455 131 131 } 132 132 133 bool RenderReplaced::shouldDrawSelectionTint() const 134 { 135 return selectionState() != SelectionNone && !document().printing(); 136 } 137 133 138 void RenderReplaced::paint(PaintInfo& paintInfo, const LayoutPoint& paintOffset) 134 139 { … … 156 161 return; 157 162 158 bool drawSelectionTint = s electionState() != SelectionNone && !document().printing();163 bool drawSelectionTint = shouldDrawSelectionTint(); 159 164 if (paintInfo.phase == PaintPhaseSelection) { 160 165 if (selectionState() == SelectionNone) -
trunk/Source/WebCore/rendering/RenderReplaced.h
r177259 r180455 87 87 void computeAspectRatioInformationForRenderBox(RenderBox*, FloatSize& constrainedSize, double& intrinsicRatio) const; 88 88 89 virtual bool shouldDrawSelectionTint() const; 90 89 91 mutable LayoutSize m_intrinsicSize; 90 92 };
Note:
See TracChangeset
for help on using the changeset viewer.