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

Side by Side Diff: Source/core/style/SVGComputedStyle.h

Issue 1048043002: Fix pointer-events:all when stroke="none" (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 5 years, 8 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 | « Source/core/layout/svg/LayoutSVGShape.cpp ('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) 2004, 2005, 2007 Nikolas Zimmermann <zimmermann@kde.org> 2 Copyright (C) 2004, 2005, 2007 Nikolas Zimmermann <zimmermann@kde.org>
3 2004, 2005 Rob Buis <buis@kde.org> 3 2004, 2005 Rob Buis <buis@kde.org>
4 Copyright (C) 2005, 2006 Apple Computer, Inc. 4 Copyright (C) 2005, 2006 Apple Computer, Inc.
5 Copyright (C) Research In Motion Limited 2010. All rights reserved. 5 Copyright (C) Research In Motion Limited 2010. 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 354 matching lines...) Expand 10 before | Expand all | Expand 10 after
365 const Color& visitedLinkStrokePaintColor() const { return stroke->visitedLin kPaintColor; } 365 const Color& visitedLinkStrokePaintColor() const { return stroke->visitedLin kPaintColor; }
366 const String& visitedLinkStrokePaintUri() const { return stroke->visitedLink PaintUri; } 366 const String& visitedLinkStrokePaintUri() const { return stroke->visitedLink PaintUri; }
367 367
368 // convenience 368 // convenience
369 bool hasClipper() const { return !clipperResource().isEmpty(); } 369 bool hasClipper() const { return !clipperResource().isEmpty(); }
370 bool hasMasker() const { return !maskerResource().isEmpty(); } 370 bool hasMasker() const { return !maskerResource().isEmpty(); }
371 bool hasFilter() const { return !filterResource().isEmpty(); } 371 bool hasFilter() const { return !filterResource().isEmpty(); }
372 bool hasMarkers() const { return !markerStartResource().isEmpty() || !marker MidResource().isEmpty() || !markerEndResource().isEmpty(); } 372 bool hasMarkers() const { return !markerStartResource().isEmpty() || !marker MidResource().isEmpty() || !markerEndResource().isEmpty(); }
373 bool hasStroke() const { return strokePaintType() != SVG_PAINTTYPE_NONE; } 373 bool hasStroke() const { return strokePaintType() != SVG_PAINTTYPE_NONE; }
374 bool hasVisibleStroke() const { return hasStroke() && !strokeWidth().isZero( ); } 374 bool hasVisibleStroke() const { return hasStroke() && !strokeWidth().isZero( ); }
375 bool hasSquareCapStyle() const { return capStyle() == SquareCap; }
376 bool hasMiterJoinStyle() const { return joinStyle() == MiterJoin; }
375 bool hasFill() const { return fillPaintType() != SVG_PAINTTYPE_NONE; } 377 bool hasFill() const { return fillPaintType() != SVG_PAINTTYPE_NONE; }
376 bool isVerticalWritingMode() const { return writingMode() == WM_TBRL || writ ingMode() == WM_TB; } 378 bool isVerticalWritingMode() const { return writingMode() == WM_TBRL || writ ingMode() == WM_TB; }
377 379
378 protected: 380 protected:
379 // inherit 381 // inherit
380 struct InheritedFlags { 382 struct InheritedFlags {
381 bool operator==(const InheritedFlags& other) const 383 bool operator==(const InheritedFlags& other) const
382 { 384 {
383 return (_colorRendering == other._colorRendering) 385 return (_colorRendering == other._colorRendering)
384 && (_shapeRendering == other._shapeRendering) 386 && (_shapeRendering == other._shapeRendering)
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
478 svg_noninherited_flags.f._baselineShift = initialBaselineShift(); 480 svg_noninherited_flags.f._baselineShift = initialBaselineShift();
479 svg_noninherited_flags.f._vectorEffect = initialVectorEffect(); 481 svg_noninherited_flags.f._vectorEffect = initialVectorEffect();
480 svg_noninherited_flags.f.bufferedRendering = initialBufferedRendering(); 482 svg_noninherited_flags.f.bufferedRendering = initialBufferedRendering();
481 svg_noninherited_flags.f.maskType = initialMaskType(); 483 svg_noninherited_flags.f.maskType = initialMaskType();
482 } 484 }
483 }; 485 };
484 486
485 } // namespace blink 487 } // namespace blink
486 488
487 #endif // SVGComputedStyle_h 489 #endif // SVGComputedStyle_h
OLDNEW
« no previous file with comments | « Source/core/layout/svg/LayoutSVGShape.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698