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

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

Issue 19041005: Introduce css3TextEnabled instead of CSS3_TEXT. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Patch for landing Created 7 years, 5 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/page/RuntimeEnabledFeatures.in ('k') | Source/core/rendering/style/RenderStyle.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 447 matching lines...) Expand 10 before | Expand all | Expand 10 after
458 #endif 458 #endif
459 // CSSPropertyImageOrientation has been removed, was return 397; 459 // CSSPropertyImageOrientation has been removed, was return 397;
460 // CSSPropertyImageResolution has been removed, was return 398; 460 // CSSPropertyImageResolution has been removed, was return 398;
461 #if defined(ENABLE_CSS_COMPOSITING) && ENABLE_CSS_COMPOSITING 461 #if defined(ENABLE_CSS_COMPOSITING) && ENABLE_CSS_COMPOSITING
462 case CSSPropertyWebkitBlendMode: return 399; 462 case CSSPropertyWebkitBlendMode: return 399;
463 case CSSPropertyWebkitBackgroundBlendMode: return 400; 463 case CSSPropertyWebkitBackgroundBlendMode: return 400;
464 #endif 464 #endif
465 case CSSPropertyTextDecorationLine: return 401; 465 case CSSPropertyTextDecorationLine: return 401;
466 case CSSPropertyTextDecorationStyle: return 402; 466 case CSSPropertyTextDecorationStyle: return 402;
467 case CSSPropertyTextDecorationColor: return 403; 467 case CSSPropertyTextDecorationColor: return 403;
468 case CSSPropertyTextAlignLast: return 404;
468 #if defined(ENABLE_CSS3_TEXT) && ENABLE_CSS3_TEXT 469 #if defined(ENABLE_CSS3_TEXT) && ENABLE_CSS3_TEXT
469 case CSSPropertyWebkitTextAlignLast: return 404;
470 case CSSPropertyWebkitTextUnderlinePosition: return 405; 470 case CSSPropertyWebkitTextUnderlinePosition: return 405;
471 #endif 471 #endif
472 case CSSPropertyMaxZoom: return 406; 472 case CSSPropertyMaxZoom: return 406;
473 case CSSPropertyMinZoom: return 407; 473 case CSSPropertyMinZoom: return 407;
474 case CSSPropertyOrientation: return 408; 474 case CSSPropertyOrientation: return 408;
475 case CSSPropertyUserZoom: return 409; 475 case CSSPropertyUserZoom: return 409;
476 #if defined(ENABLE_DASHBOARD_SUPPORT) && ENABLE_DASHBOARD_SUPPORT 476 #if defined(ENABLE_DASHBOARD_SUPPORT) && ENABLE_DASHBOARD_SUPPORT
477 case CSSPropertyWebkitDashboardRegion: return 410; 477 case CSSPropertyWebkitDashboardRegion: return 410;
478 #endif 478 #endif
479 // CSSPropertyWebkitOverflowScrolling was 411. 479 // CSSPropertyWebkitOverflowScrolling was 411.
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
674 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) 674 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents)
675 { 675 {
676 // FIXME: We may want to handle stylesheets that have multiple owners 676 // FIXME: We may want to handle stylesheets that have multiple owners
677 // http://crbug.com/242125 677 // http://crbug.com/242125
678 if (sheetContents && !sheetContents->isUserStyleSheet() && sheetContents->ha sSingleOwnerNode()) 678 if (sheetContents && !sheetContents->isUserStyleSheet() && sheetContents->ha sSingleOwnerNode())
679 return getFrom(sheetContents->singleOwnerDocument()); 679 return getFrom(sheetContents->singleOwnerDocument());
680 return 0; 680 return 0;
681 } 681 }
682 682
683 } // namespace WebCore 683 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/page/RuntimeEnabledFeatures.in ('k') | Source/core/rendering/style/RenderStyle.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698