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

Unified Diff: third_party/WebKit/Source/core/css/CSSCursorImageValue.cpp

Issue 2392343005: Reflow comments in core/css (Closed)
Patch Set: Revert clang-format Created 4 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/css/CSSCursorImageValue.cpp
diff --git a/third_party/WebKit/Source/core/css/CSSCursorImageValue.cpp b/third_party/WebKit/Source/core/css/CSSCursorImageValue.cpp
index 3b7d3dd2c68fa97b3eac8421816b251deeb3241b..6e764a9f24418db2a1101d760f26e8b3024555fc 100644
--- a/third_party/WebKit/Source/core/css/CSSCursorImageValue.cpp
+++ b/third_party/WebKit/Source/core/css/CSSCursorImageValue.cpp
@@ -80,7 +80,8 @@ SVGCursorElement* CSSCursorImageValue::getSVGCursorElement(
}
bool CSSCursorImageValue::isCachePending(float deviceScaleFactor) const {
- // Need to delegate completely so that changes in device scale factor can be handled appropriately.
+ // Need to delegate completely so that changes in device scale factor can be
+ // handled appropriately.
if (m_imageValue->isImageSetValue())
return toCSSImageSetValue(*m_imageValue).isCachePending(deviceScaleFactor);
return m_isCachePending;
@@ -103,12 +104,14 @@ StyleImage* CSSCursorImageValue::cacheImage(const Document& document,
if (m_isCachePending) {
m_isCachePending = false;
- // For SVG images we need to lazily substitute in the correct URL. Rather than attempt
- // to change the URL of the CSSImageValue (which would then change behavior like cssText),
- // we create an alternate CSSImageValue to use.
+ // For SVG images we need to lazily substitute in the correct URL. Rather
+ // than attempt to change the URL of the CSSImageValue (which would then
+ // change behavior like cssText), we create an alternate CSSImageValue to
+ // use.
if (hasFragmentInURL()) {
CSSImageValue* imageValue = toCSSImageValue(m_imageValue.get());
- // FIXME: This will fail if the <cursor> element is in a shadow DOM (bug 59827)
+ // FIXME: This will fail if the <cursor> element is in a shadow DOM
+ // (http://crbug/59827)
if (SVGCursorElement* cursorElement =
resourceReferencedByCursorElement(imageValue->url(), document)) {
CSSImageValue* svgImageValue =
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSCrossfadeValue.cpp ('k') | third_party/WebKit/Source/core/css/CSSCustomIdentValue.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698