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

Side by Side Diff: Source/core/page/UseCounter.cpp

Issue 40733004: Replace compile flag with runtime check for text-underline-position (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Julien's review #2 (rebased) Created 7 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/page/RuntimeCSSEnabled.cpp ('k') | Source/core/rendering/InlineFlowBox.h » ('j') | 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 /* 2 /*
3 * Copyright (C) 2012 Google, Inc. All rights reserved. 3 * Copyright (C) 2012 Google, Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 440 matching lines...) Expand 10 before | Expand all | Expand 10 after
451 // CSSPropertyImageOrientation has been removed, was return 397; 451 // CSSPropertyImageOrientation has been removed, was return 397;
452 // CSSPropertyImageResolution has been removed, was return 398; 452 // CSSPropertyImageResolution has been removed, was return 398;
453 #if defined(ENABLE_CSS_COMPOSITING) && ENABLE_CSS_COMPOSITING 453 #if defined(ENABLE_CSS_COMPOSITING) && ENABLE_CSS_COMPOSITING
454 case CSSPropertyWebkitBlendMode: return 399; 454 case CSSPropertyWebkitBlendMode: return 399;
455 case CSSPropertyWebkitBackgroundBlendMode: return 400; 455 case CSSPropertyWebkitBackgroundBlendMode: return 400;
456 #endif 456 #endif
457 case CSSPropertyTextDecorationLine: return 401; 457 case CSSPropertyTextDecorationLine: return 401;
458 case CSSPropertyTextDecorationStyle: return 402; 458 case CSSPropertyTextDecorationStyle: return 402;
459 case CSSPropertyTextDecorationColor: return 403; 459 case CSSPropertyTextDecorationColor: return 403;
460 case CSSPropertyTextAlignLast: return 404; 460 case CSSPropertyTextAlignLast: return 404;
461 #if defined(ENABLE_CSS3_TEXT) && ENABLE_CSS3_TEXT 461 case CSSPropertyTextUnderlinePosition: return 405;
462 case CSSPropertyWebkitTextUnderlinePosition: return 405;
463 #endif
464 case CSSPropertyMaxZoom: return 406; 462 case CSSPropertyMaxZoom: return 406;
465 case CSSPropertyMinZoom: return 407; 463 case CSSPropertyMinZoom: return 407;
466 case CSSPropertyOrientation: return 408; 464 case CSSPropertyOrientation: return 408;
467 case CSSPropertyUserZoom: return 409; 465 case CSSPropertyUserZoom: return 409;
468 // CSSPropertyWebkitDashboardRegion was 410. 466 // CSSPropertyWebkitDashboardRegion was 410.
469 // CSSPropertyWebkitOverflowScrolling was 411. 467 // CSSPropertyWebkitOverflowScrolling was 411.
470 case CSSPropertyWebkitAppRegion: return 412; 468 case CSSPropertyWebkitAppRegion: return 412;
471 case CSSPropertyWebkitFilter: return 413; 469 case CSSPropertyWebkitFilter: return 413;
472 case CSSPropertyWebkitBoxDecorationBreak: return 414; 470 case CSSPropertyWebkitBoxDecorationBreak: return 414;
473 case CSSPropertyWebkitTapHighlightColor: return 415; 471 case CSSPropertyWebkitTapHighlightColor: return 415;
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after
725 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) 723 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents)
726 { 724 {
727 // FIXME: We may want to handle stylesheets that have multiple owners 725 // FIXME: We may want to handle stylesheets that have multiple owners
728 // http://crbug.com/242125 726 // http://crbug.com/242125
729 if (sheetContents && !sheetContents->isUserStyleSheet() && sheetContents->ha sSingleOwnerNode()) 727 if (sheetContents && !sheetContents->isUserStyleSheet() && sheetContents->ha sSingleOwnerNode())
730 return getFrom(sheetContents->singleOwnerDocument()); 728 return getFrom(sheetContents->singleOwnerDocument());
731 return 0; 729 return 0;
732 } 730 }
733 731
734 } // namespace WebCore 732 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/page/RuntimeCSSEnabled.cpp ('k') | Source/core/rendering/InlineFlowBox.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698